From 8c336e3cfa521073fc1746cc03e2f243b74fbe64 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 12 Mar 2016 13:47:58 -0300 Subject: Make smartmontools optional --- manifests/base/physical.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/manifests/base/physical.pp b/manifests/base/physical.pp index a00dd18..6deee3c 100644 --- a/manifests/base/physical.pp +++ b/manifests/base/physical.pp @@ -1,5 +1,10 @@ class nodo::base::physical inherits nodo::base::host { - class { [ 'nodo::subsystem::ups', 'smartmontools' ]: } + class { 'nodo::subsystem::ups' } + + $smartmontools = hiera('nodo::smartmontools', true) + if $smartmontools == true { + class { 'smartmontools': } + } package { 'lm-sensors': ensure => present, -- cgit v1.2.3