fix(pkg): add inline EPEL repo configuration for Amazon Linux 2
This commit is contained in:
parent
502e45b02f
commit
ae6375cccc
@ -113,6 +113,22 @@ nginx_zypp_repo:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if salt['grains.get']('os_family') == 'RedHat' %}
|
{% if salt['grains.get']('os_family') == 'RedHat' %}
|
||||||
|
{% if salt['grains.get']('osfinger', '') in ['Amazon Linux-2'] %}
|
||||||
|
nginx_epel_repo:
|
||||||
|
pkgrepo.managed:
|
||||||
|
- name: epel
|
||||||
|
- humanname: Extra Packages for Enterprise Linux 7 - $basearch
|
||||||
|
- mirrorlist: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
|
||||||
|
- enabled: 1
|
||||||
|
- gpgcheck: 1
|
||||||
|
- gpgkey: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
||||||
|
- failovermethod: priority
|
||||||
|
- require_in:
|
||||||
|
- pkg: nginx_install
|
||||||
|
- watch_in:
|
||||||
|
- pkg: nginx_install
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
nginx_yum_repo:
|
nginx_yum_repo:
|
||||||
pkgrepo:
|
pkgrepo:
|
||||||
{%- if from_official %}
|
{%- if from_official %}
|
||||||
|
Loading…
Reference in New Issue
Block a user