Add missing 'openstack' tag to python3-ceph package
Packages managed by Puppet OpenStack modules should have 'openstack' tag. This change fixes one package resource without that tag. Also, this change replaces ensure_resource by ensure_packages, so that more specific function for package resource is used. Change-Id: I281c7f4504f7205e7f23458364288179da89d445
This commit is contained in:
parent
24b8c76e19
commit
3162065b1d
|
@ -81,11 +81,11 @@ define glance::backend::multistore::rbd(
|
||||||
"${name}/store_description": value => $store_description;
|
"${name}/store_description": value => $store_description;
|
||||||
}
|
}
|
||||||
|
|
||||||
if $manage_packages and !defined(Package["${::glance::params::pyceph_package_name}"]) {
|
if $manage_packages and !defined(Package[$::glance::params::pyceph_package_name]) {
|
||||||
ensure_resource('package', 'python-ceph', {
|
ensure_packages('python-ceph', {
|
||||||
ensure => $package_ensure,
|
ensure => $package_ensure,
|
||||||
name => $::glance::params::pyceph_package_name,
|
name => $::glance::params::pyceph_package_name,
|
||||||
tag => 'glance-support-package',
|
tag => ['openstack', 'glance-support-package'],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ describe 'glance::backend::rbd' do
|
||||||
|
|
||||||
it { should contain_package('python-ceph').with(
|
it { should contain_package('python-ceph').with(
|
||||||
:name => platform_params[:pyceph_package_name],
|
:name => platform_params[:pyceph_package_name],
|
||||||
:ensure => 'present'
|
:ensure => 'installed'
|
||||||
)}
|
)}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,8 @@ describe 'glance::backend::multistore::rbd' do
|
||||||
|
|
||||||
it { should contain_package('python-ceph').with(
|
it { should contain_package('python-ceph').with(
|
||||||
:name => platform_params[:pyceph_package_name],
|
:name => platform_params[:pyceph_package_name],
|
||||||
:ensure => 'present'
|
:ensure => 'installed',
|
||||||
|
:tag => ['openstack', 'glance-support-package']
|
||||||
)}
|
)}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -57,7 +58,8 @@ describe 'glance::backend::multistore::rbd' do
|
||||||
|
|
||||||
it { should contain_package('python-ceph').with(
|
it { should contain_package('python-ceph').with(
|
||||||
:name => platform_params[:pyceph_package_name],
|
:name => platform_params[:pyceph_package_name],
|
||||||
:ensure => 'latest'
|
:ensure => 'latest',
|
||||||
|
:tag => ['openstack', 'glance-support-package']
|
||||||
)}
|
)}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue