Inherit pyvers from openstacklib::defaults
Change-Id: I4d27bbbb16f87cf0051f1bbed2429e1c8affd14c
This commit is contained in:
parent
af77837871
commit
580ead284f
@ -2,13 +2,7 @@
|
||||
#
|
||||
class glare::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
|
||||
|
||||
$group = 'glare'
|
||||
$client_package_name = "python${pyvers}-glareclient"
|
||||
@ -18,9 +12,9 @@ class glare::params {
|
||||
$glare_package_name = 'openstack-glare'
|
||||
$glare_service_name = 'openstack-glare-api'
|
||||
if ($::operatingsystem != 'fedora' and versioncmp($::operatingsystemrelease, '7') < 0) {
|
||||
$pyceph_package_name = 'python-ceph'
|
||||
$pyceph_package_name = "python${pyvers}-ceph"
|
||||
} else {
|
||||
$pyceph_package_name = 'python-rbd'
|
||||
$pyceph_package_name = "python${pyvers}-rbd"
|
||||
}
|
||||
}
|
||||
'Debian': {
|
||||
|
@ -27,11 +27,7 @@ describe 'glare::client' do
|
||||
let(:platform_params) do
|
||||
case facts[:osfamily]
|
||||
when 'Debian'
|
||||
if facts[:os_package_type] == 'debian'
|
||||
{ :client_package_name => 'python3-glareclient' }
|
||||
else
|
||||
{ :client_package_name => 'python-glareclient' }
|
||||
end
|
||||
{ :client_package_name => 'python3-glareclient' }
|
||||
when 'RedHat'
|
||||
{ :client_package_name => 'python-glareclient' }
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user