69cdb6a449
jeepyb gets a new upstream tracking syntax in https://review.openstack.org/#/c/35535/ Switch to use it. The new syntax will operate via git push, so that changes to upstream can trigger zuul events. Change-Id: Ideca999aca0e8583cce9a1227089243216175158
22 lines
532 B
Puppet
22 lines
532 B
Puppet
# == Class: gerrit::remotes
|
|
#
|
|
class gerrit::remotes($ensure=present) {
|
|
cron { 'gerritfetchremotes':
|
|
ensure => $ensure,
|
|
user => 'gerrit2',
|
|
minute => '*/30',
|
|
command => 'sleep $((RANDOM\%60+90)) && /usr/local/bin/manage-projects',
|
|
require => [Class['jeepyb'], File['/var/lib/jeepyb']],
|
|
}
|
|
|
|
file { '/var/lib/jeepyb':
|
|
ensure => directory,
|
|
owner => 'gerrit2',
|
|
require => User['gerrit2'],
|
|
}
|
|
|
|
file { '/home/gerrit2/remotes.config':
|
|
ensure => absent,
|
|
}
|
|
}
|