Making initdb command overridable
This commit is contained in:
@@ -30,7 +30,7 @@ postgresql-initdb:
|
|||||||
cmd.run:
|
cmd.run:
|
||||||
- cwd: /
|
- cwd: /
|
||||||
- user: root
|
- user: root
|
||||||
- name: service postgresql initdb
|
- name: {{ postgres.commands.initdb }}
|
||||||
- unless: test -f {{ postgres.conf_dir }}/postgresql.conf
|
- unless: test -f {{ postgres.conf_dir }}/postgresql.conf
|
||||||
- env:
|
- env:
|
||||||
LC_ALL: C.UTF-8
|
LC_ALL: C.UTF-8
|
||||||
|
|||||||
@@ -5,3 +5,5 @@ Arch: {}
|
|||||||
Debian:
|
Debian:
|
||||||
pkg_repo_file: /etc/apt/sources.list.d/pgdg.list
|
pkg_repo_file: /etc/apt/sources.list.d/pgdg.list
|
||||||
pkg_libpq_dev: libpq-dev
|
pkg_libpq_dev: libpq-dev
|
||||||
|
commands:
|
||||||
|
initdb: service postgresql initdb
|
||||||
|
|||||||
Reference in New Issue
Block a user