Add multiple logpaths support (closes #11)

This commit is contained in:
Javier Bértoli
2013-11-24 19:24:09 -03:00
parent 38f9a89235
commit 80a6650164
3 changed files with 41 additions and 7 deletions
+6 -3
View File
@@ -78,9 +78,12 @@ define fail2ban::jail (
default => $action,
}
$real_logpath = $logpath ? {
'' => '',
default => $logpath,
$array_logpath = is_array($logpath) ? {
false => $logpath ? {
'' => [],
default => [$logpath],
},
default => $logpath,
}
$real_maxretry = $maxretry ? {