Get rid of the $pyvers variable

Since everyone has switched to Python3, it's time for the removal of the
$pyvers variable.

Change-Id: I65aeab82eb4f62834be3162e9ce2bd3655bc315a
This commit is contained in:
Thomas Goirand 2021-05-21 12:09:49 +02:00
parent 9448a98907
commit 0221597f1b
2 changed files with 2 additions and 11 deletions

View File

@ -2,13 +2,12 @@
#
class octavia::params {
include openstacklib::defaults
$pyvers = $::openstacklib::defaults::pyvers
$api_service_name = 'octavia-api'
$worker_service_name = 'octavia-worker'
$health_manager_service_name = 'octavia-health-manager'
$housekeeping_service_name = 'octavia-housekeeping'
$client_package_name = "python${pyvers}-octaviaclient"
$client_package_name = 'python3-octaviaclient'
$group = 'octavia'
case $::osfamily {

View File

@ -42,15 +42,7 @@ describe 'octavia::client' do
when 'Debian'
{ :client_package_name => 'python3-octaviaclient' }
when 'RedHat'
if facts[:operatingsystem] == 'Fedora'
{ :client_package_name => 'python3-octaviaclient' }
else
if facts[:operatingsystemmajrelease] > '7'
{ :client_package_name => 'python3-octaviaclient' }
else
{ :client_package_name => 'python-octaviaclient' }
end
end
{ :client_package_name => 'python3-octaviaclient' }
end
end