dbf0221db6
Change-Id: I5a52c0fd0f5a35c32aa71c0f93500aa59e495066 Reviewed-on: https://review.openstack.org/14910 Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
17 lines
425 B
Puppet
17 lines
425 B
Puppet
# == Class: gerrit::remotes
|
|
#
|
|
class gerrit::remotes($ensure=present) {
|
|
cron { 'gerritfetchremotes':
|
|
ensure => $ensure,
|
|
user => 'gerrit2',
|
|
minute => '*/30',
|
|
command => 'sleep $((RANDOM\%60+90)) && python \
|
|
/usr/local/gerrit/scripts/fetch_remotes.py',
|
|
require => File['/usr/local/gerrit/scripts'],
|
|
}
|
|
|
|
file { '/home/gerrit2/remotes.config':
|
|
ensure => absent,
|
|
}
|
|
}
|