enable sysstat timer on debian

This commit is contained in:
Micke Nordin 2024-10-22 10:30:59 +02:00
parent 671b5f95df
commit cb13190197
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -45,4 +45,10 @@ class sunetdrive::common {
require => Package['sysstat'], require => Package['sysstat'],
notify => Service['sysstat'], notify => Service['sysstat'],
} }
if $::facts['os']['distro']['id'] == 'Debian' {
exec { 'sysstat_systemd_timer':
command => 'systemctl enable --now sysstat-collect.timer',
unless => 'systemctl is-enabled --quiet sysstat-collect.timer',
}
}
} }