Debian is using python3-tackerclient
Change-Id: I618e97ae52134859405ae57373303f45f00348f0
This commit is contained in:
parent
ee75ee281c
commit
b2517b0bf2
|
@ -4,7 +4,13 @@ class tacker::params {
|
||||||
include ::openstacklib::defaults
|
include ::openstacklib::defaults
|
||||||
$group = 'tacker'
|
$group = 'tacker'
|
||||||
|
|
||||||
$client_package_name = 'python-tackerclient'
|
if ($::os_package_type == 'debian') {
|
||||||
|
$pyvers = '3'
|
||||||
|
} else {
|
||||||
|
$pyvers = ''
|
||||||
|
}
|
||||||
|
|
||||||
|
$client_package_name = "python${pyvers}-tackerclient"
|
||||||
case $::osfamily {
|
case $::osfamily {
|
||||||
'RedHat': {
|
'RedHat': {
|
||||||
$package_name = 'openstack-tacker'
|
$package_name = 'openstack-tacker'
|
||||||
|
|
|
@ -12,7 +12,7 @@ describe 'tacker::client' do
|
||||||
it 'contains tackerclient' do
|
it 'contains tackerclient' do
|
||||||
is_expected.to contain_package('python-tackerclient').with(
|
is_expected.to contain_package('python-tackerclient').with(
|
||||||
:ensure => 'present',
|
:ensure => 'present',
|
||||||
:name => platform_params[:tackerclient_package],
|
:name => platform_params[:client_package_name],
|
||||||
:tag => 'openstack',
|
:tag => 'openstack',
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
@ -28,9 +28,19 @@ describe 'tacker::client' do
|
||||||
facts.merge!(OSDefaults.get_facts())
|
facts.merge!(OSDefaults.get_facts())
|
||||||
end
|
end
|
||||||
|
|
||||||
let :platform_params do
|
let(:platform_params) do
|
||||||
{ :tackerclient_package => 'python-tackerclient' }
|
case facts[:osfamily]
|
||||||
|
when 'Debian'
|
||||||
|
if facts[:os_package_type] == 'debian'
|
||||||
|
{ :client_package_name => 'python3-tackerclient' }
|
||||||
|
else
|
||||||
|
{ :client_package_name => 'python-tackerclient' }
|
||||||
|
end
|
||||||
|
when 'RedHat'
|
||||||
|
{ :client_package_name => 'python-tackerclient' }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it_behaves_like 'tacker::client'
|
it_behaves_like 'tacker::client'
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue