From 36b7ad1fb3f122bcc3a30cf6a996ee74a09f021a Mon Sep 17 00:00:00 2001 From: Henrik Henriksson <hx@hx.ax> Date: Wed, 19 Aug 2020 23:25:26 +0200 Subject: [PATCH] Require epel on centos --- manifests/fail2ban.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests/fail2ban.pp b/manifests/fail2ban.pp index c6b2c4e..72058f4 100644 --- a/manifests/fail2ban.pp +++ b/manifests/fail2ban.pp @@ -1,4 +1,7 @@ class lysnetwork::fail2ban { + if $facts['os']['name'] == 'CentOS' { + require ::epel + } package { 'fail2ban': ensure => latest, before => File['/etc/fail2ban/jail.local'], -- GitLab