Browse Source

Merge "Rename rdo-qemu-ev repo to centos-advanced-virt"

master
Zuul 4 days ago
committed by Gerrit Code Review
parent
commit
8dd6e0ea98
2 changed files with 16 additions and 9 deletions
  1. +7
    -2
      manifests/repo/redhat/redhat.pp
  2. +9
    -7
      spec/classes/openstack_extras_repo_redhat_redhat_spec.rb

+ 7
- 2
manifests/repo/redhat/redhat.pp View File

@ -156,10 +156,15 @@ class openstack_extras::repo::redhat::redhat (
$virt_baseurl = "${centos_mirror_url}/centos/${centos_major}/virt/\$basearch/advanced-virtualization/"
}
# TODO(tobias-urdin): Remove this after one cycle.
yumrepo { 'rdo-qemu-ev':
ensure => 'absent',
}
$virt_hash = {
'rdo-qemu-ev' => {
'centos-advanced-virt' => {
'baseurl' => $virt_baseurl,
'descr' => "RDO CentOS-${$centos_major} - QEMU EV",
'descr' => "CentOS-${$centos_major} - Advanced Virt",
'gpgkey' => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization',
}
}


+ 9
- 7
spec/classes/openstack_extras_repo_redhat_redhat_spec.rb View File

@ -24,6 +24,8 @@ describe 'openstack_extras::repo::redhat::redhat' do
:require => 'Anchor[openstack_extras_redhat]',
)}
it { should contain_yumrepo('rdo-qemu-ev').with_ensure('absent') }
it { should contain_file('/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization').with(
:source => 'puppet:///modules/openstack_extras/RPM-GPG-KEY-CentOS-SIG-Virtualization',
:owner => 'root',
@ -32,9 +34,9 @@ describe 'openstack_extras::repo::redhat::redhat' do
:before => 'Anchor[openstack_extras_redhat]',
)}
it { should contain_yumrepo('rdo-qemu-ev').with(
it { should contain_yumrepo('centos-advanced-virt').with(
:baseurl => "http://mirror.centos.org/centos/#{facts[:operatingsystemmajrelease]}-stream/virt/$basearch/advancedvirt-common/",
:descr => "RDO CentOS-#{facts[:operatingsystemmajrelease]}-stream - QEMU EV",
:descr => "CentOS-#{facts[:operatingsystemmajrelease]}-stream - Advanced Virt",
:gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization',
:enabled => '1',
:gpgcheck => '1',
@ -74,7 +76,7 @@ describe 'openstack_extras::repo::redhat::redhat' do
it { should_not contain_yumrepo('rdo-release') }
it { should_not contain_file('/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization') }
it { should_not contain_yumrepo('rdo-qemu-ev') }
it { should_not contain_yumrepo('centos-advanced-virt') }
it { should contain_file("/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-#{facts[:operatingsystemmajrelease]}").with(
:source => "puppet:///modules/openstack_extras/RPM-GPG-KEY-EPEL-#{facts[:operatingsystemmajrelease]}",
@ -123,9 +125,9 @@ describe 'openstack_extras::repo::redhat::redhat' do
:baseurl => "http://mirror.centos.org/centos/#{facts[:operatingsystemmajrelease]}/cloud/\$basearch/openstack-victoria/",
)}
it { should contain_yumrepo('rdo-qemu-ev').with(
it { should contain_yumrepo('centos-advanced-virt').with(
:baseurl => "http://mirror.centos.org/centos/#{facts[:operatingsystemmajrelease]}/virt/\$basearch/advanced-virtualization/",
:descr => "RDO CentOS-#{facts[:operatingsystemmajrelease]} - QEMU EV",
:descr => "CentOS-#{facts[:operatingsystemmajrelease]} - Advanced Virt",
)}
end
@ -253,7 +255,7 @@ describe 'openstack_extras::repo::redhat::redhat' do
:baseurl => "http://foo.bar/centos/#{facts[:operatingsystemmajrelease]}-stream/cloud/\$basearch/openstack-victoria/",
)}
it { should contain_yumrepo('rdo-qemu-ev').with(
it { should contain_yumrepo('centos-advanced-virt').with(
:baseurl => "http://foo.bar/centos/#{facts[:operatingsystemmajrelease]}-stream/virt/\$basearch/advancedvirt-common/",
)}
end
@ -311,7 +313,7 @@ describe 'openstack_extras::repo::redhat::redhat' do
:before => 'Anchor[openstack_extras_redhat]',
)}
it { should contain_yumrepo('rdo-qemu-ev').with(
it { should contain_yumrepo('centos-advanced-virt').with(
:enabled => '1',
:gpgcheck => '1',
:mirrorlist => 'absent',


Loading…
Cancel
Save