aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-05 12:37:43 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-05 12:37:43 -0300
commit12cc12be775345b25f671b370b7b1468bb560b63 (patch)
treecc1e4a6abe1b4d5ddcadbdae49229aca2ab4f042
parent7232b4e627e412aa089725528ab9d78f88256cb2 (diff)
downloadpuppet-nodo-12cc12be775345b25f671b370b7b1468bb560b63.tar.gz
puppet-nodo-12cc12be775345b25f671b370b7b1468bb560b63.tar.bz2
Minor improvements at nodo::subsystem::modprobe::module and nodo::subsystem::sensors
-rw-r--r--manifests/subsystem/modprobe/module.pp3
-rw-r--r--manifests/subsystem/sensors.pp2
2 files changed, 4 insertions, 1 deletions
diff --git a/manifests/subsystem/modprobe/module.pp b/manifests/subsystem/modprobe/module.pp
index 21ec4ed..21b7398 100644
--- a/manifests/subsystem/modprobe/module.pp
+++ b/manifests/subsystem/modprobe/module.pp
@@ -14,6 +14,9 @@
#
# Check also https://wiki.archlinux.org/title/Kernel_module#Automatic_module_loading
# https://unix.stackexchange.com/questions/189670/whats-the-difference-of-etc-modules-load-d-and-etc-modules
+#
+# In the future, this definition can also manage /etc/modprobe.d/ entries.
+#
define nodo::subsystem::modprobe::module(
$ensure = 'present',
){
diff --git a/manifests/subsystem/sensors.pp b/manifests/subsystem/sensors.pp
index 9b50d9b..104a0f5 100644
--- a/manifests/subsystem/sensors.pp
+++ b/manifests/subsystem/sensors.pp
@@ -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, 'present')
+ $drivetemp = lookup('nodo::sensors::drivetemp', undef, undef, true)
nodo::subsystem::modprobe::module { 'drivetemp':
ensure => $drivetemp,