pg_hba should also be copied to replicas when postgresql_exists=true #92
tomo-kivra
started this conversation in
General
Replies: 1 comment 6 replies
-
pg_hba.conf must be copied from master, with the add_pgnode.yml playbook. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Very nice playbook, but I think when having an existing PG cluster we should still copy pg_hba.conf to replicas also.
Currently it is not done, and after failover is done to one of replicas, pg_hba will different than on previous master.
(of course one should prepare pg_hba to be the same as before, but this is in case we want to change something when deploying patroni)
A quick fix would be to add additional "OR" to when statement:
Maybe I am missing something here, so would like to see your comment on this.
Beta Was this translation helpful? Give feedback.
All reactions