aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-05 12:57:18 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-05 12:57:18 -0300
commitcae876174a608f38565f40e2339bb1013616fa7c (patch)
treecdacfdfa4f09fe06825166add153c7ffab248158
parent768f0c78b5d55b197f08509ef4580d98107f8bf7 (diff)
downloadpuppet-nodo-cae876174a608f38565f40e2339bb1013616fa7c.tar.gz
puppet-nodo-cae876174a608f38565f40e2339bb1013616fa7c.tar.bz2
Fix: nodo::subsystem::sensors: move hddtemp portion to the bottomHEADmaster
-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,
- }
}