diff --git a/site-modules/profile/manifests/swh/deploy/worker.pp b/site-modules/profile/manifests/swh/deploy/worker.pp index 2c106ea8..4ed127cd 100644 --- a/site-modules/profile/manifests/swh/deploy/worker.pp +++ b/site-modules/profile/manifests/swh/deploy/worker.pp @@ -1,9 +1,16 @@ # Worker deployment class profile::swh::deploy::worker { $instances = lookup('swh::deploy::worker::instances') each($instances) |$instance| { $classname = "::profile::swh::deploy::worker::${instance}" include $classname } + + profile::cron::d {'cleanup-workers-tmp': + command => 'find /tmp -depth -mindepth 3 -maxdepth 3 -type d -ctime +2 -exec rm -rf {} \+', + target => 'swh-worker', + minute => 'fqdn_rand', + hour => 'fqdn_rand/2', + } }