From 166646f1d1622e1dd8c8f52652120213b02f3ee0 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sun, 7 Jun 2020 14:17:18 +0200 Subject: [PATCH] changes params structure --- manifests/params.pp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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', }