Convert hard-coded postgres user and group to variables, enforce ownership of conf dir, don't create pg_hba.conf unless initdb has succeeded

This commit is contained in:
Tim Goodaire
2016-05-20 12:12:40 -05:00
parent aba8414809
commit e36478bcd6
2 changed files with 11 additions and 6 deletions

View File

@@ -20,3 +20,5 @@ postgres:
pg_hba.conf: salt://postgres/pg_hba.conf
commands:
initdb: service postgresql initdb
postgres_user: postgres
postgres_group: postgres