aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/scheduler.pp
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-23 15:07:48 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-23 15:07:48 +0000
commit69c91df174a8cbd4e9ce9fac080ee532ea07e871 (patch)
treeba5801ea2567b6cbc0988e23aad1553e55d7e9f2 /modules/buildsystem/manifests/scheduler.pp
parent3b222ebb00f84751c3f7db67f747d32cdd22c004 (diff)
downloadpuppet-69c91df174a8cbd4e9ce9fac080ee532ea07e871.tar
puppet-69c91df174a8cbd4e9ce9fac080ee532ea07e871.tar.gz
puppet-69c91df174a8cbd4e9ce9fac080ee532ea07e871.tar.bz2
puppet-69c91df174a8cbd4e9ce9fac080ee532ea07e871.tar.xz
puppet-69c91df174a8cbd4e9ce9fac080ee532ea07e871.zip
buildsystem: move uploads dir tidy to scheduler.pp
Move tidying of uploads directory from mgarepo.pp to scheduler.pp as it is related to scheduler and not mgarepo.
Diffstat (limited to 'modules/buildsystem/manifests/scheduler.pp')
-rw-r--r--modules/buildsystem/manifests/scheduler.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/scheduler.pp b/modules/buildsystem/manifests/scheduler.pp
index ed33c92e..fffe7b63 100644
--- a/modules/buildsystem/manifests/scheduler.pp
+++ b/modules/buildsystem/manifests/scheduler.pp
@@ -24,4 +24,10 @@ class buildsystem::scheduler {
command => "ULRI_LOG_FILE=$logdir/ulri.log ulri; EMI_LOG_FILE=$logdir/emi.log emi",
minute => '*',
}
+
+ tidy { "${buildsystem::var::scheduler::homedir}/uploads":
+ type => 'ctime',
+ recurse => true,
+ age => '2w',
+ }
}