move parameter
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user