Install the correct memcache bindings for py3

Change-Id: I51184bb0153f2754dc6bc0d445020d218f6ecc3a
(cherry picked from commit 3fa63db938)
This commit is contained in:
Tobias Urdin 2020-05-27 12:06:26 +02:00
parent e59b906698
commit a58ef362a9
3 changed files with 15 additions and 2 deletions

View File

@ -23,7 +23,7 @@ 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-memcached'
$python_memcache_package_name = "python${pyvers}-memcached"
$mellon_package_name = 'mod_auth_mellon'
$openidc_package_name = 'mod_auth_openidc'
}

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixed a bug where the keystone::resource::authtoken resource would not
install the proper python memcache bindings when using python3.

View File

@ -211,7 +211,15 @@ describe 'keystone::resource::authtoken' do
when 'Debian'
memcache_package_name = 'python3-memcache'
when 'RedHat'
memcache_package_name = 'python-memcached'
if facts[:operatingsystem] == 'Fedora'
memcache_package_name = 'python3-memcached'
else
if facts[:operatingsystemmajrelease] > '7'
memcache_package_name = 'python3-memcached'
else
memcache_package_name = 'python-memcached'
end
end
end
{
:memcache_package_name => memcache_package_name