Merge pull request #109 from anxstj/unix_socket_dir_permissions

add postgresql_unix_socket_directories_mode option
This commit is contained in:
Jeff Geerling 2020-03-04 12:07:20 -06:00 committed by GitHub
commit 8334e6bc4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,8 @@ postgresql_group: postgres
postgresql_unix_socket_directories:
- /var/run/postgresql
# postgresql_unix_socket_directories_mode: '02775'
postgresql_service_state: started
postgresql_service_enabled: true

View File

@ -24,5 +24,7 @@
state: directory
owner: "{{ postgresql_user }}"
group: "{{ postgresql_group }}"
mode: 02775
mode: "{{ postgresql_unix_socket_directories_mode
|default(__postgresql_unix_socket_directories_mode
|default('02775')) }}"
with_items: "{{ postgresql_unix_socket_directories }}"

View File

@ -9,5 +9,6 @@ __postgresql_packages:
- postgresql-server
- postgresql-contrib
- postgresql-libs
__postgresql_unix_socket_directories_mode: '0755'
# Fedora 31 containers only have python3 by default
postgresql_python_library: python3-psycopg2