OP#421 fix params
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
## confdroid_nagios::main::install.pp
|
## confdroid_nagios::main::install.pp
|
||||||
# Module name: confdroid_nagios
|
# Module name: confdroid_nagios
|
||||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||||
# @summary Class manages main configuration for the confdroid_nagios module.
|
# @summary Class manages installation matters for the confdroid_nagios module.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class confdroid_nagios::main::install (
|
class confdroid_nagios::main::install (
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,12 @@ class confdroid_nagios::params (
|
|||||||
String $ng_pkg_ensure = 'present',
|
String $ng_pkg_ensure = 'present',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
# Default facts
|
||||||
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
$domain = $facts['networking']['domain']
|
||||||
|
$os_name = $facts['os']['name']
|
||||||
|
$os_release = $facts['os']['release']['major']
|
||||||
|
|
||||||
# service
|
# service
|
||||||
$ng_service = 'nagios'
|
$ng_service = 'nagios'
|
||||||
$ae_service = 'httpd'
|
$ae_service = 'httpd'
|
||||||
@@ -37,14 +43,6 @@ class confdroid_nagios::params (
|
|||||||
$ng_log_archives = "${ng_log_dir}/archives"
|
$ng_log_archives = "${ng_log_dir}/archives"
|
||||||
$ng_spool_dir = '/var/spool/nagios'
|
$ng_spool_dir = '/var/spool/nagios'
|
||||||
|
|
||||||
|
|
||||||
) {
|
|
||||||
# Default facts
|
|
||||||
$fqdn = $facts['networking']['fqdn']
|
|
||||||
$domain = $facts['networking']['domain']
|
|
||||||
$os_name = $facts['os']['name']
|
|
||||||
$os_release = $facts['os']['release']['major']
|
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
include confdroid_nagios::main::config
|
include confdroid_nagios::main::config
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user