From 38e596260009e7cc9f8cbe08dee20d6476d21c80 Mon Sep 17 00:00:00 2001 From: Roman Inflianskas Date: Mon, 23 Nov 2015 13:57:19 +0300 Subject: [PATCH] ensure proper permissions for postgresql dir --- postgres/init.sls | 5 +++++ 1 file changed, 5 insertions(+) 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: