From: Silvio Rhatto Date: Sat, 12 Mar 2016 16:47:58 +0000 (-0300) Subject: Make smartmontools optional X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8c336e3cfa521073fc1746cc03e2f243b74fbe64;p=puppet-nodo.git Make smartmontools optional --- 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,