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
This commit is contained in:
Andrew Hutchings 2012-01-11 19:03:32 +00:00
parent 231c892da6
commit eeaba1202a

View File

@ -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',