Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9338405
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
770 B
Subscribers
None
View Options
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
Details
Attached
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
Attached To
rSPSITE puppet-swh-site
Event Timeline
Log In to Comment