Add findtime to the fail2ban::jail resource

This commit is contained in:
Kevin Carter
2013-06-17 19:09:53 -06:00
parent 938ed9e14e
commit 339dce8707
3 changed files with 14 additions and 7 deletions
+4 -1
View File
@@ -21,6 +21,8 @@
# $action - The action to take when fail2ban finds $maxretry $filter-matching
# records in $logpath
# $bantime - How much time to apply the ban, in seconds
# $findtime - The counter is set to zero if no match is found within "findtime"
# seconds.
define fail2ban::jail (
$jailname = '',
@@ -32,6 +34,7 @@ define fail2ban::jail (
$logpath = '',
$maxretry = '',
$bantime = '',
$findtime = '',
$enable = true ) {
include concat::setup
@@ -119,7 +122,7 @@ define fail2ban::jail (
notify => Service['fail2ban'],
}
}
concat::fragment{ "fail2ban_jail_$name":
concat::fragment{ "fail2ban_jail_${name}":
ensure => $ensure,
target => $fail2ban::jails_file,
content => template('fail2ban/concat/jail.local-stanza.erb'),