Browse Source

revert(pkg): use grains.osfinger in a format suitable for all platforms

tags/v2.8.0
Javier Bértoli 2 years ago
parent
commit
8fee9f05bd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      nginx/pkg.sls

+ 2
- 2
nginx/pkg.sls View File

{% endif %} {% endif %}


{% if grains.os_family == 'RedHat' %} {% if grains.os_family == 'RedHat' %}
{% if grains.osfinger in ['Amazon Linux-2'] %}
{% if grains.get('osfinger', '') == 'Amazon Linux-2' %}
nginx_epel_repo: nginx_epel_repo:
pkgrepo.managed: pkgrepo.managed:
- name: epel - name: epel
{%- endif %} {%- endif %}
- name: nginx - name: nginx
- humanname: nginx repo - humanname: nginx repo
{%- if salt['grains.get']('os') == 'CentOS' %}
{%- if grains.os == 'CentOS' %}
- baseurl: 'http://nginx.org/packages/centos/$releasever/$basearch/' - baseurl: 'http://nginx.org/packages/centos/$releasever/$basearch/'
{%- else %} {%- else %}
- baseurl: 'http://nginx.org/packages/rhel/{{ nginx.lookup.rh_os_releasever }}/$basearch/' - baseurl: 'http://nginx.org/packages/rhel/{{ nginx.lookup.rh_os_releasever }}/$basearch/'

Loading…
Cancel
Save