From 311cb3d187b00126a9cb1d142ac14f3c86d3dd4d Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Fri, 8 Jun 2018 22:51:41 +0100 Subject: [PATCH] Enable replication connections by default in `pg_hba.conf` Upstream commit: - https://github.com/postgres/postgres/commit/be37c2120a2a88e5ba852d42952c77b6bf5d5271 - 9 Mar 2017 - master REL_11_BETA1 REL_10_4 ... REL_10_BETA1 --- postgres/defaults.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/postgres/defaults.yaml b/postgres/defaults.yaml index f84ba3d..7d14a91 100644 --- a/postgres/defaults.yaml +++ b/postgres/defaults.yaml @@ -47,6 +47,11 @@ postgres: - ['host', 'all', 'all', '127.0.0.1/32', 'md5'] # IPv6 local connections: - ['host', 'all', 'all', '::1/128', 'md5'] + # Allow replication connections from localhost, by a user with the + # replication privilege. + - ['local', 'replication', 'all', 'peer'] + - ['host', 'replication', 'all', '127.0.0.1/32', 'md5'] + - ['host', 'replication', 'all', '::1/128', 'md5'] pg_ident.conf: salt://postgres/templates/pg_ident.conf.j2 identity_map: []