From 74b9335758204ab8721ac3e5dacd39c3f514a794 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 28 Aug 2011 14:13:59 +0000 Subject: 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 ) --- modules/buildsystem/manifests/init.pp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/buildsystem/manifests') 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)/' -- cgit v1.2.1