Allow setting dir mode for conf_dir in pillar

The current mode of 0775 causes start problems:

`FATAL:  data directory "/var/lib/postgresql/9.6/main" has group or world access`
This commit is contained in:
Brian Glogower 2018-03-31 13:03:14 -07:00
parent 43b51148fe
commit feb2b386ce
No known key found for this signature in database
GPG key ID: 963551964530380B
2 changed files with 2 additions and 1 deletions

View file

@ -21,6 +21,7 @@ postgres:
env: []
conf_dir: /var/lib/pgsql/data
conf_dir_mode: 0775
postgresconf: ""
macos:

View file

@ -72,7 +72,7 @@ postgresql-config-dir:
- name: {{ postgres.conf_dir }}
- user: {{ postgres.user }}
- group: {{ postgres.group }}
- dir_mode: 775
- dir_mode: {{ postgres.conf_dir_mode }}
- force: True
- file_mode: 644
- recurse: