Skip to content

Commit ae6375c

Browse files
committed
fix(pkg): add inline EPEL repo configuration for Amazon Linux 2
1 parent 502e45b commit ae6375c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: nginx/pkg.sls

+16
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,22 @@ nginx_zypp_repo:
113113
{% endif %}
114114
115115
{% if salt['grains.get']('os_family') == 'RedHat' %}
116+
{% if salt['grains.get']('osfinger', '') in ['Amazon Linux-2'] %}
117+
nginx_epel_repo:
118+
pkgrepo.managed:
119+
- name: epel
120+
- humanname: Extra Packages for Enterprise Linux 7 - $basearch
121+
- mirrorlist: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
122+
- enabled: 1
123+
- gpgcheck: 1
124+
- gpgkey: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
125+
- failovermethod: priority
126+
- require_in:
127+
- pkg: nginx_install
128+
- watch_in:
129+
- pkg: nginx_install
130+
{% endif %}
131+
116132
nginx_yum_repo:
117133
pkgrepo:
118134
{%- if from_official %}

0 commit comments

Comments
 (0)