summaryrefslogtreecommitdiffstats
path: root/modules/fail2ban/manifests/jail.pp
blob: 2d3c2ef43bfc4d8ffe212f0d6ab9f42281b19d8b (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/jail/${name}.conf",
    default => $source,
  }

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