Merge "Run track-upstream in a cronjob"
This commit is contained in:
commit
0f5b897ac4
@ -179,7 +179,7 @@ Manage Projects
|
|||||||
---------------
|
---------------
|
||||||
|
|
||||||
Some projects may have upstreams defined in Jeepyb; the
|
Some projects may have upstreams defined in Jeepyb; the
|
||||||
``manage-projects`` cron job will update these remotes so that their
|
``track-upstream`` cron job will update these remotes so that their
|
||||||
commits are available in Gerrit. It will also ensure that project metadata
|
commits are available in Gerrit. It will also ensure that project metadata
|
||||||
is set up as defined in projects.yaml.
|
is set up as defined in projects.yaml.
|
||||||
|
|
||||||
|
@ -468,6 +468,16 @@ class openstack_project::gerrit (
|
|||||||
Class['jeepyb'],
|
Class['jeepyb'],
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
cron { 'track_upstream':
|
||||||
|
user => 'root',
|
||||||
|
hour => '*',
|
||||||
|
command => '/usr/local/bin/track-upstream -v -l /var/log/track_upstream.log',
|
||||||
|
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||||
|
require => [
|
||||||
|
File['/home/gerrit2/projects.yaml'],
|
||||||
|
Class['jeepyb'],
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
include logrotate
|
include logrotate
|
||||||
logrotate::file { 'manage_projects.log':
|
logrotate::file { 'manage_projects.log':
|
||||||
|
Loading…
Reference in New Issue
Block a user