diff --git a/manifests/profile/base/nova.pp b/manifests/profile/base/nova.pp index d41e4af4c..9033f0b84 100644 --- a/manifests/profile/base/nova.pp +++ b/manifests/profile/base/nova.pp @@ -82,7 +82,11 @@ # (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'), @@ -100,6 +104,7 @@ class tripleo::profile::base::nova ( $step = Integer(hiera('step')), $memcached_ips = hiera('memcached_node_ips'), $enable_cache = true, + $cache_backend = 'dogpile.cache.memcached', ) { if $::hostname == downcase($bootstrap_node) { @@ -126,7 +131,7 @@ class tripleo::profile::base::nova ( include nova::logging class { 'nova::cache': enabled => $enable_cache, - backend => 'oslo_cache.memcache_pool', + backend => $cache_backend, memcache_servers => $memcache_servers, } class { 'nova': diff --git a/spec/classes/tripleo_profile_base_nova_spec.rb b/spec/classes/tripleo_profile_base_nova_spec.rb index 8ee04a102..9161490c8 100644 --- a/spec/classes/tripleo_profile_base_nova_spec.rb +++ b/spec/classes/tripleo_profile_base_nova_spec.rb @@ -55,7 +55,7 @@ describe 'tripleo::profile::base::nova' do is_expected.to contain_class('nova::logging') is_expected.to contain_class('nova::cache').with( :enabled => true, - :backend => 'oslo_cache.memcache_pool', + :backend => 'dogpile.cache.memcached', :memcache_servers => ['127.0.0.1:11211'] ) is_expected.to contain_class('nova::placement')