mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-15 17:20:25 +00:00
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:
parent
43b51148fe
commit
feb2b386ce
2 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ postgres:
|
|||
env: []
|
||||
|
||||
conf_dir: /var/lib/pgsql/data
|
||||
conf_dir_mode: 0775
|
||||
postgresconf: ""
|
||||
|
||||
macos:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue