summaryrefslogtreecommitdiffstats
path: root/modules/fail2ban/manifests/init.pp
blob: 5ca648372f29598dd91b664f0fd2130567c49160 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class fail2ban {
  package { "fail2ban":
    ensure => installed;
  }

  file {
    "/etc/fail2ban/jail.local":
      source => "puppet:///modules/fail2ban/jail.local",
      notify => Service["fail2ban"],
      require => Package["fail2ban"];
  }

  service { "fail2ban":
    ensure => running,
    enable => true,
    require => [
      File["/etc/fail2ban/jail.local"],
      Package["fail2ban"],
    ];
  }
}