diff options
Diffstat (limited to 'global/overlay/etc/puppet/modules')
-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" } } |