
The first attempt incorrectly trying to mirror both upstream repos into 1 repo in AFS. Now we have 2 separate mirrors as upstream does. Change-Id: Ife7722aa2f47c6ae4ebfd2db24a15453e987caf1 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
22 lines
973 B
Puppet
22 lines
973 B
Puppet
# == Define: openstack_project::mariadb_mirror
|
|
#
|
|
define openstack_project::mariadb_mirror (
|
|
) {
|
|
### MariaDB mirror ###
|
|
::openstack_project::reprepro { "ubuntu-mariadb-$name-reprepro-mirror":
|
|
confdir => "/etc/reprepro/ubuntu-mariadb-$name",
|
|
basedir => "/afs/.openstack.org/mirror/ubuntu-mariadb-$name",
|
|
distributions => 'openstack_project/reprepro/distributions.ubuntu-mariadb.erb',
|
|
updates_file => "puppet:///modules/openstack_project/reprepro/ubuntu-mariadb-$name-updates",
|
|
releases => [ 'trusty', 'xenial' ],
|
|
}
|
|
|
|
cron { "reprepro ubuntu mariadb $name":
|
|
user => $user,
|
|
hour => '*/2',
|
|
minute => '0',
|
|
command => "flock -n /var/run/reprepro/ubuntu-mariadb-$name.lock reprepro-mirror-update /etc/reprepro/ubuntu-mariadab-$name mirror.ubuntu-mariadb-$name >>/var/log/reprepro/ubuntu-mariadb-$name-mirror.log 2>&1",
|
|
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
|
}
|
|
}
|