Inherit pyvers from openstacklib::defaults

Change-Id: I64fd0792e00fcb21c81cce879475c8986a6c2f7e
This commit is contained in:
Tobias Urdin 2019-01-17 21:42:38 +01:00
parent 76de1bcc95
commit dddb501f86
2 changed files with 2 additions and 12 deletions

View File

@ -4,13 +4,7 @@
#
class mistral::params {
include ::openstacklib::defaults
if ($::os_package_type == 'debian') or ($::os['name'] == 'Fedora') or
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
$pyvers = '3'
} else {
$pyvers = ''
}
$pyvers = $::openstacklib::defaults::pyvers
$client_package = "python${pyvers}-mistralclient"
$db_sync_command = 'mistral-db-manage --config-file=/etc/mistral/mistral.conf upgrade head'

View File

@ -27,11 +27,7 @@ describe 'mistral::client' do
let(:platform_params) do
case facts[:osfamily]
when 'Debian'
if facts[:os_package_type] == 'debian'
{ :client_package => 'python3-mistralclient' }
else
{ :client_package => 'python-mistralclient' }
end
{ :client_package => 'python3-mistralclient' }
when 'RedHat'
{ :client_package => 'python-mistralclient' }
end