diff --git a/manifests/common.pp b/manifests/common.pp index d3acb7f..ad1ec9f 100644 --- a/manifests/common.pp +++ b/manifests/common.pp @@ -45,4 +45,10 @@ class sunetdrive::common { require => Package['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', + } + } }