OpenStack-CI Apt mirror for MariaDB
This patch adds a mirror for MariaDB packages. The releases mirrored is selective, only covering the currently supported Ubuntu and MariaDB versions for OpenStack-Ansible. Having this mirror available aids deployment projects which consume these packages by ensuring that all apt packages needed are available in mirror local to the nodepool cloud provider. Change-Id: Ic549bbbd4f5dafc6555174f3ef3bd713b9a727d4
This commit is contained in:
parent
54f410885a
commit
afa38f2a45
@ -0,0 +1,44 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: GnuPG v1
|
||||
|
||||
mQGiBEtohJARBACxvZpWSIMTp/e7BUzSW+WDL7Pl0JDg6v7ZJFGJk9qo+5JXIiis
|
||||
497Ul0FmVJ6EoyVzfpqe5FyUvqtLCkM6UP5adyvXTHi1KMiYacu2q5yRhDpMKbpM
|
||||
LkAg23Yyz1yK/d0TsAkerLJ6K1Bh8NIm44Op+qFrDxeYZDIR5Q8WaCdK8wCg/jc8
|
||||
p/4XaKq74ghUHEX+35qk63UD/0YEsgHrsRQZ42wKNeO8ZUJKqCVHXYJrCq7DhRhn
|
||||
U5aYnuK3op0JusPN5fdIGkKwJy24dWRoRfNIIg0WvM8qUNrC2NvhomnZNudsI0Jb
|
||||
XapRemrIwbvrZToD6ei1awdVqa5fT6XIxV4MSQEwn47qmUNSz/0TkUmB3VZ2EL/j
|
||||
zfHUA/91ZfAdWCmRemTLWRrzIYYJKyEInZ0qwZVrkyMY8+T7b2/6RGR0f2oV1dOx
|
||||
cjbd0+N3vKrUkjuzkcVu/oB8wq9UBfuSHwsxYqub4gvIh0/LW+CsWa955sQ/Hj9H
|
||||
48j3nUHaXqM9uJyMMgMlCdo3rLpnYCJH8w2kFfLHIDksMs1YtLQ9TWFyaWFEQiBQ
|
||||
YWNrYWdlIFNpZ25pbmcgS2V5IDxwYWNrYWdlLXNpZ25pbmcta2V5QG1hcmlhZGIu
|
||||
b3JnPohiBBMRAgAiBQJREUepAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAK
|
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CU+XTotYPb5ZEXQe2mD/rXMAAwUP/0f1DOJIfnMrh1o/3RKqDq8k
|
||||
7tlv2GEEv0VEnh8ty4dMb8Dos2M1Oc4Kv9QLB3DXcS4/L4JW5vF0QgSAzq1r5oBT
|
||||
1zaMcqDS6OUlHrWUi8aDNt5EPQuEGdP2/iTDeAq4r8eCYrHRC7egldyRZrmWNfcZ
|
||||
N6/G9K+JSjhWfSWWSBRIqb+UxcQNCp6i6tvVSxCfLK1R4P4kA/Z4Co2vywIfVfPh
|
||||
Hd5nIWNl1yl9O3r04GCNTjzwsv/dhUGDFIVsghgehZuL0Bb7hDuyvZ2ShALumZ5t
|
||||
7mU/SJ2hOk3klO+2bIJB0gquUkWn/4g1h2Tp9XVWrI1x6GUBxRYkwC4tWajzWeVC
|
||||
5hcDVAdqYN0H0HVj/CEgrEWlCVv1hJ0JYAsjX8Cj1QuZB1i34fjEkgybMjo3oCU5
|
||||
GCSiNmvtTeUpexyY/7iHAdyoZHFT+fQS84VMYKFT4tTYH+5jTa62yfPhn63TYPor
|
||||
rRyTqG8aJQLnczm0NN5R5mriYJQjr4Pj8PSSwWck/Gt8R5vb+C69+uXINB6OKqhG
|
||||
6xU0bqnCIxt3OhVS7v0SfHjn0+il/JOc/ev9wm6G5FxmEWOoYwibmaDzHfc9N1HM
|
||||
RzjTENI7fyJPNFj9IDkpwk4E3ylrkuVl2KEmYDJ9T9ny4UMnQ7Sb6w59UhxMIFtR
|
||||
TPNpQJWCWXfhWUAo4WfCiEkEGBECAAkFAktohLgCGwwACgkQy8sIKhu5Q9vThgCg
|
||||
7R7ImT+21phcbxVYBQZjiJVY/2YAnRKPeNKPNIviaUUV7kxMXt949GQX
|
||||
=zBws
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
@ -0,0 +1,15 @@
|
||||
Name: ubuntu-mariadb-10.0
|
||||
Method: http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu
|
||||
Components: main
|
||||
UDebComponents: main
|
||||
Architectures: amd64
|
||||
GetInRelease: no
|
||||
VerifyRelease: 1BB943DB
|
||||
|
||||
Name: ubuntu-mariadb-10.1
|
||||
Method: http://ftp.osuosl.org/pub/mariadb/repo/10.1/ubuntu
|
||||
Components: main
|
||||
UDebComponents: main
|
||||
Architectures: amd64
|
||||
GetInRelease: no
|
||||
VerifyRelease: 1BB943DB
|
@ -151,6 +151,17 @@ class openstack_project::mirror (
|
||||
]
|
||||
}
|
||||
|
||||
# Create the symlink to MariaDB.
|
||||
file { "${www_root}/mariadb":
|
||||
ensure => link,
|
||||
target => "${mirror_root}/mariadb",
|
||||
owner => root,
|
||||
group => root,
|
||||
require => [
|
||||
File["${www_root}"],
|
||||
]
|
||||
}
|
||||
|
||||
file { "${www_root}/robots.txt":
|
||||
ensure => present,
|
||||
owner => 'root',
|
||||
|
@ -314,4 +314,36 @@ class openstack_project::mirror_update (
|
||||
key_type => 'public',
|
||||
key_source => 'puppet:///modules/openstack_project/reprepro/ubuntu-cloud-archive-gpg-key.asc',
|
||||
}
|
||||
|
||||
### MariaDB mirror ###
|
||||
::openstack_project::reprepro { 'ubuntu-mariadb-reprepro-mirror':
|
||||
confdir => '/etc/reprepro/ubuntu-mariadb',
|
||||
basedir => '/afs/.openstack.org/mirror/ubuntu-mariadb',
|
||||
distributions => 'openstack_project/reprepro/distributions.ubuntu-mariadb.erb',
|
||||
updates_file => 'puppet:///modules/openstack_project/reprepro/ubuntu-mariadb-updates',
|
||||
releases => [ 'trusty', 'xenial' ],
|
||||
}
|
||||
|
||||
cron { 'reprepro ubuntu mariadb':
|
||||
user => $user,
|
||||
hour => '*/2',
|
||||
minute => '0',
|
||||
command => 'flock -n /var/run/reprepro/ubuntu-mariadb.lock reprepro-mirror-update /etc/reprepro/ubuntu-mariadb mirror.ubuntu-mariadb >>/var/log/reprepro/ubuntu-mariadb-mirror.log 2>&1',
|
||||
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
require => [
|
||||
File['/usr/local/bin/reprepro-mirror-update'],
|
||||
File['/etc/afsadmin.keytab'],
|
||||
File['/etc/reprepro.keytab'],
|
||||
::openstack_project::reprepro['ubuntu-mariadb-reprepro-mirror'],
|
||||
]
|
||||
}
|
||||
|
||||
gnupg_key { 'MariaDB Package Signing Key':
|
||||
ensure => present,
|
||||
# 1993 69E5 404B D5FC 7D2F E43B CBCB 082A 1BB9 43DB
|
||||
key_id => 'CBCB082A1BB943DB',
|
||||
user => 'root',
|
||||
key_type => 'public',
|
||||
key_source => 'puppet:///modules/openstack_project/reprepro/mariadb-mirror-gpg-key.asc',
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,12 @@
|
||||
<% @releases.each do |release| -%>
|
||||
Origin: MariaDB
|
||||
Codename: <%= release %>
|
||||
Description: OpenStack MariaDB <%= release.capitalize %> mirror
|
||||
Architectures: amd64
|
||||
Components: main
|
||||
UDebComponents: main
|
||||
Contents: .gz
|
||||
Update: ubuntu-mariadb
|
||||
Log: <%= @logdir %>/ubuntu-mariadb-<%= release %>.log
|
||||
|
||||
<% end -%>
|
Loading…
Reference in New Issue
Block a user