From 2c24dcb640d090d1fd832f8f4ef4a8c21f668f8b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 20 Jan 2013 18:05:08 -0200 Subject: Defining monitor class at nodo::host only if not previously declared --- manifests/host.pp | 8 +++++--- 1 file 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 -- cgit v1.2.3