diff options
-rw-r--r-- | manifests/base/physical.pp | 7 |
1 files changed, 6 insertions, 1 deletions
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, |