Merge "Horizon: Completely switch to PyMemcache backend"
This commit is contained in:
commit
1a08adcc42
@ -41,17 +41,9 @@ class openstack_integration::horizon (
|
|||||||
Exec['update-ca-certificates'] ~> Service['httpd']
|
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':
|
class { 'horizon':
|
||||||
secret_key => 'big_secret',
|
secret_key => 'big_secret',
|
||||||
cache_backend => $cache_backend,
|
cache_backend => 'django.core.cache.backends.memcached.PyMemcacheCache',
|
||||||
cache_server_ip => $::openstack_integration::config::host,
|
cache_server_ip => $::openstack_integration::config::host,
|
||||||
allowed_hosts => $::openstack_integration::config::ip_for_url,
|
allowed_hosts => $::openstack_integration::config::ip_for_url,
|
||||||
listen_ssl => $::openstack_integration::config::ssl,
|
listen_ssl => $::openstack_integration::config::ssl,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user