Run 'reprepro ubuntu' cron once ever 2 hours

Otherwise, we are running it every 1 min(for the hour) each 2 hours.

Change-Id: I132825920c1807b3e8d97c16a93e9e9cf09bd971
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-04-01 15:19:23 -04:00
parent 17cbda7375
commit 9aaed7e0d0

View File

@ -106,6 +106,7 @@ class openstack_project::mirror_update (
cron { 'reprepro ubuntu':
user => $user,
hour => '*/2',
minute => '0',
command => 'flock -n /var/run/reprepro/ubuntu.lock reprepro-mirror-update /etc/reprepro/ubuntu mirror.ubuntu >>/var/log/reprepro/ubuntu-mirror.log 2>&1',
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
require => [