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

Fix failure on "geerlingguy.postgresql : Define postgresql_log_dir." #1243

Merged
merged 1 commit into from Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/1242.bugfix
@@ -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
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