Adds tmpreaper to jenkins slave crontab.

Schedules tmpreaper to run daily at 1am, and delete files older than 1 days from /tmp.
Fixes bug 925774

Change-Id: Iff9383d020fa3ea0cbbe85d4ea0e5fe27ba6901e
This commit is contained in:
Devananda van der Veen 2012-03-16 16:14:51 -07:00
parent 0993cd74ce
commit 5405cc4f4d

View File

@ -65,6 +65,7 @@ class jenkins_slave {
"socat",
"sqlite3",
"swig",
"tmpreaper",
"unzip",
"vlan",
"wget"]
@ -103,4 +104,12 @@ class jenkins_slave {
],
}
cron { "tmpreaper":
user => jenkins,
minute => '0',
hour => '1',
command => '/usr/sbin/tmpreaper --runtime 1200 --delay 600 1d /tmp',
require => [ Package[tmpreaper], Jenkinsuser[jenkins] ],
}
}