Skip to content

Commit aa91079

Browse files
authored
Merge pull request #222 from myii/PR_psql10_acls
Enable replication connections by default in `pg_hba.conf`
2 parents 501b0b6 + 9fdce93 commit aa91079

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pillar.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ postgres:
77
# Set True to configure upstream postgresql.org repository for YUM/APT/ZYPP
88
use_upstream_repo: False
99
# Version to install from upstream repository (if upstream_repo: True)
10-
version: '9.6'
10+
version: '10'
1111
# If automatic package installation fails, use `fromrepo` to specify the
1212
# upstream repo to install packages from [#133, #185] (if upstream_repo: True)
1313
fromrepo: 'jessie-pgdg'

postgres/defaults.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
postgres:
44
use_upstream_repo: True
5-
version: '9.5'
5+
version: '10'
66
pkg: postgresql
77
pkgs_extra: []
88
pkg_client: postgresql-client
@@ -48,6 +48,11 @@ postgres:
4848
- ['host', 'all', 'all', '127.0.0.1/32', 'md5']
4949
# IPv6 local connections:
5050
- ['host', 'all', 'all', '::1/128', 'md5']
51+
# Allow replication connections from localhost, by a user with the
52+
# replication privilege.
53+
- ['local', 'replication', 'all', 'peer']
54+
- ['host', 'replication', 'all', '127.0.0.1/32', 'md5']
55+
- ['host', 'replication', 'all', '::1/128', 'md5']
5156

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

0 commit comments

Comments
 (0)