aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/personal.pp8
-rw-r--r--manifests/physical.pp5
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 {