system-config/modules/gerrit/manifests/remotes.pp
Monty Taylor 52db16762b Consume jeepyb.
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
2012-11-30 18:02:30 +00:00

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,
}
}