Inherit pyvers from openstacklib::defaults

Change-Id: Ie770b349c157bc36e19846971fece37f336a8b32
This commit is contained in:
Tobias Urdin 2019-01-17 21:27:05 +01:00
parent 6e92f77e51
commit 2a6342ab79
2 changed files with 2 additions and 11 deletions

View File

@ -2,12 +2,7 @@
#
class freezer::params {
include ::openstacklib::defaults
if ($::os_package_type == 'debian') {
$pyvers = '3'
} else {
$pyvers = ''
}
$pyvers = $::openstacklib::defaults::pyvers
$api_deploy_method = 'apache'
$api_bind_port = '9090'

View File

@ -24,11 +24,7 @@ describe 'freezer::client' do
let(:platform_params) do
case facts[:osfamily]
when 'Debian'
if facts[:os_package_type] == 'debian'
{ :client_package_name => 'python3-freezerclient' }
else
{ :client_package_name => 'python-freezerclient' }
end
{ :client_package_name => 'python3-freezerclient' }
when 'RedHat'
{ :client_package_name => 'python-freezerclient' }
end