]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Fix: nodo::subsystem::sensors: use 'present' instead of true
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 5 Jul 2024 15:42:02 +0000 (12:42 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 5 Jul 2024 15:42:02 +0000 (12:42 -0300)
manifests/subsystem/sensors.pp

index 104a0f578c2a976ed3f102c0fb8277d0fac1c971..473def392a69a15fdd0e73d8124eed9c2bcda5f3 100644 (file)
@@ -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,