Page MenuHomeSoftware Heritage

No OneTemporary

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',
+ }
}

File Metadata

Mime Type
text/x-diff
Expires
Jul 4 2025, 8:46 AM (6 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3268493

Event Timeline