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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
Description: Expose rabbit_transient_quorum_queue
Author: Takashi Kajinami <kajinamit@oss.nttdata.com>
Date: Wed, 12 Feb 2025 22:32:41 +0900
Depends-on: https://review.opendev.org/911021
Change-Id: Icd58624d4f0467b0bacf9f5f7cabab5457ce04a6
Origin: upstream, https://review.opendev.org/c/openstack/puppet-cloudkitty/+/941405
Last-Update: 2025-02-12
diff --git a/manifests/init.pp b/manifests/init.pp
index fb1caad..87bbdc0 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -41,6 +41,10 @@
# (Optional) Use quorum queues in RabbitMQ.
# Defaults to $facts['os_service_default']
#
+# [*rabbit_transient_quorum_queue*]
+# (Optional) Use quorum queues for transients queues in RabbitMQ.
+# Defaults to $facts['os_service_default']
+#
# [*rabbit_quorum_delivery_limit*]
# (Optional) Each time a message is rdelivered to a consumer, a counter is
# incremented. Once the redelivery count exceeds the delivery limit
@@ -200,6 +204,7 @@
$rabbit_heartbeat_in_pthread = $facts['os_service_default'],
$rabbit_ha_queues = $facts['os_service_default'],
$rabbit_quorum_queue = $facts['os_service_default'],
+ $rabbit_transient_quorum_queue = $facts['os_service_default'],
$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'],
@@ -264,6 +269,7 @@
kombu_failover_strategy => $kombu_failover_strategy,
kombu_compression => $kombu_compression,
rabbit_quorum_queue => $rabbit_quorum_queue,
+ rabbit_transient_quorum_queue => $rabbit_transient_quorum_queue,
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,
diff --git a/releasenotes/notes/rabbit_transient_quorum_queue-a8504d7433f48164.yaml b/releasenotes/notes/rabbit_transient_quorum_queue-a8504d7433f48164.yaml
new file mode 100644
index 0000000..e203653
--- /dev/null
+++ b/releasenotes/notes/rabbit_transient_quorum_queue-a8504d7433f48164.yaml
@@ -0,0 +1,5 @@
+---
+features:
+ - |
+ The new ``cloudkitty::rabbit_transient_quorum_queue`` parameter has been
+ added.
diff --git a/spec/classes/cloudkitty_init_spec.rb b/spec/classes/cloudkitty_init_spec.rb
index 029d00b..fb0e13d 100644
--- a/spec/classes/cloudkitty_init_spec.rb
+++ b/spec/classes/cloudkitty_init_spec.rb
@@ -43,6 +43,7 @@
:rabbit_ha_queues => '<SERVICE DEFAULT>',
:rabbit_retry_interval => '<SERVICE DEFAULT>',
:rabbit_quorum_queue => '<SERVICE DEFAULT>',
+ :rabbit_transient_quorum_queue => '<SERVICE DEFAULT>',
:rabbit_quorum_delivery_limit => '<SERVICE DEFAULT>',
:rabbit_quorum_max_memory_length => '<SERVICE DEFAULT>',
:rabbit_quorum_max_memory_bytes => '<SERVICE DEFAULT>',
@@ -77,6 +78,7 @@
:rabbit_heartbeat_rate => 10,
:rabbit_heartbeat_in_pthread => true,
:rabbit_quorum_queue => true,
+ :rabbit_transient_quorum_queue => false,
:rabbit_quorum_delivery_limit => 3,
:rabbit_quorum_max_memory_length => 5,
:rabbit_quorum_max_memory_bytes => 1073741824,
@@ -112,6 +114,7 @@
:kombu_compression => 'gzip',
:rabbit_ha_queues => true,
:rabbit_quorum_queue => true,
+ :rabbit_transient_quorum_queue => false,
:rabbit_quorum_delivery_limit => 3,
:rabbit_quorum_max_memory_length => 5,
:rabbit_quorum_max_memory_bytes => 1073741824,
|