diff --git a/manifests/params.pp b/manifests/params.pp index b635a57..880144a 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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', }