From 481c8973f79947e074455dc5caf1d752eb11fdfc Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Sat, 30 May 2020 21:49:45 +0100 Subject: [PATCH] fix(install): use EPEL repo for `amazonlinux-2` --- ufw/package/install.sls | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ufw/package/install.sls b/ufw/package/install.sls index 0e46963..b459d67 100644 --- a/ufw/package/install.sls +++ b/ufw/package/install.sls @@ -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 }}