Bug 603238 - Add a cleanup class to the buildslave module - r=dustin
authorChris Cooper <ccooper@deadsquid.com>
Mon, 17 Jan 2011 10:48:58 -0500
changeset 262 66953af6585d
parent 261 ace8476f11bc
child 263 b17d294d963a
push id211
push usercoop@mozilla.com
push dateMon, 17 Jan 2011 15:49:15 +0000
reviewersdustin
bugs603238
Bug 603238 - Add a cleanup class to the buildslave module - r=dustin
modules/buildslave/manifests/cleanup.pp
os/centos.pp
os/osx.pp
os/talos_fedora.pp
os/talos_osx.pp
new file mode 100644
--- /dev/null
+++ b/modules/buildslave/manifests/cleanup.pp
@@ -0,0 +1,21 @@
+class buildslave::cleanup {
+ 
+    tidy { "/tmp/":
+        age => "1d",
+        recurse => true
+    }
+
+    case $operatingsystem {
+        CentOS,Fedora: {
+            tidy { "/home/cltbld/.mozilla/firefox/console.log":
+                age => 0
+            }
+        }
+        Darwin: {
+            tidy { "/Users/cltbld/Library/Application Support/Firefox/console.log":
+                age => 0
+            }
+        }
+    }
+}
+
--- a/os/centos.pp
+++ b/os/centos.pp
@@ -310,9 +310,10 @@ class centos5 {
             ensure => 'stopped'
         }
         service { 'restorecond':
             enable => 'false',
             ensure => 'stopped'
         }
 
    include buildslave::startup
+   include buildslave::cleanup
 }
--- a/os/osx.pp
+++ b/os/osx.pp
@@ -309,9 +309,10 @@ class osx {
                 "com.apple.blued":
                     ensure => "stopped",
                     enable => false;
             }
         }
     }
 
     include buildslave::startup
+    include buildslave::cleanup
 }
--- a/os/talos_fedora.pp
+++ b/os/talos_fedora.pp
@@ -67,9 +67,10 @@ class talos_fedora {
     # this really applies to all fedora hosts, but since those are all talos, too,
     # it's here for the moment.
     service { 'avahi-daemon':
         enable => 'false',
         ensure => 'stopped'
     }
 
     include buildslave::startup
+    include buildslave::cleanup
 }
--- a/os/talos_osx.pp
+++ b/os/talos_osx.pp
@@ -143,9 +143,10 @@ class talos_osx {
                 "com.apple.blued":
                     ensure => "stopped",
                     enable => false;
             }
         }
     }
 
     include buildslave::startup
+    include buildslave::cleanup
 }