|
|
|
|
|
|
|
|
{% 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/' |