Skip to content

Commit

Permalink
revert(pkg): use grains.osfinger in a format suitable for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbertoli committed Feb 3, 2022
1 parent ae52641 commit 8fee9f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx/pkg.sls
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ nginx_zypp_repo:
{% endif %}
{% if grains.os_family == 'RedHat' %}
{% if grains.osfinger in ['Amazon Linux-2'] %}
{% if grains.get('osfinger', '') == 'Amazon Linux-2' %}
nginx_epel_repo:
pkgrepo.managed:
- name: epel
Expand All @@ -178,7 +178,7 @@ nginx_yum_repo:
{%- endif %}
- name: nginx
- humanname: nginx repo
{%- if salt['grains.get']('os') == 'CentOS' %}
{%- if grains.os == 'CentOS' %}
- baseurl: 'http://nginx.org/packages/centos/$releasever/$basearch/'
{%- else %}
- baseurl: 'http://nginx.org/packages/rhel/{{ nginx.lookup.rh_os_releasever }}/$basearch/'
Expand Down

0 comments on commit 8fee9f0

Please sign in to comment.