summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp
blob: a9911da726f9086e7347c75db10fc3e0c904ade7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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'],
  }
}