Fix conf_dir => data_dir required for preparing cluster

This commit is contained in:
Imran Iqbal 2018-06-21 01:14:42 +01:00 committed by Imran Iqbal
parent 9865664963
commit c3a32eb0aa

View file

@ -62,7 +62,7 @@ postgresql-{{ bin }}-altinstall:
postgresql-cluster-prepared:
file.directory:
- name: {{ postgres.conf_dir }}
- name: {{ postgres.data_dir }}
- user: {{ postgres.user }}
- group: {{ postgres.group }}
- makedirs: True
@ -81,7 +81,7 @@ postgresql-cluster-prepared:
{%- endif %}
- cwd: /
- env: {{ postgres.prepare_cluster.env }}
- runas: {{ postgres.user }}
- runas: {{ postgres.prepare_cluster.user }}
- require:
- pkg: postgresql-server
- file: postgresql-cluster-prepared