From: Silvio Rhatto Date: Sun, 20 Jan 2013 20:05:08 +0000 (-0200) Subject: Defining monitor class at nodo::host only if not previously declared X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=2c24dcb640d090d1fd832f8f4ef4a8c21f668f8b;p=puppet-nodo.git Defining monitor class at nodo::host only if not previously declared --- 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