From 133b9bf171e069b2b33580190ec881afa587b763 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sun, 23 Jul 2023 15:51:26 +0200 Subject: [PATCH] move parameter --- manifests/params.pp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index 721b924..0c7302b 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -95,12 +95,14 @@ # @param [string] ne_allow_weak_rnd_seed Whether to allow weak random seeds # @param [string] ne_include_selinux Whether to manage selinux # @param [boolean] ne_enable_ssl Whether to enable SSL certificates. +# @param [array] reqpackages which packages to install # @param [boolean] ne_manage_cmds Whether to manage command rules for NRPE # checks, to allow dynamic check & command rules. ############################################################################### class cd_nrpe::params ( $pkg_ensure = 'latest', +$reqpackages = ['nrpe','nrpe-selinux'], $ne_manage_cmds = true, @@ -150,14 +152,8 @@ $ne_fw_order_no = '50', # selinux $ne_include_selinux = true, - ) { -# installation section -$reqpackages = $::operatingsystem ? { - /(?i-mx:centos|fedora|redhat)/ => ['nrpe','nrpe-selinux'], - } - # service $ne_service = 'nrpe'