Skip to content

Commit 8fee9f0

Browse files
committed
revert(pkg): use grains.osfinger in a format suitable for all platforms
1 parent ae52641 commit 8fee9f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nginx/pkg.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ nginx_zypp_repo:
153153
{% endif %}
154154
155155
{% if grains.os_family == 'RedHat' %}
156-
{% if grains.osfinger in ['Amazon Linux-2'] %}
156+
{% if grains.get('osfinger', '') == 'Amazon Linux-2' %}
157157
nginx_epel_repo:
158158
pkgrepo.managed:
159159
- name: epel
@@ -178,7 +178,7 @@ nginx_yum_repo:
178178
{%- endif %}
179179
- name: nginx
180180
- humanname: nginx repo
181-
{%- if salt['grains.get']('os') == 'CentOS' %}
181+
{%- if grains.os == 'CentOS' %}
182182
- baseurl: 'http://nginx.org/packages/centos/$releasever/$basearch/'
183183
{%- else %}
184184
- baseurl: 'http://nginx.org/packages/rhel/{{ nginx.lookup.rh_os_releasever }}/$basearch/'

0 commit comments

Comments
 (0)