changes params structure

This commit is contained in:
Arne Teuke
2020-06-07 14:17:18 +02:00
parent 3cb3549914
commit 166646f1d1

View File

@@ -23,6 +23,7 @@
# @param [string] pkg_ensure
# which [package type](https://confdroid.com/2017/05/puppet-type-package/)
# to choose, i.e. `latest` or `present`.
# @param [array] reqpackages the packages to install.
# @param [boolean] fn_manage_config Whether to manage the fail2ban
# configuration files. If set to false, fail2ban will be installed, but the
# configuration will not be managed.
@@ -120,7 +121,11 @@
###############################################################################
class cd_fail2ban::params (
# installation
$pkg_ensure = 'latest',
$reqpackages = ['fail2ban','fail2ban-firewalld',
'fail2ban-sendmail','fail2ban-server.noarch',
'whois'],
$fn_manage_config = true,
$fn_enable_service = 'running',
@@ -172,13 +177,6 @@ $fn_default_action = 'action_',
) {
# installation section
$reqpackages = $::operatingsystem ? {
/(?i-mx:centos|fedora|redhat)/ => ['fail2ban','fail2ban-firewalld',
'fail2ban-sendmail',
'fail2ban-server.noarch','whois'],
}
$fn_jail_paths = $::operatingsystem ? {
/(?i-mx:centos|fedora|redhat)/ => 'fedora',
}