From 353399a40787bae39efddd466e9b26b78224000d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:30 -0400 Subject: [PATCH] Ensure core pg_hba entries are present --- roles/pvc/templates/patroni/patroni.yml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/pvc/templates/patroni/patroni.yml.j2 b/roles/pvc/templates/patroni/patroni.yml.j2 index 99bca5d..8682760 100644 --- a/roles/pvc/templates/patroni/patroni.yml.j2 +++ b/roles/pvc/templates/patroni/patroni.yml.j2 @@ -73,6 +73,12 @@ postgresql: max_wal_senders: 8 max_replication_slots: 8 pg_hba: + - local all all trust + - host all all 127.0.0.1/32 trust + - host all all ::1/128 trust + - local replication all trust + - host replication all 127.0.0.1/32 trust + - host replication all ::1/128 trust - local all all peer - host replication replicator 127.0.0.1/32 trust {% for node in pvc_nodes if node.is_coordinator %}