aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/subsystem/sensors.pp30
1 files changed, 16 insertions, 14 deletions
diff --git a/manifests/subsystem/sensors.pp b/manifests/subsystem/sensors.pp
index 473def3..8a19831 100644
--- a/manifests/subsystem/sensors.pp
+++ b/manifests/subsystem/sensors.pp
@@ -22,6 +22,22 @@ class nodo::subsystem::sensors {
}
#
+ # drivetemp
+ #
+ # Just load this driver and lm-sensors will detect sensors automatically.
+ #
+ # https://www.baeldung.com/linux/hdd-ssd-temperature
+ # https://askubuntu.com/questions/1426482/tool-to-monitor-hdd-temperature-in-ubuntu-server-22-04
+ # 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, 'present')
+
+ nodo::subsystem::modprobe::module { 'drivetemp':
+ ensure => $drivetemp,
+ }
+
+ #
# hddtemp
#
@@ -37,18 +53,4 @@ class nodo::subsystem::sensors {
default => absent,
}
}
-
- #
- # drivetemp
- #
- # https://www.baeldung.com/linux/hdd-ssd-temperature
- # https://askubuntu.com/questions/1426482/tool-to-monitor-hdd-temperature-in-ubuntu-server-22-04
- # 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, 'present')
-
- nodo::subsystem::modprobe::module { 'drivetemp':
- ensure => $drivetemp,
- }
}