aboutsummaryrefslogtreecommitdiff
path: root/manifests/host.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-20 18:05:08 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-20 18:05:08 -0200
commit2c24dcb640d090d1fd832f8f4ef4a8c21f668f8b (patch)
treeda92147a7f29ecb05cab34c6ea2e9928d65c68bb /manifests/host.pp
parent2e39280326ec5258e47ccf809838fa96d6dc122e (diff)
downloadpuppet-nodo-2c24dcb640d090d1fd832f8f4ef4a8c21f668f8b.tar.gz
puppet-nodo-2c24dcb640d090d1fd832f8f4ef4a8c21f668f8b.tar.bz2
Defining monitor class at nodo::host only if not previously declared
Diffstat (limited to 'manifests/host.pp')
-rw-r--r--manifests/host.pp8
1 files changed, 5 insertions, 3 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index cae28ce..b9c2a6b 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -18,9 +18,11 @@ class nodo::host inherits nodo {
include vserver::host
# Monitoring
- class { 'monitor':
- type => 'host',
- use_nagios => extlookup('host_use_nagios', 'true'),
+ if !defined('monitor') {
+ class { 'monitor':
+ type => 'host',
+ use_nagios => extlookup('host_use_nagios', 'true'),
+ }
}
# Time configuration