use fail2ban to block some abusive smtp clients on our MXs (re: RT#7515)
[mirror/dsa-puppet.git] / modules / fail2ban / manifests / init.pp
1 class fail2ban {
2         package { 'fail2ban':
3                 ensure => installed,
4         }
5
6         service { 'fail2ban':
7                 ensure  => running,
8         }
9
10         @ferm::conf { 'f2b':
11                 content  => @(EOF),
12                                 @hook post  "type fail2ban-client > /dev/null && (fail2ban-client ping > /dev/null && fail2ban-client reload > /dev/null ) || true";
13                                 @hook flush "type fail2ban-client > /dev/null && (fail2ban-client ping > /dev/null && fail2ban-client reload > /dev/null ) || true";
14                                 | EOF
15         }
16
17 }