Added indentes to increase readable
0-change update
Change-Id: Ia4e9384e2573e394554a6ad67bebd32f76f7c25c
Related-Prod: PROD-00000
diff --git a/horizon/server/service.sls b/horizon/server/service.sls
index b9ad1b9..9c13428 100644
--- a/horizon/server/service.sls
+++ b/horizon/server/service.sls
@@ -28,14 +28,13 @@
- pkg: horizon_packages
{%- for policy_name, policy in server.get('policy', {}).iteritems() %}
+ {%- if policy.get('enabled', True) %}
+ {%- if policy.get('source', 'file') == 'mine' %}
-{%- if policy.get('enabled', True) %}
-{%- if policy.get('source', 'file') == 'mine' %}
+ {%- set service_grains = salt['mine.get'](policy['host'], 'grains.items') %}
+ {%- set service_policy = service_grains.get(policy['host'], {}).get(policy['grain_name'], {}) %}
-{%- set service_grains = salt['mine.get'](policy['host'], 'grains.items') %}
-{%- set service_policy = service_grains.get(policy['host'], {}).get(policy['grain_name'], {}) %}
-
-{%- if service_policy %}
+ {%- if service_policy %}
horizon_policy_{{ policy_name }}_mine:
file.serialize:
@@ -45,9 +44,9 @@
- require:
- file: horizon_config
-{%- endif %}
+ {%- endif %}
-{%- elif policy.get('source', 'file') == 'file' %}
+ {%- elif policy.get('source', 'file') == 'file' %}
horizon_policy_{{ policy_name }}_file:
file.managed:
@@ -56,9 +55,8 @@
- require:
- file: horizon_config
-{%- endif %}
-{%- endif %}
-
+ {%- endif %}
+ {%- endif %}
{%- endfor %}
{# The approach to render config file "horizon/files/openstack-dashboard.conf" from package is #}