Skip to content

Commit 288bea8

Browse files
authored
Merge pull request #313 from noelmcloughlin/clena
chore(version): increase default version; remove pid dir on clean; update pillar.example
2 parents 1d34f8c + 92e0ad3 commit 288bea8

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

pillar.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ postgres:
1010
# Set true to configure upstream postgresql.org repository for YUM/APT/ZYPP
1111
use_upstream_repo: false
1212
# Version to install from upstream repository (if upstream_repo: true)
13-
version: '10'
13+
version: '13'
1414
# Set true to add a file in /etc/profile.d adding the bin dir in $PATH
1515
# as packages from upstream put them somewhere like /usr/pgsql-10/bin
1616
add_profile: false
@@ -76,12 +76,15 @@ postgres:
7676
# The uppercase items must be replaced by actual values.
7777
# METHOD could be omitted, 'md5' will be appended by default.
7878
#
79+
# Postgres expect a valid CIDR for ADDRESS (not ipaddress)
80+
#
7981
# If ``acls`` item value is empty ('', [], null), then the contents of
8082
# ``pg_hba.conf`` file will not be touched at all.
8183
acls:
8284
- ['local', 'db0', 'connuser', 'peer map=users_as_appuser']
8385
- ['local', 'db1', 'localUser']
8486
- ['host', 'db2', 'remoteUser', '192.168.33.0/24']
87+
- ['host', 'all', 'all', '127.0.0.1/32', 'md5']
8588

8689
identity_map:
8790
- ['users_as_appuser', 'jdoe', 'connuser']

postgres/defaults.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
postgres:
77
use_upstream_repo: true
88
add_profile: false # add bin_dir to $PATH, if installed from repos
9-
version: '11'
9+
version: '13'
1010
pkg: postgresql
1111
pkgs_extra: []
1212
pkgs_deps: []

postgres/server/remove.sls

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ postgresql-server-removed:
2424
- {{ pkg }}
2525
{% endfor %}
2626
{% endif %}
27+
file.absent:
28+
- names:
29+
- /var/run/postgresql
2730
2831
{%- if postgres.remove.multiple_releases %}
2932
#search for and cleandown multiple releases

test/salt/pillar/postgres.sls

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ postgres:
1515
{%- else %}
1616
use_upstream_repo: True
1717
# Version to install from upstream repository (if upstream_repo: True)
18-
{%- if not (grains.os_family == 'Debian') %}
19-
version: '9.6'
20-
{%- else %}
21-
version: '10'
22-
{%- endif %}
18+
version: '13'
2319
# # Set True to add a file in /etc/profile.d adding the bin dir in $PATH
2420
# # as packages from upstream put them somewhere like /usr/pgsql-10/bin
2521
# add_profile: False

0 commit comments

Comments
 (0)