Merge "Add manage_backend_package parameter"
This commit is contained in:
commit
ad25580343
@ -81,6 +81,10 @@
|
|||||||
# client connection. (integer value)
|
# client connection. (integer value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $::os_service_default
|
||||||
#
|
#
|
||||||
|
# [*manage_backend_package*]
|
||||||
|
# (Optional) (Optional) Whether to install the backend package for the cache.
|
||||||
|
# Defaults to true
|
||||||
|
#
|
||||||
class nova::cache (
|
class nova::cache (
|
||||||
$config_prefix = $::os_service_default,
|
$config_prefix = $::os_service_default,
|
||||||
$expiration_time = $::os_service_default,
|
$expiration_time = $::os_service_default,
|
||||||
@ -95,6 +99,7 @@ class nova::cache (
|
|||||||
$memcache_pool_maxsize = $::os_service_default,
|
$memcache_pool_maxsize = $::os_service_default,
|
||||||
$memcache_pool_unused_timeout = $::os_service_default,
|
$memcache_pool_unused_timeout = $::os_service_default,
|
||||||
$memcache_pool_connection_get_timeout = $::os_service_default,
|
$memcache_pool_connection_get_timeout = $::os_service_default,
|
||||||
|
$manage_backend_package = true,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include ::nova::deps
|
include ::nova::deps
|
||||||
@ -113,5 +118,6 @@ class nova::cache (
|
|||||||
memcache_pool_maxsize => $memcache_pool_maxsize,
|
memcache_pool_maxsize => $memcache_pool_maxsize,
|
||||||
memcache_pool_unused_timeout => $memcache_pool_unused_timeout,
|
memcache_pool_unused_timeout => $memcache_pool_unused_timeout,
|
||||||
memcache_pool_connection_get_timeout => $memcache_pool_connection_get_timeout,
|
memcache_pool_connection_get_timeout => $memcache_pool_connection_get_timeout,
|
||||||
|
manage_backend_package => $manage_backend_package,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Added new parameter nova::cache::manage_backend_package that is sent to the
|
||||||
|
oslo::cache class which determines if the backend cache python library
|
||||||
|
should be installed or not. Defaults to true same as oslo::cache default
|
||||||
|
value.
|
@ -23,6 +23,7 @@ describe 'nova::cache' do
|
|||||||
is_expected.to contain_nova_config('cache/memcache_pool_maxsize').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_nova_config('cache/memcache_pool_maxsize').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_nova_config('cache/memcache_pool_unused_timeout').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_nova_config('cache/memcache_pool_unused_timeout').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_nova_config('cache/memcache_pool_connection_get_timeout').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_nova_config('cache/memcache_pool_connection_get_timeout').with_value('<SERVICE DEFAULT>')
|
||||||
|
is_expected.to contain_oslo__cache('nova_config').with_manage_backend_package(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -41,6 +42,7 @@ describe 'nova::cache' do
|
|||||||
:memcache_pool_maxsize => '10',
|
:memcache_pool_maxsize => '10',
|
||||||
:memcache_pool_unused_timeout => '120',
|
:memcache_pool_unused_timeout => '120',
|
||||||
:memcache_pool_connection_get_timeout => '360',
|
:memcache_pool_connection_get_timeout => '360',
|
||||||
|
:manage_backend_package => false,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -58,6 +60,7 @@ describe 'nova::cache' do
|
|||||||
is_expected.to contain_nova_config('cache/memcache_pool_maxsize').with_value('10')
|
is_expected.to contain_nova_config('cache/memcache_pool_maxsize').with_value('10')
|
||||||
is_expected.to contain_nova_config('cache/memcache_pool_unused_timeout').with_value('120')
|
is_expected.to contain_nova_config('cache/memcache_pool_unused_timeout').with_value('120')
|
||||||
is_expected.to contain_nova_config('cache/memcache_pool_connection_get_timeout').with_value('360')
|
is_expected.to contain_nova_config('cache/memcache_pool_connection_get_timeout').with_value('360')
|
||||||
|
is_expected.to contain_oslo__cache('nova_config').with_manage_backend_package(false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user