Improvements to initdb stuff

This commit is contained in:
Tim Goodaire
2016-05-24 11:02:30 -04:00
parent 8a4eb569f4
commit e4bb5bf133
3 changed files with 9 additions and 4 deletions

View File

@@ -32,8 +32,8 @@ postgresql-initdb:
cmd.run:
- cwd: /
- user: {{ postgres.initdb_user }}
- name: {{ postgres.commands.initdb }}
- unless: test -f {{ postgres.conf_dir }}/postgresql.conf
- name: {{ postgres.commands.initdb }} {{ postgres.initdb_args }} -D {{ postgres.runtime_dir }}
- unless: test -f {{ postgres.runtime_dir }}/PG_VERSION
- env:
LC_ALL: C.UTF-8
{% endif %}