From e2b6eab75324c4fc375c3f04d9b0be321b62f1f4 Mon Sep 17 00:00:00 2001 From: Devon Stewart Date: Tue, 10 Nov 2015 11:07:58 -0800 Subject: [PATCH 1/2] On second thought, initdb command should be defined in defaults.yaml --- postgres/defaults.yaml | 2 ++ postgres/osmap.yaml | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/postgres/defaults.yaml b/postgres/defaults.yaml index 5c4c27e..a81db3c 100644 --- a/postgres/defaults.yaml +++ b/postgres/defaults.yaml @@ -17,3 +17,5 @@ postgres: tablespaces: {} postgresconf: "" pg_hba.conf: salt://postgres/pg_hba.conf + commands: + initdb: service postgresql initdb diff --git a/postgres/osmap.yaml b/postgres/osmap.yaml index d84b9a4..fee8384 100644 --- a/postgres/osmap.yaml +++ b/postgres/osmap.yaml @@ -5,5 +5,3 @@ Arch: {} Debian: pkg_repo_file: /etc/apt/sources.list.d/pgdg.list pkg_libpq_dev: libpq-dev - commands: - initdb: service postgresql initdb From de16b0029784ba43ef87ae67e8409d4ee045c5d2 Mon Sep 17 00:00:00 2001 From: Devon Stewart Date: Sun, 15 Nov 2015 10:53:37 -0800 Subject: [PATCH 2/2] Adding initdb command to pillar example --- pillar.example | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pillar.example b/pillar.example index 349113e..f3bdd05 100644 --- a/pillar.example +++ b/pillar.example @@ -1,5 +1,7 @@ postgres: pg_hba.conf: salt://postgres/pg_hba.conf + commands: + initdb: service postgresql initdb use_upstream_repo: False