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

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

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