diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/buildsystem/manifests/scheduler.pp | 9 | ||||
-rw-r--r-- | modules/buildsystem/manifests/var/scheduler.pp | 1 |
2 files changed, 10 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' ], } } } diff --git a/modules/buildsystem/manifests/var/scheduler.pp b/modules/buildsystem/manifests/var/scheduler.pp index 4212021f..fa9c3cfc 100644 --- a/modules/buildsystem/manifests/var/scheduler.pp +++ b/modules/buildsystem/manifests/var/scheduler.pp @@ -21,6 +21,7 @@ class buildsystem::var::scheduler( $build_nodes_aliases = {}, $build_src_node, $clean_uploads_logs_age = '2w' + $clean_uploads_packages_age = '1w' ){ $login = 'schedbot' $homedir = "/var/lib/${login}" |