[postrges] enable `datadir` option for create cluster
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Fri, 31 Jul 2015 11:15:51 +0200
changeset 61 d5c835c09451
parent 60 c1844d1de7c6
child 62 9890aa5c3f44
[postrges] enable `datadir` option for create cluster
cubicweb/postgres/init.sls
--- a/cubicweb/postgres/init.sls	Mon Jul 27 09:56:40 2015 +0200
+++ b/cubicweb/postgres/init.sls	Fri Jul 31 11:15:51 2015 +0200
@@ -36,6 +36,9 @@
     - name: 'main'
     - version: {{ postgresql.version }}
     - encoding: UTF8
+    {% if postgresql.datadir %}
+    - datadir: {{ postgresql.datadir }}
+    {% endif %}
   service.running:
     - name: postgresql
     - require: