Browse Source

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
changes/92/716992/4
Takashi Kajinami 1 year ago
parent
commit
baf5ab640e
  1. 13
      manifests/profile/base/nova.pp
  2. 6
      releasenotes/notes/nova-cache-in-tht-533e048fd6ccc65f.yaml

13
manifests/profile/base/nova.pp

@ -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':

6
releasenotes/notes/nova-cache-in-tht-533e048fd6ccc65f.yaml

@ -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.
Loading…
Cancel
Save