Merge "Add ceph octopus mirrors"

This commit is contained in:
Zuul 2020-09-10 22:32:05 +00:00 committed by Gerrit Code Review
commit 8c599a5bd0
4 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,7 @@
Name: debian-ceph-octopus
Method: http://download.ceph.com/debian-octopus/
Components: main
UDebComponents: main
Architectures: amd64
GetInRelease: no
VerifyRelease: 460f3994

View File

@ -319,6 +319,28 @@ class openstack_project::mirror_update (
]
}
::openstack_project::reprepro { 'debian-ceph-octopus-reprepro-mirror':
confdir => '/etc/reprepro/debian-ceph-octopus',
basedir => '/afs/.openstack.org/mirror/ceph-deb-octopus',
distributions => 'openstack_project/reprepro/distributions.debian-ceph-octopus.erb',
updates_file => 'puppet:///modules/openstack_project/reprepro/debian-ceph-octopus-updates',
releases => ['buster'],
}
cron { 'reprepro debian ceph octopus':
user => 'root',
hour => '*/2',
minute => fqdn_rand(45, 'debian-ceph-octopus'),
command => 'flock -n /var/run/reprepro/debian-ceph-octopus.lock reprepro-mirror-update /etc/reprepro/debian-ceph-octopus mirror.deb-octopus >>/var/log/reprepro/debian-ceph-octopus-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['debian-ceph-octopus-reprepro-mirror'],
]
}
gnupg_key { 'Ceph Archive':
ensure => present,
# 08B7 3419 AC32 B4E9 66C1 A330 E84A C2C0 460F 3994

View File

@ -0,0 +1,11 @@
<% @releases.each do |release| -%>
Origin: Ceph Octopus
Codename: <%= release %>
Description: OpenStack Debian Ceph Octopus <%= release.capitalize %> mirror
Architectures: amd64
Components: main
Contents: .gz
Update: debian-ceph-octopus
Log: <%= @logdir %>/debian-ceph-octopus-<%= release %>.log
<% end -%>

View File

@ -84,6 +84,7 @@
- ceph-deb-luminous
- ceph-deb-mimic
- ceph-deb-nautilus
- ceph-deb-octopus
- deb-docker
- debian
- debian-security