Get rid of the $pyvers variable

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

Change-Id: I6095e9aa5f9c6dcd07e246d78f86ff2ef5660fa4
This commit is contained in:
Thomas Goirand 2021-06-09 16:14:50 +02:00
parent 531e6a649a
commit d48492d84a
2 changed files with 2 additions and 11 deletions

View File

@ -2,11 +2,10 @@
#
class freezer::params {
include openstacklib::defaults
$pyvers = $::openstacklib::defaults::pyvers
$api_deploy_method = 'apache'
$api_bind_port = '9090'
$client_package = "python${pyvers}-freezerclient"
$client_package = 'python3-freezerclient'
$freezer_db_backend = 'elasticsearch'
$db_sync_command = 'freezer-manage db sync'
$group = 'freezer'

View File

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