Get rid of the $pyvers variable

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

Change-Id: I9555be66cda91643e443be664c8f81879b749ebd
changes/54/792554/1
Thomas Goirand 2 years ago
parent 1a0fbe36e1
commit 62d556fc63
  1. 15
      manifests/params.pp
  2. 10
      spec/classes/keystone_client_spec.rb
  3. 10
      spec/classes/keystone_federation_identity_provider_spec.rb
  4. 10
      spec/classes/keystone_ldap_spec.rb
  5. 10
      spec/defines/keystone_ldap_backend_spec.rb

@ -3,9 +3,8 @@
#
class keystone::params {
include openstacklib::defaults
$pyvers = $::openstacklib::defaults::pyvers
$client_package_name = "python${pyvers}-keystoneclient"
$client_package_name = 'python3-keystoneclient'
$keystone_user = 'keystone'
$keystone_group = 'keystone'
$group = 'keystone'
@ -15,9 +14,9 @@ class keystone::params {
$package_name = 'keystone'
$service_name = 'keystone'
$keystone_wsgi_script_path = '/usr/lib/cgi-bin/keystone'
$python_memcache_package_name = "python${pyvers}-memcache"
$python_ldappool_package_name = "python${pyvers}-ldappool"
$python_pysaml2_package_name = "python${pyvers}-pysaml2"
$python_memcache_package_name = 'python3-memcache'
$python_ldappool_package_name = 'python3-ldappool'
$python_pysaml2_package_name = 'python3-pysaml2'
$mellon_package_name = 'libapache2-mod-auth-mellon'
$openidc_package_name = 'libapache2-mod-auth-openidc'
}
@ -25,9 +24,9 @@ class keystone::params {
$package_name = 'openstack-keystone'
$service_name = 'openstack-keystone'
$keystone_wsgi_script_path = '/var/www/cgi-bin/keystone'
$python_memcache_package_name = "python${pyvers}-memcached"
$python_ldappool_package_name = "python${pyvers}-ldappool"
$python_pysaml2_package_name = "python${pyvers}-pysaml2"
$python_memcache_package_name = 'python3-memcached'
$python_ldappool_package_name = 'python3-ldappool'
$python_pysaml2_package_name = 'python3-pysaml2'
$mellon_package_name = 'mod_auth_mellon'
$openidc_package_name = 'mod_auth_openidc'
}

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

@ -122,15 +122,7 @@ describe 'keystone::federation::identity_provider' do
let (:platform_params) do
if facts[:osfamily] == 'RedHat'
keystone_service = 'openstack-keystone'
if facts[:operatingsystem] == 'Fedora'
python_pysaml2_package_name = 'python3-pysaml2'
else
if facts[:operatingsystemmajrelease] > '7'
python_pysaml2_package_name = 'python3-pysaml2'
else
python_pysaml2_package_name = 'python-pysaml2'
end
end
python_pysaml2_package_name = 'python3-pysaml2'
else
keystone_service = 'keystone'
python_pysaml2_package_name = 'python3-pysaml2'

@ -151,15 +151,7 @@ describe 'keystone::ldap' do
when 'Debian'
{ :python_ldappool_package_name => 'python3-ldappool' }
when 'RedHat'
if facts[:operatingsystem] == 'Fedora'
{ :python_ldappool_package_name => 'python3-ldappool' }
else
if facts[:operatingsystemmajrelease] > '7'
{ :python_ldappool_package_name => 'python3-ldappool' }
else
{ :python_ldappool_package_name => 'python-ldappool' }
end
end
{ :python_ldappool_package_name => 'python3-ldappool' }
end
end
it_behaves_like 'keystone::ldap'

@ -220,15 +220,7 @@ describe 'keystone::ldap_backend' do
when 'Debian'
{ :python_ldappool_package_name => 'python3-ldappool' }
when 'RedHat'
if facts[:operatingsystem] == 'Fedora'
{ :python_ldappool_package_name => 'python3-ldappool' }
else
if facts[:operatingsystemmajrelease] > '7'
{ :python_ldappool_package_name => 'python3-ldappool' }
else
{ :python_ldappool_package_name => 'python-ldappool' }
end
end
{ :python_ldappool_package_name => 'python3-ldappool' }
end
end
it_behaves_like 'keystone::ldap_backend'

Loading…
Cancel
Save