Define nova::cache parameters in tht

Migrate parameter definitions for nova::cache module from
puppet-tripleo to tht, so that we can be less dependent on puppet
to set configurable items.

Depends-on: https://review.opendev.org/#/c/716988/
Change-Id: I796196f7a6e0f1235ac269a55e64161613018b1d
This commit is contained in:
Takashi Kajinami 2020-04-02 22:10:55 +09:00
parent 0bef823532
commit baf5ab640e
2 changed files with 6 additions and 13 deletions

View File

@ -78,15 +78,6 @@
# (Optional) Array of ipv4 or ipv6 addresses for memcache.
# Defaults to hiera('memcached_node_ips')
#
# [*enable_cache*]
# (Optional) Enable the use of cache. Note that it is unsupported
# to disable this key. It is only useful for debugging purposes.
# Defaults to true
#
# [*cache_backend*]
# (Optional) Backend implementation to store cache
# Defaults to 'dogpile.cache.memcached'
#
class tripleo::profile::base::nova (
$bootstrap_node = hiera('nova_api_short_bootstrap_node_name', undef),
$oslomsg_rpc_proto = hiera('oslo_messaging_rpc_scheme', 'rabbit'),
@ -103,8 +94,6 @@ class tripleo::profile::base::nova (
$oslomsg_notify_use_ssl = hiera('oslo_messaging_notify_use_ssl', '0'),
$step = Integer(hiera('step')),
$memcached_ips = hiera('memcached_node_ips'),
$enable_cache = true,
$cache_backend = 'dogpile.cache.memcached',
) {
if $::hostname == downcase($bootstrap_node) {
@ -130,8 +119,6 @@ class tripleo::profile::base::nova (
include nova::config
include nova::logging
class { 'nova::cache':
enabled => $enable_cache,
backend => $cache_backend,
memcache_servers => $memcache_servers,
}
class { 'nova':

View File

@ -0,0 +1,6 @@
---
deprecations:
- |
The ``enable_cache`` and ``cache_backend`` in
``tripleo::profile::base::nova`` class were removed because now these
parameters are defined in tripleo-heat-templates.