aboutsummaryrefslogtreecommitdiff
path: root/manifests/base/physical.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/base/physical.pp')
-rw-r--r--manifests/base/physical.pp24
1 files changed, 9 insertions, 15 deletions
diff --git a/manifests/base/physical.pp b/manifests/base/physical.pp
index 2f63094..035f5c7 100644
--- a/manifests/base/physical.pp
+++ b/manifests/base/physical.pp
@@ -1,23 +1,17 @@
class nodo::base::physical inherits nodo::base::host {
- $smartmontools = lookup('nodo::smartmontools', undef, undef, true)
+ include nodo::subsystem::sensors
- if $smartmontools == true {
- class { 'smartmontools': }
- }
+ # Downtime monitoring
+ #
+ # Check https://tracker.debian.org/pkg/downtimed
+ # https://packages.debian.org/bookworm/downtimed
+ # https://dist.epipe.com/downtimed/
- package { [ 'lm-sensors', ]:
- ensure => present,
- }
+ $downtimed = lookup('nodo::downtimed', undef, undef, 'absent')
- # Deprecated
package { [
- 'hddtemp',
+ 'downtimed',
]:
- ensure => $::lsbdistcodename ? {
- 'wheezy' => present,
- 'buster' => present,
- 'bullseye' => present,
- default => absent,
- }
+ ensure => $downtimed,
}
}