Add support for [cache] memcache_pool_flush_on_reconnect
... so that all memcache pool options are supported. Change-Id: Idf443c2d8f2f5d5b77e3129ac6affa4d91490222
This commit is contained in:
3 changed files with 15 additions and 0 deletions
@@ -135,6 +135,11 @@
#clientconnection.(integervalue)
#Defaultsto$facts['os_service_default']
#
#[*memcache_pool_flush_on_reconnect*]
#(Optional)Globaltoggleifmemcachewillbeflushedonreconnect.
#(oslo_cache.memcache_poolbackendonly)
#Defaultsto$facts['os_service_default']
#
#[*tls_enabled*]
#(Optional)GlobaltoggleforTLSusagewhencommunicatingwith
#thecachingservers.
@@ -225,6 +230,7 @@ define oslo::cache(
$memcache_pool_maxsize=$facts['os_service_default'],
$memcache_pool_unused_timeout=$facts['os_service_default'],
$memcache_pool_connection_get_timeout=$facts['os_service_default'],
$memcache_pool_flush_on_reconnect=$facts['os_service_default'],
$tls_enabled=$facts['os_service_default'],
$tls_cafile=$facts['os_service_default'],
$tls_certfile=$facts['os_service_default'],
@@ -302,6 +308,7 @@ define oslo::cache(
'cache/memcache_pool_maxsize'=>{ value => $memcache_pool_maxsize },
'cache/memcache_pool_unused_timeout'=>{ value => $memcache_pool_unused_timeout },
'cache/memcache_pool_connection_get_timeout'=>{ value => $memcache_pool_connection_get_timeout },
'cache/memcache_pool_flush_on_reconnect'=>{ value => $memcache_pool_flush_on_reconnect },
'cache/tls_enabled'=>{ value => $tls_enabled },
'cache/tls_cafile'=>{ value => $tls_cafile },
'cache/tls_certfile'=>{ value => $tls_certfile },
@@ -0,0 +1,5 @@
---
features:
- |
The new ``oslo::cache::memcache_pool_flush_on_reconnect`` parameter has
been added.
@@ -25,6 +25,7 @@ describe 'oslo::cache' do
is_expected.to contain_keystone_config('cache/memcache_pool_maxsize').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('cache/memcache_pool_unused_timeout').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('cache/memcache_pool_connection_get_timeout').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('cache/memcache_pool_flush_on_reconnect').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('cache/tls_enabled').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('cache/tls_cafile').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('cache/tls_certfile').with_value('<SERVICE DEFAULT>')
@@ -59,6 +60,7 @@ describe 'oslo::cache' do
:memcache_pool_maxsize => '10',
:memcache_pool_unused_timeout => '60',
:memcache_pool_connection_get_timeout => '10',
:memcache_pool_flush_on_reconnect => false,
:tls_enabled => false,
:tls_cafile => '/path/to/ssl/cafile',
:tls_certfile => '/path/to/ssl/certfile',
@@ -91,6 +93,7 @@ describe 'oslo::cache' do
is_expected.to contain_keystone_config('cache/memcache_pool_maxsize').with_value('10')
is_expected.to contain_keystone_config('cache/memcache_pool_unused_timeout').with_value('60')
is_expected.to contain_keystone_config('cache/memcache_pool_connection_get_timeout').with_value('10')
is_expected.to contain_keystone_config('cache/memcache_pool_flush_on_reconnect').with_value(false)
is_expected.to contain_keystone_config('cache/tls_enabled').with_value('false')
is_expected.to contain_keystone_config('cache/tls_cafile').with_value('/path/to/ssl/cafile')
is_expected.to contain_keystone_config('cache/tls_certfile').with_value('/path/to/ssl/certfile')
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.