move parameter

This commit is contained in:
Arne Teuke
2023-07-23 15:51:26 +02:00
parent e223a72559
commit 133b9bf171

View File

@@ -95,12 +95,14 @@
# @param [string] ne_allow_weak_rnd_seed Whether to allow weak random seeds # @param [string] ne_allow_weak_rnd_seed Whether to allow weak random seeds
# @param [string] ne_include_selinux Whether to manage selinux # @param [string] ne_include_selinux Whether to manage selinux
# @param [boolean] ne_enable_ssl Whether to enable SSL certificates. # @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 # @param [boolean] ne_manage_cmds Whether to manage command rules for NRPE
# checks, to allow dynamic check & command rules. # checks, to allow dynamic check & command rules.
############################################################################### ###############################################################################
class cd_nrpe::params ( class cd_nrpe::params (
$pkg_ensure = 'latest', $pkg_ensure = 'latest',
$reqpackages = ['nrpe','nrpe-selinux'],
$ne_manage_cmds = true, $ne_manage_cmds = true,
@@ -150,14 +152,8 @@ $ne_fw_order_no = '50',
# selinux # selinux
$ne_include_selinux = true, $ne_include_selinux = true,
) { ) {
# installation section
$reqpackages = $::operatingsystem ? {
/(?i-mx:centos|fedora|redhat)/ => ['nrpe','nrpe-selinux'],
}
# service # service
$ne_service = 'nrpe' $ne_service = 'nrpe'