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:
parent
9448a98907
commit
0221597f1b
@ -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 {
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user