From c5100a2ca3891f148fa0a3e4fb13559b87bdefb4 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sun, 23 Jul 2023 15:25:05 +0200 Subject: [PATCH] move parameter --- manifests/params.pp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index 2962ee9..0fce0d9 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -120,6 +120,7 @@ # @param [string] fn_default_action Choose default action. # @param [string] fn_extra_repo_url Specify the URL for the extra repo for # additiional required packages, which are not in the regular repos. +# @param [string] fn_jail_paths the fail path. defaults to fedora. ############################################################################### class cd_fail2ban::params ( @@ -177,14 +178,10 @@ $fn_action_blocklist_de = 'blocklist_de[email="%(sender)s", service=%(filter $fn_action_badips = 'badips.py[category="%(__name__)s", banaction="%(banaction)s", agent="%(fail2ban_agent)s"]', $fn_action_badips_report = 'badips[category="%(__name__)s", agent="%(fail2ban_agent)s"]', $fn_default_action = 'action_', - +$fn_jail_paths = 'fedora' ) { -$fn_jail_paths = $::operatingsystem ? { - /(?i-mx:centos|fedora|rocky|redhat)/ => 'fedora', - } - # shortcuts $fn_os = $::operatingsystem