move parameter
This commit is contained in:
@@ -651,6 +651,8 @@
|
|||||||
# particular item.
|
# particular item.
|
||||||
# @param [string] ng_user_arg1 the user argument for $user1$
|
# @param [string] ng_user_arg1 the user argument for $user1$
|
||||||
# @param [string] ng_user_arg2 the user argument for $user2$
|
# @param [string] ng_user_arg2 the user argument for $user2$
|
||||||
|
# @param [array] reqpackages_server the packages for the server
|
||||||
|
# @param [array] reqpackages_client the packages for the clients
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class cd_nagios::params (
|
class cd_nagios::params (
|
||||||
|
|
||||||
@@ -906,21 +908,15 @@ $ng_loadctl_options = 'jobs_max=100;backoff_limit=10;rampup_change=5',
|
|||||||
# single nagios checks
|
# single nagios checks
|
||||||
$ng_enable_swap_check = true,
|
$ng_enable_swap_check = true,
|
||||||
|
|
||||||
|
# installation
|
||||||
) {
|
$reqpackages_server = ['nagios','nagios-devel'],
|
||||||
|
$reqpackages_client = ['net-snmp-utils',
|
||||||
# installation section
|
|
||||||
|
|
||||||
$reqpackages_server = $::operatingsystem ? {
|
|
||||||
/(?i-mx:centos|fedora|redhat)/ => ['nagios','nagios-devel']
|
|
||||||
}
|
|
||||||
$reqpackages_client = $::operatingsystem ? {
|
|
||||||
/(?i-mx:centos|fedora|redhat)/ => ['net-snmp-utils',
|
|
||||||
'nagios-plugins',
|
'nagios-plugins',
|
||||||
'nagios-plugins-all',
|
'nagios-plugins-all',
|
||||||
'nagios-plugins-nrpe',
|
'nagios-plugins-nrpe',
|
||||||
'nagios-common']
|
'nagios-common'],
|
||||||
}
|
|
||||||
|
) {
|
||||||
|
|
||||||
# service
|
# service
|
||||||
$ng_service = 'nagios'
|
$ng_service = 'nagios'
|
||||||
|
|||||||
Reference in New Issue
Block a user