diff options
Diffstat (limited to 'modules/buildsystem/manifests/scheduler.pp')
-rw-r--r-- | modules/buildsystem/manifests/scheduler.pp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/scheduler.pp b/modules/buildsystem/manifests/scheduler.pp index 000bf0e7..141de6ce 100644 --- a/modules/buildsystem/manifests/scheduler.pp +++ b/modules/buildsystem/manifests/scheduler.pp @@ -29,6 +29,15 @@ class buildsystem::scheduler { type => 'ctime', recurse => true, age => $buildsystem::var::scheduler::clean_uploads_logs_age, + rmdirs => true, + } + } + if ($buildsystem::var::scheduler::clean_uploads_packages_age != '0') { + tidy { "${buildsystem::var::scheduler::homedir}/uploads": + type => 'ctime', + recurse => true, + age => $buildsystem::var::scheduler::clean_uploads_packages_age, + matches => [ '*.rpm' ], } } } |