OP#421 add install section
This commit is contained in:
@@ -6,11 +6,36 @@
|
||||
# @param [String] ng_nagios_server The hostname or IP address of the
|
||||
# Nagios server. This will determine the installation selection and the
|
||||
# of the clients to connect to the Nagios server.
|
||||
# @param [Array] ng_reqpackages_server An array of packages to be installed on
|
||||
# the Nagios server.
|
||||
# @param [Array] ng_reqpackages_client An array of packages to be installed on
|
||||
# the Nagios clients.
|
||||
# @param [String] ng_pkg_ensure The ensure value for all packages. Default is
|
||||
# 'present'.
|
||||
###############################################################################
|
||||
class confdroid_nagios::params (
|
||||
|
||||
# main
|
||||
String $ng_nagios_server = 'nagios.example.net',
|
||||
String $ng_nagios_server = 'nagios.example.net',
|
||||
Array $ng_reqpackages_server = ['nagios','nagios-devel'],
|
||||
Array $ng_reqpackages_client = ['net-snmp-utils','nagios-plugins','nagios-plugins-all','nagios-plugins-nrpe','nagios-common'],
|
||||
String $ng_pkg_ensure = 'present',
|
||||
|
||||
) {
|
||||
# service
|
||||
$ng_service = 'nagios'
|
||||
$ae_service = 'httpd'
|
||||
|
||||
# directories
|
||||
$ng_main_dir = '/etc/nagios'
|
||||
$ng_conf_d_dir = "${ng_main_dir}/conf.d"
|
||||
$ng_objects_dir = "${ng_main_dir}/objects"
|
||||
$ng_private_dir = "${ng_main_dir}/private"
|
||||
$ng_usr_incl = '/usr/include/nagios'
|
||||
$ng_lib_dir = '/usr/lib64/nagios'
|
||||
$ng_log_dir = '/var/log/nagios'
|
||||
$ng_log_archives = "${ng_log_dir}/archives"
|
||||
$ng_spool_dir = '/var/spool/nagios'
|
||||
|
||||
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user