Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
salt-formulas
mirror
Fail2ban Formula
Commits
fc08aac3
Unverified
Commit
fc08aac3
authored
Feb 16, 2021
by
Imran Iqbal
Browse files
fix(install): add inline EPEL repo configuration for Amazon Linux 2
parent
34a4ba48
Changes
1
Hide whitespace changes
Inline
Side-by-side
fail2ban/install.sls
View file @
fc08aac3
...
...
@@ -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 }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment