Merge "Fix mariadb sync"
This commit is contained in:
commit
9c60d28a1d
@ -11,11 +11,15 @@ define openstack_project::mariadb_mirror (
|
|||||||
releases => [ 'trusty', 'xenial' ],
|
releases => [ 'trusty', 'xenial' ],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# NOTE(ianw) we have several versions, but they all share the same
|
||||||
|
# mirror.ubuntu-mariadb volume. Start them at offset times, but
|
||||||
|
# also share the lock so that one doesn't release the volume when
|
||||||
|
# the other is half-complete.
|
||||||
cron { "reprepro ubuntu mariadb $name":
|
cron { "reprepro ubuntu mariadb $name":
|
||||||
user => $user,
|
user => $user,
|
||||||
hour => '*/2',
|
hour => '*/2',
|
||||||
minute => '0',
|
minute => fqdn_rand(30, $name),
|
||||||
command => "flock -n /var/run/reprepro/ubuntu-mariadb-$name.lock reprepro-mirror-update /etc/reprepro/ubuntu-mariadb-$name mirror.ubuntu-mariadb-$name >>/var/log/reprepro/ubuntu-mariadb-$name-mirror.log 2>&1",
|
command => "flock -w 3600 /var/run/reprepro/ubuntu-mariadb.lock reprepro-mirror-update /etc/reprepro/ubuntu-mariadb-$name mirror.ubuntu-mariadb >>/var/log/reprepro/ubuntu-mariadb-$name-mirror.log 2>&1",
|
||||||
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user