Skip to content

Enable replication connections by default in pg_hba.conf #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 6 additions & 1 deletion postgres/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

postgres:
use_upstream_repo: True
version: '9.5'
version: '10'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting10 as "default" should be okay. Debian stretch ships with version 9.6 but the version parameter is paired with use_upstream_repo: True and version 10 seems to be widely available upstream, and for Debian stretch too. Approved.

pkg: postgresql
pkgs_extra: []
pkg_client: postgresql-client
Expand Down Expand Up @@ -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: []
Expand Down