diff --git a/modules/openstack_project/files/reprepro/ubuntu-mariadb-10.0-updates b/modules/openstack_project/files/reprepro/ubuntu-mariadb-10.0-updates deleted file mode 100644 index 77b4f4f5eb..0000000000 --- a/modules/openstack_project/files/reprepro/ubuntu-mariadb-10.0-updates +++ /dev/null @@ -1,15 +0,0 @@ -Name: ubuntu-mariadb-trusty -Method: http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu -Components: main -UDebComponents: -Architectures: amd64 -GetInRelease: no -VerifyRelease: 1BB943DB - -Name: ubuntu-mariadb-xenial -Method: http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu -Components: main -UDebComponents: -Architectures: amd64 -GetInRelease: no -VerifyRelease: F1656F24C74CD1D8 diff --git a/modules/openstack_project/files/reprepro/ubuntu-mariadb-10.1-updates b/modules/openstack_project/files/reprepro/ubuntu-mariadb-10.1-updates deleted file mode 100644 index 68e78c40b8..0000000000 --- a/modules/openstack_project/files/reprepro/ubuntu-mariadb-10.1-updates +++ /dev/null @@ -1,15 +0,0 @@ -Name: ubuntu-mariadb-trusty -Method: http://ftp.osuosl.org/pub/mariadb/repo/10.1/ubuntu -Components: main -UDebComponents: -Architectures: amd64 -GetInRelease: no -VerifyRelease: 1BB943DB - -Name: ubuntu-mariadb-xenial -Method: http://ftp.osuosl.org/pub/mariadb/repo/10.1/ubuntu -Components: main -UDebComponents: -Architectures: amd64 -GetInRelease: no -VerifyRelease: F1656F24C74CD1D8 diff --git a/modules/openstack_project/manifests/mariadb_mirror.pp b/modules/openstack_project/manifests/mariadb_mirror.pp deleted file mode 100644 index 2f1b18ac03..0000000000 --- a/modules/openstack_project/manifests/mariadb_mirror.pp +++ /dev/null @@ -1,25 +0,0 @@ -# == 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' ], - } - - # 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": - user => $user, - hour => '*/2', - minute => fqdn_rand(30, $name), - 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', - } -} diff --git a/modules/openstack_project/manifests/mirror.pp b/modules/openstack_project/manifests/mirror.pp index 2e17db4628..ea96c24e07 100644 --- a/modules/openstack_project/manifests/mirror.pp +++ b/modules/openstack_project/manifests/mirror.pp @@ -224,17 +224,6 @@ class openstack_project::mirror ( ] } - # Create the symlink to Ubuntu MariaDB. - file { "${www_root}/ubuntu-mariadb": - ensure => link, - target => "${mirror_root}/ubuntu-mariadb", - owner => root, - group => root, - require => [ - File["${www_root}"], - ] - } - # Create the symlink to deb-docker. file { "${www_root}/deb-docker": ensure => link, @@ -257,11 +246,6 @@ class openstack_project::mirror ( ] } - # TODO(pabelanger): We can remove this after puppet runs a few times. - file { "${www_root}/mariadb": - ensure => absent, - } - file { "${www_root}/gem": ensure => link, target => "${gem_root}", diff --git a/modules/openstack_project/manifests/mirror_update.pp b/modules/openstack_project/manifests/mirror_update.pp index 20c0edb3b3..2423ca04e7 100644 --- a/modules/openstack_project/manifests/mirror_update.pp +++ b/modules/openstack_project/manifests/mirror_update.pp @@ -571,40 +571,6 @@ class openstack_project::mirror_update ( key_source => 'puppet:///modules/openstack_project/reprepro/ubuntu-cloud-archive-gpg-key.asc', } - ### MariaDB mirror ### - ::openstack_project::mariadb_mirror { '10.0': - require => [ - File['/usr/local/bin/reprepro-mirror-update'], - File['/etc/afsadmin.keytab'], - File['/etc/reprepro.keytab'], - ] - } - ::openstack_project::mariadb_mirror { '10.1': - require => [ - File['/usr/local/bin/reprepro-mirror-update'], - File['/etc/afsadmin.keytab'], - File['/etc/reprepro.keytab'], - ] - } - - 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', - } - - gnupg_key { 'MariaDB Package Signing Key (new)': - ensure => present, - # 177F 4010 FE56 CA33 3630 0305 F165 6F24 C74C D1D8 - key_id => 'F1656F24C74CD1D8', - user => 'root', - key_type => 'public', - key_source => 'puppet:///modules/openstack_project/reprepro/mariadb-mirror-new-gpg-key.asc', - } - # AFS Monitoring file { '/etc/afsmon.cfg': ensure => present, diff --git a/modules/openstack_project/templates/reprepro/distributions.ubuntu-mariadb.erb b/modules/openstack_project/templates/reprepro/distributions.ubuntu-mariadb.erb deleted file mode 100644 index 86c9bef398..0000000000 --- a/modules/openstack_project/templates/reprepro/distributions.ubuntu-mariadb.erb +++ /dev/null @@ -1,12 +0,0 @@ -<% @releases.each do |release| -%> -Origin: MariaDB -Codename: <%= release %> -Description: OpenStack MariaDB <%= release.capitalize %> mirror -Architectures: amd64 -Components: main -UDebComponents: -Contents: .gz -Update: ubuntu-mariadb-<%= release %> -Log: <%= @logdir %>/ubuntu-mariadb-<%= release %>.log - -<% end -%>