Debian is using python3-mistralclient
Change-Id: I1d90d7975d3b380bf1c4c4d4f11f40d4a1d30285 Closes-Bug: #1792608
This commit is contained in:
parent
d7ac372e69
commit
4912a1783d
|
@ -5,7 +5,13 @@
|
||||||
class mistral::params {
|
class mistral::params {
|
||||||
include ::openstacklib::defaults
|
include ::openstacklib::defaults
|
||||||
|
|
||||||
$client_package = 'python-mistralclient'
|
if ($::os_package_type == 'debian') {
|
||||||
|
$pyvers = '3'
|
||||||
|
} else {
|
||||||
|
$pyvers = ''
|
||||||
|
}
|
||||||
|
|
||||||
|
$client_package = "python-${pyvers}mistralclient"
|
||||||
$db_sync_command = 'mistral-db-manage --config-file=/etc/mistral/mistral.conf upgrade head'
|
$db_sync_command = 'mistral-db-manage --config-file=/etc/mistral/mistral.conf upgrade head'
|
||||||
$db_populate_command = 'mistral-db-manage --config-file=/etc/mistral/mistral.conf populate'
|
$db_populate_command = 'mistral-db-manage --config-file=/etc/mistral/mistral.conf populate'
|
||||||
$group = 'mistral'
|
$group = 'mistral'
|
||||||
|
|
|
@ -24,8 +24,17 @@ describe 'mistral::client' do
|
||||||
facts.merge!(OSDefaults.get_facts())
|
facts.merge!(OSDefaults.get_facts())
|
||||||
end
|
end
|
||||||
|
|
||||||
let :platform_params do
|
let(:platform_params) do
|
||||||
{ :client_package => 'python-mistralclient' }
|
case facts[:osfamily]
|
||||||
|
when 'Debian'
|
||||||
|
if facts[:os_package_type] == 'debian'
|
||||||
|
{ :client_package => 'python3-mistralclient' }
|
||||||
|
else
|
||||||
|
{ :client_package => 'python-mistralclient' }
|
||||||
|
end
|
||||||
|
when 'RedHat'
|
||||||
|
{ :client_package => 'python-mistralclient' }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it_behaves_like 'mistral client'
|
it_behaves_like 'mistral client'
|
||||||
|
|
Loading…
Reference in New Issue