diff options
author | Leif Johansson <leifj@sunet.se> | 2015-04-14 15:39:54 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2015-04-14 15:39:54 +0200 |
commit | 967476dd7570ad6c9400096bb46d21faf4306117 (patch) | |
tree | c5bdd573cff66e6a4373ca813ea333c83b3adef7 | |
parent | 48d88a05e6b4797de2f28d6edc382e4c5cf101fa (diff) |
client versionsunet-ops-2015-04-14-v37
-rw-r--r-- | global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp b/global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp index a9911da..01a9662 100644 --- a/global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp +++ b/global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp @@ -1,20 +1,14 @@ class sunet::fail2ban { - include augeas - package {'fail2ban': ensure => 'latest' } -> service {'fail2ban': ensure => 'running' } - augeas { "fail2ban_defaults": - context => "/files/etc/fail2ban/jail.conf", - incl => "/etc/fail2ban/jail.conf", - lens => "Puppet.lns", - changes => [ - 'set bantime "600800"', - ], - notify => Service['fail2ban'], + exec {"fail2ban_defaults": + refreshonly => true, + subscribe => Service['fail2ban'], + command => "sleep 5; /usr/bin/fail2ban-client set ssh bantime 600800" } } |