]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Feat: nodo::base::physical: allow managing the downtimed daemon
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 5 Jul 2024 05:06:24 +0000 (02:06 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 5 Jul 2024 05:06:24 +0000 (02:06 -0300)
manifests/base/physical.pp

index 2f6309454d186912601f73799aa53330f6ea7b7a..1c573885647c41c5ff6d6189fb897745f5720892 100644 (file)
@@ -5,10 +5,25 @@ class nodo::base::physical inherits nodo::base::host {
     class { 'smartmontools': }
   }
 
-  package { [ 'lm-sensors', ]:
+  package { [
+    'lm-sensors',
+  ]:
     ensure => present,
   }
 
+  $downtimed = lookup('nodo::downtimed', undef, undef, 'absent')
+
+  # Useful to track downtimes
+  #
+  # Check https://tracker.debian.org/pkg/downtimed
+  #       https://packages.debian.org/bookworm/downtimed
+  #       https://dist.epipe.com/downtimed/
+  package { [
+    'downtimed',
+  ]:
+    ensure => $downtimed,
+  }
+
   # Deprecated
   package { [
     'hddtemp',