Add queue_manager and stream_fanout
This patch adds two new parameters to the toplevel class: - rabbit_use_queue_manager - rabbit_stream_fanout that are already handled by the oslo::messaging::rabbit class, which makes it impossible to set using barbican_config. Change-Id: I68d993aaff7b2a9277b7f102742f2a41a8c54032
This commit is contained in:
@@ -79,6 +79,14 @@
|
||||
# (Optional) Limit the number of memory bytes used by the quorum queue.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*rabbit_use_queue_manager*]
|
||||
# (Optional) Should we use consistant queue names or random ones.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*rabbit_stream_fanout*]
|
||||
# (Optional) Use stream queues in RabbitMQ (x-queue-type: stream).
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*rabbit_enable_cancel_on_failover*]
|
||||
# (Optional) Enable x-cancel-on-ha-failover flag so that rabbitmq server will
|
||||
# cancel and notify consumers when queue is down.
|
||||
@@ -203,6 +211,8 @@ class barbican(
|
||||
$rabbit_quorum_delivery_limit = $facts['os_service_default'],
|
||||
$rabbit_quorum_max_memory_length = $facts['os_service_default'],
|
||||
$rabbit_quorum_max_memory_bytes = $facts['os_service_default'],
|
||||
$rabbit_use_queue_manager = $facts['os_service_default'],
|
||||
$rabbit_stream_fanout = $facts['os_service_default'],
|
||||
$rabbit_enable_cancel_on_failover = $facts['os_service_default'],
|
||||
$amqp_durable_queues = $facts['os_service_default'],
|
||||
$amqp_auto_delete = $facts['os_service_default'],
|
||||
@@ -258,6 +268,8 @@ class barbican(
|
||||
rabbit_quorum_delivery_limit => $rabbit_quorum_delivery_limit,
|
||||
rabbit_quorum_max_memory_length => $rabbit_quorum_max_memory_length,
|
||||
rabbit_quorum_max_memory_bytes => $rabbit_quorum_max_memory_bytes,
|
||||
use_queue_manager => $rabbit_use_queue_manager,
|
||||
rabbit_stream_fanout => $rabbit_stream_fanout,
|
||||
enable_cancel_on_failover => $rabbit_enable_cancel_on_failover,
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The ``barbican`` class now has two new parameters
|
||||
``rabbit_use_queue_manager`` and ``rabbit_stream_fanout``.
|
||||
@@ -94,6 +94,8 @@ describe 'barbican' do
|
||||
:rabbit_quorum_delivery_limit => 3,
|
||||
:rabbit_quorum_max_memory_length => 5,
|
||||
:rabbit_quorum_max_memory_bytes => 1073741824,
|
||||
:rabbit_use_queue_manager => true,
|
||||
:rabbit_stream_fanout => true,
|
||||
:rabbit_enable_cancel_on_failover => false,
|
||||
:amqp_durable_queues => true,
|
||||
:amqp_auto_delete => true,
|
||||
@@ -154,6 +156,8 @@ describe 'barbican' do
|
||||
:rabbit_quorum_delivery_limit => params[:rabbit_quorum_delivery_limit],
|
||||
:rabbit_quorum_max_memory_length => params[:rabbit_quorum_max_memory_length],
|
||||
:rabbit_quorum_max_memory_bytes => params[:rabbit_quorum_max_memory_bytes],
|
||||
:use_queue_manager => params[:rabbit_use_queue_manager],
|
||||
:rabbit_stream_fanout => params[:rabbit_stream_fanout],
|
||||
:enable_cancel_on_failover => params[:rabbit_enable_cancel_on_failover],
|
||||
)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user