diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2015-04-26 09:10:42 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2015-04-26 09:10:42 +0200 |
commit | 1d27bd18a1c03ae9fa9d3afb7fdc5bf401a23e94 (patch) | |
tree | 700453a90c269410c0101853eb940c9996e4d452 /global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp | |
parent | d6a0cfe99e4b5b91307386e6746bf3587f3b32bb (diff) | |
parent | deeb38e36bf12b51535cae4a6e61ab145a0720d6 (diff) |
Merge branch 'master' of git.nordu.net:sunet-opssunet-ops-2015-04-26-v01
Diffstat (limited to 'global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp')
-rw-r--r-- | global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp b/global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp new file mode 100644 index 0000000..01a9662 --- /dev/null +++ b/global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp @@ -0,0 +1,14 @@ +class sunet::fail2ban { + + package {'fail2ban': + ensure => 'latest' + } -> + service {'fail2ban': + ensure => 'running' + } + exec {"fail2ban_defaults": + refreshonly => true, + subscribe => Service['fail2ban'], + command => "sleep 5; /usr/bin/fail2ban-client set ssh bantime 600800" + } +} |