Rename runtime_dir to data_dir
This commit is contained in:
@@ -7,7 +7,7 @@ postgres:
|
|||||||
python: python-psycopg2
|
python: python-psycopg2
|
||||||
service: postgresql
|
service: postgresql
|
||||||
conf_dir: /var/lib/pgsql/data
|
conf_dir: /var/lib/pgsql/data
|
||||||
runtime_dir: /var/lib/pgsql/data
|
data_dir: /var/lib/pgsql/data
|
||||||
create_cluster: False
|
create_cluster: False
|
||||||
init_db: False
|
init_db: False
|
||||||
version: 9.1
|
version: 9.1
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ postgresql-initdb:
|
|||||||
cmd.run:
|
cmd.run:
|
||||||
- cwd: /
|
- cwd: /
|
||||||
- user: {{ postgres.initdb_user }}
|
- user: {{ postgres.initdb_user }}
|
||||||
- name: {{ postgres.commands.initdb }} {{ postgres.initdb_args }} -D {{ postgres.runtime_dir }}
|
- name: {{ postgres.commands.initdb }} {{ postgres.initdb_args }} -D {{ postgres.data_dir }}
|
||||||
- unless: test -f {{ postgres.runtime_dir }}/PG_VERSION
|
- unless: test -f {{ postgres.data_dir }}/PG_VERSION
|
||||||
- env:
|
- env:
|
||||||
LC_ALL: C.UTF-8
|
LC_ALL: C.UTF-8
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user