1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
Author: Thomas Goirand <zigo@debian.org>
Description: 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.
Forwarded: https://review.opendev.org/c/openstack/puppet-barbican/+/953015
Last-Update: 2025-06-22
--- puppet-module-barbican-25.0.0.orig/manifests/api.pp
+++ puppet-module-barbican-25.0.0/manifests/api.pp
@@ -101,6 +101,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.
@@ -295,6 +303,8 @@ class barbican::api (
$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'],
@@ -370,6 +380,8 @@ class barbican::api (
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,
}
--- /dev/null
+++ puppet-module-barbican-25.0.0/releasenotes/notes/queue_manager-and-stream_fanout-36d60f75ca75ac43.yaml
@@ -0,0 +1,5 @@
+---
+features:
+ - |
+ The ``barbican::api`` class now has two new parameters
+ ``rabbit_use_queue_manager`` and ``rabbit_stream_fanout``.
|