summaryrefslogtreecommitdiff
path: root/global
diff options
context:
space:
mode:
authorDennis Wallberg <dennis@nordu.net>2015-02-19 14:52:19 +0100
committerDennis Wallberg <dennis@nordu.net>2015-02-19 14:52:19 +0100
commita283b7904500445e00f9511494eea8097f90a2f5 (patch)
tree7751c877bcf40886ad275c0416642f1f1d8de186 /global
parent5038dafd0c17d23f5e4693d697db6c935afeaa65 (diff)
added fail2ban class
Diffstat (limited to 'global')
-rw-r--r--global/overlay/etc/puppet/manifests/cosmos-site.pp15
1 files changed, 15 insertions, 0 deletions
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': }