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:
parent
231c892da6
commit
eeaba1202a
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user