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:
3939postgresql- 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 % }
Original file line number Diff line number Diff line change 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 grains.os_family != 'Debian' and salt[' grains.get'](' osfinger') != 'Leap-15' %}
55postgres.port : ' 5432'
66{%- else %}
77postgres.port : ' 5433'
@@ -10,7 +10,7 @@ postgres.port: '5433'
1010postgres :
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 grains.os_family != 'Debian' and 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
You can’t perform that action at this time.
0 commit comments