From e2b6eab75324c4fc375c3f04d9b0be321b62f1f4 Mon Sep 17 00:00:00 2001 From: Devon Stewart Date: Tue, 10 Nov 2015 11:07:58 -0800 Subject: [PATCH] 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