From eeaba1202a2be9bd2483dc6f92af051801db064a Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Wed, 11 Jan 2012 19:03:32 +0000 Subject: [PATCH] Adds expire_old_reviews.py to puppet Adds a cron job to puppet for expire_old_reviews.py and creates a directory for the logs Required for bug 907842 Change-Id: Ia07fd6dd90035d34a2008a99263274d2846d2c7a --- modules/gerrit/manifests/init.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/gerrit/manifests/init.pp b/modules/gerrit/manifests/init.pp index eadb3c4ae2..3caac10e08 100644 --- a/modules/gerrit/manifests/init.pp +++ b/modules/gerrit/manifests/init.pp @@ -54,6 +54,18 @@ $commentlinks = [ { name => 'changeid', command => 'sleep $((RANDOM\%60+90)) && cd /home/gerrit2/openstack-ci && python gerrit/close_pull_requests.py' } + cron { "expireoldreviews": + user => gerrit2, + hour => 6, + minute => 3, + command => 'cd /home/gerrit2/openstack-ci && python gerrit/expire_old_reviews.py' + } + + file { "/var/log/gerrit": + ensure => "directory", + owner => 'gerrit2' + } + file { '/home/gerrit2/github.config': owner => 'root', group => 'root',