From 4cd99a3ed806b6bc8904a2029197b1f68dbd3d3a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 7 Jun 2010 21:52:48 -0300 Subject: Introducing $use_nagios --- manifests/personal.pp | 8 +++++++- manifests/physical.pp | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/manifests/personal.pp b/manifests/personal.pp index 2871b20..0085549 100644 --- a/manifests/personal.pp +++ b/manifests/personal.pp @@ -1,5 +1,11 @@ # personal computer -class nodo::personal inherits nodo::physical { +class nodo::personal { + + case $use_nagios { + '': { $use_nagios = false } + } + + include nodo::physical include utils::personal include pam include xorg diff --git a/manifests/physical.pp b/manifests/physical.pp index 4b16d4e..38b2a13 100644 --- a/manifests/physical.pp +++ b/manifests/physical.pp @@ -9,7 +9,10 @@ class nodo::physical inherits nodo { include ups include utils::physical include smartmontools - include nagios::target + + if $use_nagios != false { + include nagios::target + } # Time configuration case $ntpdate { -- cgit v1.2.3