summaryrefslogtreecommitdiffstats
path: root/modules/fail2ban/manifests/jail.pp
blob: 7e8083e0d01e1cf4b702fe26939a1a4296bcb65b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
define fail2ban::jail($source=undef) {
  include fail2ban

  $_source = $source ? {
    undef => "puppet:///modules/fail2ban/${name}.conf",
    default => $source,
  }

  file { "/etc/fail2ban/jail.d/${name}.conf":
    source => $_source,
    require => Package["fail2ban"],
    notify => Service["fail2ban"];
  }
}