OP#421 restructure
This commit is contained in:
@@ -6,8 +6,9 @@
|
|||||||
class confdroid_nagios::main::install (
|
class confdroid_nagios::main::install (
|
||||||
|
|
||||||
) inherits confdroid_nagios::params {
|
) inherits confdroid_nagios::params {
|
||||||
|
require confdroid_resources
|
||||||
|
|
||||||
if $ng_nagios_server == $fqdn {
|
if $ng_nagios_server == $fqdn {
|
||||||
require confdroid_resources
|
|
||||||
# if our FQDN matches the configured Nagios server FQDN, install both server-
|
# if our FQDN matches the configured Nagios server FQDN, install both server-
|
||||||
# and client packages.We'll need httpd installed
|
# and client packages.We'll need httpd installed
|
||||||
require confdroid_apache
|
require confdroid_apache
|
||||||
@@ -22,8 +23,8 @@ class confdroid_nagios::main::install (
|
|||||||
|
|
||||||
# if we are not the nagios server, install only client packages
|
# if we are not the nagios server, install only client packages
|
||||||
if $fqdn != $ng_nagios_server {
|
if $fqdn != $ng_nagios_server {
|
||||||
package { $reqpackages_client:
|
package { $ng_reqpackages_client:
|
||||||
ensure => $pkg_ensure,
|
ensure => $ng_pkg_ensure,
|
||||||
}
|
}
|
||||||
|
|
||||||
# if we want to use NRPE on clients, install it
|
# if we want to use NRPE on clients, install it
|
||||||
|
|||||||
Reference in New Issue
Block a user