Expose executor_thread_pool_size

This option has been supported by puppet-oslo but has not been
configurable.

Change-Id: Iec33f81eca912e07d5864bf6f923ac7c09dc530c
This commit is contained in:
Takashi Kajinami 2023-03-13 11:50:00 +09:00
parent 5e89485f5d
commit 35f8d7bd98
3 changed files with 17 additions and 6 deletions

View File

@ -40,6 +40,10 @@
# option.
# Defaults to $facts['os_service_default']
#
# [*executor_thread_pool_size*]
# (Optional) Size of executor thread pool when executor is threading or eventlet.
# Defaults to $facts['os_service_default'].
#
# [*notification_transport_url*]
# (optional) Connection url for oslo messaging notification backend. An
# example rabbit url would be, rabbit://user:pass@host:port/virtual_host
@ -138,6 +142,7 @@ class designate(
$default_transport_url = $facts['os_service_default'],
$rpc_response_timeout = $facts['os_service_default'],
$control_exchange = $facts['os_service_default'],
$executor_thread_pool_size = $facts['os_service_default'],
$notification_topics = $facts['os_service_default'],
$purge_config = false,
$amqp_durable_queues = $facts['os_service_default'],
@ -171,9 +176,10 @@ class designate(
}
oslo::messaging::default { 'designate_config':
transport_url => $default_transport_url,
rpc_response_timeout => $rpc_response_timeout,
control_exchange => $control_exchange,
executor_thread_pool_size => $executor_thread_pool_size,
transport_url => $default_transport_url,
rpc_response_timeout => $rpc_response_timeout,
control_exchange => $control_exchange,
}
oslo::messaging::notifications { 'designate_config':

View File

@ -0,0 +1,4 @@
---
features:
- |
The new ``designate::executor_thread_pool_size`` parameter has been added.

View File

@ -96,9 +96,10 @@ describe 'designate' do
it 'configures messaging' do
is_expected.to contain_oslo__messaging__default('designate_config').with(
:transport_url => '<SERVICE DEFAULT>',
:rpc_response_timeout => '<SERVICE DEFAULT>',
:control_exchange => '<SERVICE DEFAULT>'
:executor_thread_pool_size => '<SERVICE DEFAULT>',
:transport_url => '<SERVICE DEFAULT>',
:rpc_response_timeout => '<SERVICE DEFAULT>',
:control_exchange => '<SERVICE DEFAULT>'
)
is_expected.to contain_oslo__messaging__notifications('designate_config').with(
:driver => 'messaging',