Unverified Commit fc08aac3 authored by Imran Iqbal's avatar Imran Iqbal
Browse files

fix(install): add inline EPEL repo configuration for Amazon Linux 2

parent 34a4ba48
......@@ -3,6 +3,20 @@
{% from "fail2ban/map.jinja" import fail2ban with context %}
{%- if salt['grains.get']('osfinger', '') in ['Amazon Linux-2'] %}
fail2ban_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: fail2ban.install
{%- endif %}
fail2ban.install:
pkg.installed:
- name: {{ fail2ban.package }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment