Skip to content

Commit 311cb3d

Browse files
committed
Enable replication connections by default in pg_hba.conf
Upstream commit: - postgres/postgres@be37c21 - 9 Mar 2017 - master REL_11_BETA1 REL_10_4 ... REL_10_BETA1
1 parent d9c071a commit 311cb3d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

postgres/defaults.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ postgres:
4747
- ['host', 'all', 'all', '127.0.0.1/32', 'md5']
4848
# IPv6 local connections:
4949
- ['host', 'all', 'all', '::1/128', 'md5']
50+
# Allow replication connections from localhost, by a user with the
51+
# replication privilege.
52+
- ['local', 'replication', 'all', 'peer']
53+
- ['host', 'replication', 'all', '127.0.0.1/32', 'md5']
54+
- ['host', 'replication', 'all', '::1/128', 'md5']
5055

5156
pg_ident.conf: salt://postgres/templates/pg_ident.conf.j2
5257
identity_map: []

0 commit comments

Comments
 (0)