Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the $pyvers variable. Change-Id: I34ef3bef5bb5d97791801d07583b9682b5e729b7
This commit is contained in:
parent
8a81cd60a7
commit
afa9387452
|
@ -5,9 +5,6 @@
|
||||||
class magnum::params {
|
class magnum::params {
|
||||||
include openstacklib::defaults
|
include openstacklib::defaults
|
||||||
|
|
||||||
$pyvers = $::openstacklib::defaults::pyvers
|
|
||||||
$pyver3 = $::openstacklib::defaults::pyver3
|
|
||||||
|
|
||||||
$group = 'magnum'
|
$group = 'magnum'
|
||||||
case $::osfamily {
|
case $::osfamily {
|
||||||
'RedHat': {
|
'RedHat': {
|
||||||
|
@ -18,7 +15,7 @@ class magnum::params {
|
||||||
# service names
|
# service names
|
||||||
$api_service = 'openstack-magnum-api'
|
$api_service = 'openstack-magnum-api'
|
||||||
$conductor_service = 'openstack-magnum-conductor'
|
$conductor_service = 'openstack-magnum-conductor'
|
||||||
$client_package = "python${pyvers}-magnumclient"
|
$client_package = 'python3-magnumclient'
|
||||||
$wsgi_script_path = '/var/www/cgi-bin/magnum'
|
$wsgi_script_path = '/var/www/cgi-bin/magnum'
|
||||||
$wsgi_script_source = '/usr/bin/magnum-api-wsgi'
|
$wsgi_script_source = '/usr/bin/magnum-api-wsgi'
|
||||||
}
|
}
|
||||||
|
@ -30,9 +27,9 @@ class magnum::params {
|
||||||
# service names
|
# service names
|
||||||
$api_service = 'magnum-api'
|
$api_service = 'magnum-api'
|
||||||
$conductor_service = 'magnum-conductor'
|
$conductor_service = 'magnum-conductor'
|
||||||
$client_package = "python${pyvers}-magnumclient"
|
$client_package = 'python3-magnumclient'
|
||||||
$wsgi_script_path = '/usr/lib/cgi-bin/magnum'
|
$wsgi_script_path = '/usr/lib/cgi-bin/magnum'
|
||||||
$wsgi_script_source = "/usr/lib/python${pyver3}/dist-packages/magnum/api/app.wsgi"
|
$wsgi_script_source = '/usr/lib/python3/dist-packages/magnum/api/app.wsgi'
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
fail("Unsupported osfamily: ${::osfamily} operatingsystem")
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem")
|
||||||
|
|
|
@ -27,15 +27,7 @@ describe 'magnum::client' do
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
{ :client_package_name => 'python3-magnumclient' }
|
{ :client_package_name => 'python3-magnumclient' }
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
if facts[:operatingsystem] == 'Fedora'
|
|
||||||
{ :client_package_name => 'python3-magnumclient' }
|
{ :client_package_name => 'python3-magnumclient' }
|
||||||
else
|
|
||||||
if facts[:operatingsystemmajrelease] > '7'
|
|
||||||
{ :client_package_name => 'python3-magnumclient' }
|
|
||||||
else
|
|
||||||
{ :client_package_name => 'python-magnumclient' }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue