aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-05 12:42:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-05 12:42:02 -0300
commit768f0c78b5d55b197f08509ef4580d98107f8bf7 (patch)
treec86891c77548faf29487f62b2c4a684cdc5c3a59 /manifests
parent12cc12be775345b25f671b370b7b1468bb560b63 (diff)
downloadpuppet-nodo-768f0c78b5d55b197f08509ef4580d98107f8bf7.tar.gz
puppet-nodo-768f0c78b5d55b197f08509ef4580d98107f8bf7.tar.bz2
Fix: nodo::subsystem::sensors: use 'present' instead of true
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystem/sensors.pp8
1 files changed, 4 insertions, 4 deletions
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,