diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-20 18:05:08 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-20 18:05:08 -0200 |
commit | 2c24dcb640d090d1fd832f8f4ef4a8c21f668f8b (patch) | |
tree | da92147a7f29ecb05cab34c6ea2e9928d65c68bb /manifests | |
parent | 2e39280326ec5258e47ccf809838fa96d6dc122e (diff) | |
download | puppet-nodo-2c24dcb640d090d1fd832f8f4ef4a8c21f668f8b.tar.gz puppet-nodo-2c24dcb640d090d1fd832f8f4ef4a8c21f668f8b.tar.bz2 |
Defining monitor class at nodo::host only if not previously declared
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/host.pp | 8 |
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 |