From: Silvio Rhatto Date: Fri, 5 Jul 2024 15:42:02 +0000 (-0300) Subject: Fix: nodo::subsystem::sensors: use 'present' instead of true X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=768f0c78b5d55b197f08509ef4580d98107f8bf7;p=puppet-nodo.git Fix: nodo::subsystem::sensors: use 'present' instead of true --- diff --git a/manifests/subsystem/sensors.pp b/manifests/subsystem/sensors.pp index 104a0f5..473def3 100644 --- a/manifests/subsystem/sensors.pp +++ b/manifests/subsystem/sensors.pp @@ -3,9 +3,9 @@ class nodo::subsystem::sensors { # SMART monitoring # - $smartmontools = lookup('nodo::sensors::smartmontools', undef, undef, true) + $smartmontools = lookup('nodo::sensors::smartmontools', undef, undef, 'present') - if $smartmontools == true { + if $smartmontools == 'present' { class { 'smartmontools': } } @@ -13,7 +13,7 @@ class nodo::subsystem::sensors { # LM Sensors # - $lm_sensors = lookup('nodo::sensors::lm_sensors', undef, undef, true) + $lm_sensors = lookup('nodo::sensors::lm_sensors', undef, undef, 'present') package { [ 'lm-sensors', @@ -46,7 +46,7 @@ class nodo::subsystem::sensors { # https://wiki.archlinux.org/title/Lm_sensors#S.M.A.R.T._drive_temperature # https://github.com/philipl/drivetemp - $drivetemp = lookup('nodo::sensors::drivetemp', undef, undef, true) + $drivetemp = lookup('nodo::sensors::drivetemp', undef, undef, 'present') nodo::subsystem::modprobe::module { 'drivetemp': ensure => $drivetemp,