From 311cb3d187b00126a9cb1d142ac14f3c86d3dd4d Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Fri, 8 Jun 2018 22:51:41 +0100 Subject: [PATCH 1/2] 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: [] From 9fdce930042f62c3fee726e17668526fbfdbf3fb Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Fri, 8 Jun 2018 23:58:14 +0100 Subject: [PATCH 2/2] Set default version to `10` --- pillar.example | 2 +- postgres/defaults.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pillar.example b/pillar.example index 48d0e07..02bb50d 100644 --- a/pillar.example +++ b/pillar.example @@ -3,7 +3,7 @@ postgres: # Set True to configure upstream postgresql.org repository for YUM/APT/ZYPP use_upstream_repo: False # Version to install from upstream repository (if upstream_repo: True) - version: '9.6' + version: '10' # If automatic package installation fails, use `fromrepo` to specify the # upstream repo to install packages from [#133, #185] (if upstream_repo: True) fromrepo: 'jessie-pgdg' diff --git a/postgres/defaults.yaml b/postgres/defaults.yaml index 7d14a91..393fe5d 100644 --- a/postgres/defaults.yaml +++ b/postgres/defaults.yaml @@ -2,7 +2,7 @@ postgres: use_upstream_repo: True - version: '9.5' + version: '10' pkg: postgresql pkgs_extra: [] pkg_client: postgresql-client