Add quotes around policy name and rule
Policy name or rule may contain specific
symbols which can lead to sls rendering failure.
PROD-34318
Change-Id: Ib08db67069e75a77109e1a6baa9290f5e5a0d7a8
diff --git a/neutron/server.sls b/neutron/server.sls
index 2d76248..f3a1b94 100644
--- a/neutron/server.sls
+++ b/neutron/server.sls
@@ -254,8 +254,8 @@
neutron_keystone_rule_{{ name }}_present:
keystone_policy.rule_present:
- path: /etc/neutron/{{ server.get('oslo_policy', {}).get('policy_file', 'policy.json') }}
- - name: {{ name }}
- - rule: {{ rule }}
+ - name: '{{ name }}'
+ - rule: '{{ rule }}'
- require:
- pkg: neutron_server_packages
{%- if server.version not in ["juno", "kilo", "liberty", "mitaka", "newton", "ocata"] %}
@@ -267,7 +267,7 @@
neutron_keystone_rule_{{ name }}_absent:
keystone_policy.rule_absent:
- path: /etc/neutron/{{ server.get('oslo_policy', {}).get('policy_file', 'policy.json') }}
- - name: {{ name }}
+ - name: '{{ name }}'
- require:
- pkg: neutron_server_packages
{%- if server.version not in ["juno", "kilo", "liberty", "mitaka", "newton", "ocata"] %}
@@ -442,8 +442,8 @@
neutron_keystone_rule_{{ name }}_present:
keystone_policy.rule_present:
- path: /etc/neutron/{{ server.get('oslo_policy', {}).get('bgpvpn_policy_file', 'policy.json') }}
- - name: {{ name }}
- - rule: {{ rule }}
+ - name: '{{ name }}'
+ - rule: '{{ rule }}'
- require:
- pkg: bgpvpn_packages
{%- if server.version not in ["juno", "kilo", "liberty", "mitaka", "newton", "ocata"] %}
@@ -455,7 +455,7 @@
neutron_keystone_rule_{{ name }}_absent:
keystone_policy.rule_absent:
- path: /etc/neutron/{{ server.get('oslo_policy', {}).get('bgpvpn_policy_file', 'policy.json') }}
- - name: {{ name }}
+ - name: '{{ name }}'
- require:
- pkg: bgpvpn_packages
{%- if server.version not in ["juno", "kilo", "liberty", "mitaka", "newton", "ocata"] %}