]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Minor improvements at nodo::subsystem::modprobe::module and nodo::subsystem::sensors
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 5 Jul 2024 15:37:43 +0000 (12:37 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 5 Jul 2024 15:37:43 +0000 (12:37 -0300)
manifests/subsystem/modprobe/module.pp
manifests/subsystem/sensors.pp

index 21ec4ed79263abd573326efb01ecc6084a9a6903..21b73983aa1f986659ab54cbdfb23eac2e92fb7d 100644 (file)
@@ -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',
 ){
index 9b50d9b70595473d54dc296bee111c08395b0a12..104a0f578c2a976ed3f102c0fb8277d0fac1c971 100644 (file)
@@ -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,