Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Fix failure on "geerlingguy.postgresql : Define postgresql_log_dir."
Browse files Browse the repository at this point in the history
fixes: #1242
(cherry picked from commit 6b24564)
  • Loading branch information
mikedep333 authored and fao89 committed Jul 12, 2022
1 parent 372c20b commit a67a4ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/1242.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix geerlingguy.postgresql role >=3.3.1 failing on the task "Define postgresql_log_dir."
4 changes: 4 additions & 0 deletions roles/pulp_database/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ __pulp_database_merged_pulp_settings: "{{ __pulp_database_pulp_settings_defaults
__pulp_database_local_postgresql_global_config_options:
- option: unix_socket_directories
value: '{{ postgresql_unix_socket_directories | join(",") }}'
- option: log_directory
value: 'log'

__pulp_database_remote_postgresql_global_config_options:
- option: listen_addresses
value: "*"
- option: log_directory
value: 'log'

postgresql_global_config_options: "{{ (__pulp_database_merged_pulp_settings.databases.default.HOST == 'localhost') | ternary(__pulp_database_local_postgresql_global_config_options, __pulp_database_remote_postgresql_global_config_options) }}"

Expand Down

0 comments on commit a67a4ab

Please sign in to comment.