Merge "Horizon: Completely switch to PyMemcache backend"

This commit is contained in:
Zuul 2023-03-10 09:00:20 +00:00 committed by Gerrit Code Review
commit 1a08adcc42

View File

@ -41,17 +41,9 @@ class openstack_integration::horizon (
Exec['update-ca-certificates'] ~> Service['httpd']
}
# TODO(tkajinam): Switch to pymemcache backend when we bump Ubuntu from
# Focal to Jammy. The pymemcache package in Forcal is too old
# and is not compatible with Django.
$cache_backend = $facts['os']['family'] ? {
'Debian' => 'django.core.cache.backends.memcached.MemcachedCache',
default => 'django.core.cache.backends.memcached.PyMemcacheCache'
}
class { 'horizon':
secret_key => 'big_secret',
cache_backend => $cache_backend,
cache_backend => 'django.core.cache.backends.memcached.PyMemcacheCache',
cache_server_ip => $::openstack_integration::config::host,
allowed_hosts => $::openstack_integration::config::ip_for_url,
listen_ssl => $::openstack_integration::config::ssl,