summaryrefslogtreecommitdiffstats
path: root/modules/fail2ban/manifests/jail.pp
blob: 4e4ece330865739d947492ac6496d6b0c97c2d09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"];
  }
}