We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae52641 commit 8fee9f0Copy full SHA for 8fee9f0
nginx/pkg.sls
@@ -153,7 +153,7 @@ nginx_zypp_repo:
153
{% endif %}
154
155
{% if grains.os_family == 'RedHat' %}
156
-{% if grains.osfinger in ['Amazon Linux-2'] %}
+ {% if grains.get('osfinger', '') == 'Amazon Linux-2' %}
157
nginx_epel_repo:
158
pkgrepo.managed:
159
- name: epel
@@ -178,7 +178,7 @@ nginx_yum_repo:
178
{%- endif %}
179
- name: nginx
180
- humanname: nginx repo
181
- {%- if salt['grains.get']('os') == 'CentOS' %}
+ {%- if grains.os == 'CentOS' %}
182
- baseurl: 'http://nginx.org/packages/centos/$releasever/$basearch/'
183
{%- else %}
184
- baseurl: 'http://nginx.org/packages/rhel/{{ nginx.lookup.rh_os_releasever }}/$basearch/'
0 commit comments