b4872bf38b
It was deprecated during the 2023.2 cycle[1], so can be removed now.
Also add validation about transport_url options to reject unsupported
drivers.
[1] e174113210
Depends-on: https://review.opendev.org/918774
Change-Id: I3c3b17b8109c84cc0cbfb4254cc969cc563265e4
49 lines
1.8 KiB
Puppet
49 lines
1.8 KiB
Puppet
# == Define: oslo::messaging::default
|
|
#
|
|
# Configure oslo DEFAULT messaging options
|
|
#
|
|
# It will manage the [DEFAULT] section in the given config resource.
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*executor_thread_pool_size*]
|
|
# (Optional) Size of executor thread pool when executor is threading or eventlet.
|
|
# Defaults to $facts['os_service_default'].
|
|
#
|
|
# [*rpc_response_timeout*]
|
|
# (Optional) Seconds to wait for a response from a call. (integer value)
|
|
# Defaults to $facts['os_service_default'].
|
|
#
|
|
# [*transport_url*]
|
|
# (Optional) A URL representing the messaging driver to use
|
|
# and its full configuration. If not set, we fall back to
|
|
# the rpc_backend option and driver specific configuration.
|
|
# Transport URLs take the form:
|
|
# transport://user:pass@host1:port[,hostN:portN]/virtual_host
|
|
# (string value)
|
|
# Defaults to $facts['os_service_default'].
|
|
#
|
|
# [*control_exchange*]
|
|
# (Optional) The default exchange under which topics are scoped.
|
|
# May be overridden by an exchange name specified in the transport_url option.
|
|
# (string value)
|
|
# Defaults to $facts['os_service_default'].
|
|
#
|
|
|
|
define oslo::messaging::default(
|
|
$executor_thread_pool_size = $facts['os_service_default'],
|
|
$rpc_response_timeout = $facts['os_service_default'],
|
|
Oslo::TransportURL $transport_url = $facts['os_service_default'],
|
|
$control_exchange = $facts['os_service_default'],
|
|
) {
|
|
|
|
$default_options = {
|
|
'DEFAULT/executor_thread_pool_size' => { value => $executor_thread_pool_size },
|
|
'DEFAULT/rpc_response_timeout' => { value => $rpc_response_timeout },
|
|
'DEFAULT/transport_url' => { value => $transport_url, secret => true },
|
|
'DEFAULT/control_exchange' => { value => $control_exchange },
|
|
}
|
|
|
|
create_resources($name, $default_options)
|
|
}
|