diff options
author | Michael Scherer <misc@mageia.org> | 2011-08-28 14:13:59 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-08-28 14:13:59 +0000 |
commit | 74b9335758204ab8721ac3e5dacd39c3f514a794 (patch) | |
tree | 9f17898e0a08f6afddc05d1af3f4fd3cfbe60bd1 | |
parent | 4fa56d51e3aa92a96dca28103bf93f0fb1a701d3 (diff) | |
download | puppet-74b9335758204ab8721ac3e5dacd39c3f514a794.tar puppet-74b9335758204ab8721ac3e5dacd39c3f514a794.tar.gz puppet-74b9335758204ab8721ac3e5dacd39c3f514a794.tar.bz2 puppet-74b9335758204ab8721ac3e5dacd39c3f514a794.tar.xz puppet-74b9335758204ab8721ac3e5dacd39c3f514a794.zip |
clean old build log after 2 months. The tidy job will likely
take several pass to remove everything ( given that jonund is already
using 250g of logs )
-rw-r--r-- | modules/buildsystem/manifests/init.pp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp index 1d55040e..7a4d2250 100644 --- a/modules/buildsystem/manifests/init.pp +++ b/modules/buildsystem/manifests/init.pp @@ -493,6 +493,15 @@ class buildsystem { ssh::auth::client { $build_login: } ssh::auth::server { $sched_login: user => $build_login } + $tidy_age = "2m" + # remove old build directory + tidy { "$build_home_dir/iurt/": + age => $tidy_age, + recurse => 1, + matches => ["[0-9][0-9].*\..*\..*\.[0-9]*","log","*.rpm","*.log","*.mga[0-9]+"] + rmdirs => 1, + } + # build node common settings # we could have the following skip list to use less space: # '/(drakx-installer-binaries|drakx-installer-advertising|gfxboot|drakx-installer-stage2|mandriva-theme)/' |