diff --git a/postgres/init.sls b/postgres/init.sls index e8559b3..3609492 100644 --- a/postgres/init.sls +++ b/postgres/init.sls @@ -8,6 +8,11 @@ include: {{ postgres.conf_dir }}: file.directory: - makedirs: True + - user: postgres + - group: postgres + - dir_mode: 700 + - clean: True + - unless: test -f {{ postgres.conf_dir }}/PG_VERSION install-postgresql: pkg.installed: