From eb9146714560161a06f8b241c16d7254a4fa1299 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 6 Jun 2011 21:24:12 +0000 Subject: add script and cron to clean live build data --- modules/draklive/manifests/init.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/draklive/manifests/init.pp') diff --git a/modules/draklive/manifests/init.pp b/modules/draklive/manifests/init.pp index 3ba24d87..0f643bb4 100644 --- a/modules/draklive/manifests/init.pp +++ b/modules/draklive/manifests/init.pp @@ -45,5 +45,19 @@ class draklive { hour => "4", minute => "30", } + + file { "/usr/local/bin/clean-live.sh": + ensure => present, + owner => root, + group => root, + mode => 755, + source => "puppet:///modules/draklive/clean-live.sh", + } + + cron { "clean live build data": + command => "/usr/local/bin/clean-live.sh", + hour => "4", + minute => "20", + } } } -- cgit v1.2.1