File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,6 @@ postgresql-repo:
39
39
postgresql- repo:
40
40
test.show_notification:
41
41
- 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) }}
43
43
44
44
{%- endif % }
Original file line number Diff line number Diff line change 1
1
# Port to use for the cluster -- can be used to provide a non-standard port
2
2
# NOTE: If already set in the minion config, that value takes priority
3
3
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' %}
5
5
postgres.port : ' 5432'
6
6
{%- else %}
7
7
postgres.port : ' 5433'
@@ -10,7 +10,7 @@ postgres.port: '5433'
10
10
postgres :
11
11
# UPSTREAM REPO
12
12
# 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' %}
14
14
use_upstream_repo : False
15
15
{%- else %}
16
16
use_upstream_repo : True
@@ -181,7 +181,7 @@ postgres:
181
181
public :
182
182
owner : localUser
183
183
# 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' %}
185
185
extensions :
186
186
uuid-ossp :
187
187
schema : ' public'
@@ -194,7 +194,7 @@ postgres:
194
194
owner : localUser
195
195
196
196
# 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' %}
198
198
extensions :
199
199
uuid-ossp :
200
200
schema : uuid-ossp
You can’t perform that action at this time.
0 commit comments