coordination: Use consistent tag format for package resources

... to avoid conflicts with the other implementations which require
same packages.

Closes-Bug: #2046317
Change-Id: I3d637b1c47ea17a565efb1d5e0b58ee701b21c8b
This commit is contained in:
Takashi Kajinami 2023-12-13 14:09:22 +09:00
parent ef4f35ab29
commit 976418c9c2
2 changed files with 8 additions and 8 deletions

View File

@ -35,14 +35,14 @@ define oslo::coordination (
ensure_packages('python-redis', {
name => $::oslo::params::python_redis_package_name,
ensure => $package_ensure,
tag => 'openstack',
tag => ['openstack'],
})
}
/^etcd3\+http[s]?:\/\//: {
ensure_packages('python-etcd3gw', {
name => $::oslo::params::python_etcd3gw_package_name,
ensure => $package_ensure,
tag => 'openstack',
tag => ['openstack'],
})
}
/^etcd3:\/\//: {
@ -51,7 +51,7 @@ define oslo::coordination (
ensure_packages('python-etcd3', {
name => $::oslo::params::python_etcd3_package_name,
ensure => $package_ensure,
tag => 'openstack',
tag => ['openstack'],
})
} else {
warning('The python-etcd3 package is not available.')
@ -61,7 +61,7 @@ define oslo::coordination (
ensure_packages('python-pymemcache', {
name => $::oslo::params::python_pymemcache_package_name,
ensure => $package_ensure,
tag => 'openstack',
tag => ['openstack'],
})
}
default: {

View File

@ -23,7 +23,7 @@ describe 'oslo::coordination' do
is_expected.to contain_package('python-redis').with(
:name => platform_params[:python_redis_package_name],
:ensure => 'installed',
:tag => 'openstack',
:tag => ['openstack'],
)
end
@ -52,7 +52,7 @@ describe 'oslo::coordination' do
is_expected.to contain_package('python-etcd3').with(
:name => platform_params[:python_etcd3_package_name],
:ensure => 'installed',
:tag => 'openstack',
:tag => ['openstack'],
)
else
is_expected.to_not contain_package('python-etcd3')
@ -129,7 +129,7 @@ describe 'oslo::coordination' do
is_expected.to contain_package('python-pymemcache').with(
:name => platform_params[:python_pymemcache_package_name],
:ensure => 'installed',
:tag => 'openstack',
:tag => ['openstack'],
)
end
@ -158,7 +158,7 @@ describe 'oslo::coordination' do
is_expected.to contain_package('python-redis').with(
:name => platform_params[:python_redis_package_name],
:ensure => 'installed',
:tag => 'openstack',
:tag => ['openstack'],
)
end
end