move parameter
This commit is contained in:
@@ -120,6 +120,7 @@
|
|||||||
# @param [string] fn_default_action Choose default action.
|
# @param [string] fn_default_action Choose default action.
|
||||||
# @param [string] fn_extra_repo_url Specify the URL for the extra repo for
|
# @param [string] fn_extra_repo_url Specify the URL for the extra repo for
|
||||||
# additiional required packages, which are not in the regular repos.
|
# 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 (
|
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 = '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_action_badips_report = 'badips[category="%(__name__)s", agent="%(fail2ban_agent)s"]',
|
||||||
$fn_default_action = 'action_',
|
$fn_default_action = 'action_',
|
||||||
|
$fn_jail_paths = 'fedora'
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
$fn_jail_paths = $::operatingsystem ? {
|
|
||||||
/(?i-mx:centos|fedora|rocky|redhat)/ => 'fedora',
|
|
||||||
}
|
|
||||||
|
|
||||||
# shortcuts
|
# shortcuts
|
||||||
$fn_os = $::operatingsystem
|
$fn_os = $::operatingsystem
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user