summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet/modules/sunet/manifests/fail2ban.pp
blob: 01a9662fb40777cecaf5b6372a04e280b9b68f2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"
  }
}