From 12cc12be775345b25f671b370b7b1468bb560b63 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 5 Jul 2024 12:37:43 -0300 Subject: Minor improvements at nodo::subsystem::modprobe::module and nodo::subsystem::sensors --- manifests/subsystem/modprobe/module.pp | 3 +++ manifests/subsystem/sensors.pp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3