[cubicweb/postgresql] use the same names for require dependencies everywhere
authorArthur Lutz <arthur.lutz@logilab.fr>
Thu, 23 Jul 2015 10:36:15 +0200
changeset 59 eecaad543f54
parent 58 f158714afa72
child 60 c1844d1de7c6
[cubicweb/postgresql] use the same names for require dependencies everywhere
cubicweb/postgres/init.sls
--- a/cubicweb/postgres/init.sls	Wed Jul 22 14:51:15 2015 +0200
+++ b/cubicweb/postgres/init.sls	Thu Jul 23 10:36:15 2015 +0200
@@ -65,7 +65,7 @@
     - require:
       - postgres_cluster: pg-server
     - watch_in:
-        service: pg-server
+        service: postgresql
 
 
 {% if postgresql.listen_tcp %}
@@ -84,14 +84,14 @@
     - contents: |
        listen_addresses = '*'
     - watch_in:
-       service: pg-server
+       service: postgresql
 {% else %}
 /etc/postgresql/{{ postgresql.version }}/main/postgresql.conf:
   file.append:
     - text:
        - listen_addresses = '*'
     - watch_in:
-       service: pg-server
+       service: postgresql
 {% endif %}
 {% endif %}
 
@@ -119,7 +119,7 @@
     {% endif %}
     - require:
       - postgres_user: pg-{{vhostname}}-{{name}}
-      - service: pg-server
+      - service: postgresql
         # locale-system-present: poor man safety belt...
       - locale: locale-system-present
   postgres_extension.present: