-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repmgr extension fixes #2
base: add-repmgr-extension
Are you sure you want to change the base?
repmgr extension fixes #2
Conversation
…ot the postgresql_conf_directory
…ces running on non-default ports
…ured repmgr_master as the master
… file and add 5.0.0 as a template since the rpm version is 5.0.0 and not 5.0
Hi @AnthonyCaetano! Thanks a lot for your contribution! Everything looks good to me but could you explain what purpose the regex serves in |
Hi @rbjorklin I added the regexes so that the .pgpass contains both the FQDN and the shortname of the host so that auth works in both cases -- in our deployment the inventory contains FQDNs, but some of the names configured are the short names and they get auth denied. I only meant for these commits be included in the PR: We do require these other 4 commits for our environment, but I didn't mean for them to be included as part of the PR: My bad... |
Hi @AnthonyCaetano |
Hi
Please find the following 3 issues addressed (I can't log issues on your repo), but they are:
The use of the existing repmgr_config_directory variable as the location for repmgr.conf rather than using postgresql_conf_directory.
Allow repmgr standby clone to work even if postgresql is running on a non-default port
Don't assume that the first host in the play (i.e. ansible_play_host[0] is the master on first config) -- rather use existing variable repmgr_master. The host names from the inventory are not semantically sort for "first" and "second" by role in some organizations, and the first host in the play might need to be the standby.
Protect the pgpass updates with no_log: True.
Regards
Anthony Caetano