From 7a25ce6626821fab16f34a971d1bc1ad804a1149 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 14 Mar 2024 09:44:39 +0900 Subject: [PATCH] Expose rabbit_transient_quorum_queue Depends-on: https://review.opendev.org/911021 Change-Id: Ifa8f02117e70c46bb2140e2e4f9196c110a556a0 --- manifests/init.pp | 6 ++++++ .../rabbit_transient_quorum_queue-a460a413e55f9484.yaml | 5 +++++ spec/classes/mistral_init_spec.rb | 1 + 3 files changed, 12 insertions(+) create mode 100644 releasenotes/notes/rabbit_transient_quorum_queue-a460a413e55f9484.yaml diff --git a/manifests/init.pp b/manifests/init.pp index 4501bdb..c82f6a2 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -67,6 +67,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 @@ -184,6 +188,7 @@ class mistral( $rabbit_heartbeat_rate = $facts['os_service_default'], $rabbit_heartbeat_in_pthread = $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'], @@ -257,6 +262,7 @@ class mistral( heartbeat_in_pthread => $rabbit_heartbeat_in_pthread, amqp_durable_queues => $amqp_durable_queues, 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-a460a413e55f9484.yaml b/releasenotes/notes/rabbit_transient_quorum_queue-a460a413e55f9484.yaml new file mode 100644 index 0000000..47bdfbd --- /dev/null +++ b/releasenotes/notes/rabbit_transient_quorum_queue-a460a413e55f9484.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + The new ``mistral::rabbit_transient_quorum_queue`` parameter has been + added. diff --git a/spec/classes/mistral_init_spec.rb b/spec/classes/mistral_init_spec.rb index afb33c6..dbf0d93 100644 --- a/spec/classes/mistral_init_spec.rb +++ b/spec/classes/mistral_init_spec.rb @@ -51,6 +51,7 @@ describe 'mistral' do :kombu_ssl_version => '', :rabbit_ha_queues => '', :rabbit_quorum_queue => '', + :rabbit_transient_quorum_queue => '', :rabbit_quorum_delivery_limit => '', :rabbit_quorum_max_memory_length => '', :rabbit_quorum_max_memory_bytes => '',