summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2015-04-14 15:39:54 +0200
committerLeif Johansson <leifj@sunet.se>2015-04-14 15:39:54 +0200
commit967476dd7570ad6c9400096bb46d21faf4306117 (patch)
treec5bdd573cff66e6a4373ca813ea333c83b3adef7 /global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp
parent48d88a05e6b4797de2f28d6edc382e4c5cf101fa (diff)
Diffstat (limited to 'global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp')
-rw-r--r--global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp14
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"
}
}