Skip to content

Commit

Permalink
Make pgpool2 backend flag configurable
Browse files Browse the repository at this point in the history
Leaving the default as ALLOW_TO_FAILOVER.
  • Loading branch information
Ianvdl authored and vibhorkumar123 committed Apr 9, 2024
1 parent e5b375f commit 415c80f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions roles/setup_pgpool2/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ pgpool2_ssl_csr_dn:
EMAIL: "[email protected]"

pgpool2_service_users: []
pgpool2_backend_flag: "ALLOW_TO_FAILOVER"

# setting validate_only to true allows you to validate setup on an existing node
# use_validation flag applies to deployment configuration and validation after setup
Expand Down
2 changes: 1 addition & 1 deletion roles/setup_pgpool2/tasks/pgpool2_configure_backends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
{
'key': 'backend_flag' + ansible_loop.index0 | string,
'value': 'ALLOW_TO_FAILOVER',
'value': pgpool2_backend_flag,
'state': 'present',
'quoted': true
}
Expand Down

0 comments on commit 415c80f

Please sign in to comment.