52db16762b
Instead of keeping many of these files directly in the tree, use them from the out-of-tree jeepyb project, which makes them easier to consume for other people who are not us. Change-Id: Id704f2e17dd80709ef63cbbf2c5475a08a835f91 Reviewed-on: https://review.openstack.org/16777 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
16 lines
376 B
Puppet
16 lines
376 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/fetch-remotes',
|
|
require => Class['jeepyb'],
|
|
}
|
|
|
|
file { '/home/gerrit2/remotes.config':
|
|
ensure => absent,
|
|
}
|
|
}
|