[cubicweb/postgres] indentation
authorArthur Lutz <arthur.lutz@logilab.fr>
Tue, 29 Nov 2016 11:33:25 +0100
changeset 88 a5b9c360cc58
parent 87 bf89ca4e5aad
child 89 f63f6972507b
[cubicweb/postgres] indentation
cubicweb/postgres/init.sls
--- a/cubicweb/postgres/init.sls	Tue Nov 29 11:32:07 2016 +0100
+++ b/cubicweb/postgres/init.sls	Tue Nov 29 11:33:25 2016 +0100
@@ -44,11 +44,11 @@
   file.managed:
     {% set psql_users=[] %}
     {% for vhostname, vhost in pillar['cubicweb_apps'].iteritems() %}
-    {% for name, config in vhost.iteritems() %}
-    {% if config.database.user not in psql_users %}
-    {% do psql_users.append(config.database.user) %}
-    {% endif %}
-    {% endfor %}
+      {% for name, config in vhost.iteritems() %}
+        {% if config.database.user not in psql_users %}
+          {% do psql_users.append(config.database.user) %}
+        {% endif %}
+      {% endfor %}
     {% endfor %}
     - name: /etc/postgresql/{{ postgresql.version }}/main/pg_hba.conf
     - user: postgres
@@ -65,7 +65,7 @@
 
 
 {% if postgresql.listen_tcp %}
-{% if salt['pkg.version_cmp'](postgresql.version, '9.4') >= 0 %}
+  {% if salt['pkg.version_cmp'](postgresql.version, '9.4') >= 0 %}
 /etc/postgresql/{{ postgresql.version }}/main/postgresql.conf:
   file.append:
     - text:
@@ -81,14 +81,14 @@
        listen_addresses = '*'
     - watch_in:
        service: postgresql
-{% else %}
+  {% else %}
 /etc/postgresql/{{ postgresql.version }}/main/postgresql.conf:
   file.append:
     - text:
        - listen_addresses = '*'
     - watch_in:
        service: postgresql
-{% endif %}
+  {% endif %}
 {% endif %}