From 768f0c78b5d55b197f08509ef4580d98107f8bf7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 5 Jul 2024 12:42:02 -0300 Subject: Fix: nodo::subsystem::sensors: use 'present' instead of true --- manifests/subsystem/sensors.pp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'manifests/subsystem/sensors.pp') 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, -- cgit v1.2.3