diff --git a/site-modules/profile/manifests/swh/deploy/scheduler.pp b/site-modules/profile/manifests/swh/deploy/scheduler.pp --- a/site-modules/profile/manifests/swh/deploy/scheduler.pp +++ b/site-modules/profile/manifests/swh/deploy/scheduler.pp @@ -122,4 +122,12 @@ ], } + # Update metrics cron every hours (takes ~13min) + profile::cron::d {'scheduler_update_metrics': + user => $user, + command => "/usr/bin/swh scheduler --config-file ${config_file} origin update-metrics", + minute => 'fqdn_rand', + require => Package[$packages], + } + }