aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
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,