Fix release name

We have to update the release name according to the latest release.

Change-Id: I343010aa628cd0df3183258b820b159d52d5e9af
This commit is contained in:
Takashi Kajinami 2024-04-19 00:23:24 +09:00
parent 6d6887f2e5
commit 4ba4a193ce
6 changed files with 19 additions and 19 deletions

View File

@ -8,7 +8,7 @@
# [*release*]
# (optional) The OpenStack release to add a
# Debian apt source for.
# Defaults to 'bobcat'
# Defaults to 'caracal'
#
# [*manage_deb*]
# (optional) Whether or not to add the default
@ -41,7 +41,7 @@
# Defaults to "http://${facts['os']['distro']['codename']}-${release}.debian.net/debian"
#
class openstack_extras::repo::debian::debian(
String[1] $release = 'bobcat',
String[1] $release = 'caracal',
Boolean $manage_deb = true,
Boolean $package_require = false,
Boolean $use_extrepo = true,

View File

@ -8,7 +8,7 @@
# [*release*]
# (optional) The OpenStack release to add an
# Ubuntu Cloud Archive APT source for.
# Defaults to 'bobcat'
# Defaults to 'caracal'
#
# [*manage_uca*]
# (optional) Whether or not to add the default
@ -42,7 +42,7 @@
# Defaults to $::openstack_extras::repo::debian::params::uca_location
#
class openstack_extras::repo::debian::ubuntu(
String[1] $release = 'bobcat',
String[1] $release = 'caracal',
Boolean $manage_uca = true,
String[1] $repo = 'updates',
Hash $source_hash = {},

View File

@ -7,7 +7,7 @@
#
# [*release*]
# (Optional) The OpenStack release to use.
# Defaults to 'bobcat'
# Defaults to 'caracal'
#
# [*manage_rdo*]
# (Optional) Whether to create a yumrepo resource for the
@ -72,7 +72,7 @@
# Defaults to false
#
class openstack_extras::repo::redhat::redhat (
String[1] $release = 'bobcat',
String[1] $release = 'caracal',
Boolean $manage_rdo = true,
Hash $repo_hash = {},
Hash $repo_source_hash = {},

View File

@ -14,7 +14,7 @@ describe 'openstack_extras::repo::debian::debian' do
let :paramclass_defaults do
{
:release => 'bobcat'
:release => 'caracal'
}
end
@ -23,11 +23,11 @@ describe 'openstack_extras::repo::debian::debian' do
end
context 'with default params' do
it { should contain_exec('/usr/bin/extrepo enable openstack_bobcat').with(
it { should contain_exec('/usr/bin/extrepo enable openstack_caracal').with(
:command => "/bin/true # comment to satisfy puppet syntax requirements
apt-get update
apt-get install -y extrepo
extrepo enable openstack_bobcat
extrepo enable openstack_caracal
apt-get update
",
)}
@ -58,14 +58,14 @@ apt-get update
end
it { should contain_apt__source('debian-openstack-backports').with(
:location => "http://#{facts[:os]['distro']['codename']}-bobcat.debian.net/debian",
:release => "#{facts[:os]['distro']['codename']}-bobcat-backports",
:location => "http://#{facts[:os]['distro']['codename']}-caracal.debian.net/debian",
:release => "#{facts[:os]['distro']['codename']}-caracal-backports",
:repos => 'main',
)}
it { should contain_apt__source('debian-openstack-backports-nochange').with(
:location => "http://#{facts[:os]['distro']['codename']}-bobcat.debian.net/debian",
:release => "#{facts[:os]['distro']['codename']}-bobcat-backports-nochange",
:location => "http://#{facts[:os]['distro']['codename']}-caracal.debian.net/debian",
:release => "#{facts[:os]['distro']['codename']}-caracal-backports-nochange",
:repos => 'main'
)}

View File

@ -13,7 +13,7 @@ describe 'openstack_extras::repo::debian::ubuntu' do
let :paramclass_defaults do
{
:release => 'bobcat'
:release => 'caracal'
}
end
@ -28,7 +28,7 @@ describe 'openstack_extras::repo::debian::ubuntu' do
it { should contain_apt__source('ubuntu-cloud-archive').with(
:location => 'http://ubuntu-cloud.archive.canonical.com/ubuntu',
:release => "#{facts[:os]['distro']['codename']}-updates/bobcat",
:release => "#{facts[:os]['distro']['codename']}-updates/caracal",
:repos => 'main',
)}
@ -130,7 +130,7 @@ describe 'openstack_extras::repo::debian::ubuntu' do
it { should contain_apt__source('ubuntu-cloud-archive').with(
:location => 'http://mirror.dfw.rax.openstack.org/ubuntu-cloud-archive',
:release => "#{facts[:os]['distro']['codename']}-proposed/bobcat",
:release => "#{facts[:os]['distro']['codename']}-proposed/caracal",
:repos => 'main',
)}
end

View File

@ -13,8 +13,8 @@ describe 'openstack_extras::repo::redhat::redhat' do
:before => 'Anchor[openstack_extras_redhat]',
)}
it { should contain_yumrepo('rdo-release').with(
:baseurl => "http://mirror.stream.centos.org/SIGs/$stream/cloud/$basearch/openstack-bobcat/",
:descr => "OpenStack Bobcat Repository",
:baseurl => "http://mirror.stream.centos.org/SIGs/$stream/cloud/$basearch/openstack-caracal/",
:descr => "OpenStack Caracal Repository",
:gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud',
:enabled => '1',
:gpgcheck => '1',
@ -126,7 +126,7 @@ describe 'openstack_extras::repo::redhat::redhat' do
end
it { should contain_yumrepo('rdo-release').with(
:baseurl => "http://foo.bar/SIGs/$stream/cloud/$basearch/openstack-bobcat/",
:baseurl => "http://foo.bar/SIGs/$stream/cloud/$basearch/openstack-caracal/",
)}
end