7e7956bd66
Changes that are needed to make reprepro function properly. Change-Id: I344f529e8edf7a9f272774db8dd42330919c4e65 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
22 lines
972 B
Puppet
22 lines
972 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-mariadb-$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',
|
|
}
|
|
}
|