aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystem')
-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,