Skip to content

Commit

Permalink
fix(install): use EPEL repo for amazonlinux-2
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed May 30, 2020
1 parent a636ee5 commit 481c897
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ufw/package/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
{%- from tplroot ~ "/map.jinja" import ufw with context %}
ufw-package-install-pkg-installed:
{%- if grains.get('osfinger', '') == 'Amazon Linux-2' %}
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: ufw-package-install-pkg-installed
{%- endif %}
pkg.installed:
- name: {{ ufw.package }}
Expand Down

0 comments on commit 481c897

Please sign in to comment.