Skip to content

Commit b18a66c

Browse files
feat(archlinux): add support, fixing rendering errors
1 parent 115f638 commit b18a66c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

postgres/upstream.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ postgresql-repo:
3939
postgresql-repo:
4040
test.show_notification:
4141
- text: |
42-
PostgreSQL does not provide package repository for {{ grains['osfinger'] }}
42+
PostgreSQL does not provide package repository for {{ salt['grains.get']('osfinger', grains.os) }}
4343
4444
{%- endif %}

test/salt/pillar/postgres.sls

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Port to use for the cluster -- can be used to provide a non-standard port
22
# NOTE: If already set in the minion config, that value takes priority
33

4-
{%- if not (grains.os_family == 'Debian' or grains.osfinger == 'Leap-15') %}
4+
{%- if not (grains.os_family == 'Debian' or salt['grains.get']('osfinger') == 'Leap-15' %}
55
postgres.port: '5432'
66
{%- else %}
77
postgres.port: '5433'
@@ -10,7 +10,7 @@ postgres.port: '5433'
1010
postgres:
1111
# UPSTREAM REPO
1212
# Set True to configure upstream postgresql.org repository for YUM/APT/ZYPP
13-
{%- if not (grains.os_family == 'Debian' or grains.osfinger == 'CentOS-6') %}
13+
{%- if not (grains.os_family == 'Debian' or salt['grains.get']('osfinger') == 'CentOS-6' %}
1414
use_upstream_repo: False
1515
{%- else %}
1616
use_upstream_repo: True
@@ -181,7 +181,7 @@ postgres:
181181
public:
182182
owner: localUser
183183
# enable per-db extension
184-
{%- if grains.os_family == 'Debian' and grains.osfinger != 'Debian-8' %}
184+
{%- if grains.os_family == 'Debian' and salt['grains.get']('osfinger') != 'Debian-8' %}
185185
extensions:
186186
uuid-ossp:
187187
schema: 'public'
@@ -194,7 +194,7 @@ postgres:
194194
owner: localUser
195195

196196
# optional extensions to install in schema
197-
{%- if grains.os_family == 'Debian' and grains.osfinger != 'Debian-8' %}
197+
{%- if grains.os_family == 'Debian' and salt['grains.get']('osfinger') != 'Debian-8' %}
198198
extensions:
199199
uuid-ossp:
200200
schema: uuid-ossp

0 commit comments

Comments
 (0)