From cb13190197e18e8844302955d78a8ea4505fb1f5 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Tue, 22 Oct 2024 10:30:59 +0200 Subject: [PATCH] enable sysstat timer on debian --- manifests/common.pp | 6 ++++++ 1 file changed, 6 insertions(+) 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', + } + } }