From a283b7904500445e00f9511494eea8097f90a2f5 Mon Sep 17 00:00:00 2001 From: Dennis Wallberg Date: Thu, 19 Feb 2015 14:52:19 +0100 Subject: added fail2ban class --- global/overlay/etc/puppet/manifests/cosmos-site.pp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'global/overlay') diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index 4c4d5d0..218f69b 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -786,6 +786,21 @@ class entropyserver { } } +class fail2ban { + + include augeas + + package {'fail2ban': ensure => 'latest'} + augeas { "fail2ban_defaults": + incl => "/etc/fail2ban/jail.conf", + lens => "Shellvars.lns", + changes => [ + 'set bantime "604800"', + ], + notify => Service['fail2ban'], + } +} + class quantis { apt::ppa {'ppa:ndn/quantispci': } package {'quantispci-dkms': } -- cgit v1.1