Expose rabbit_qos_prefetch_count

The option was supported by puppet-oslo but was not configurable via
this module.

Change-Id: I820ee7850fcd5561483a1b570e6c1ad3a2cc758a
This commit is contained in:
Takashi Kajinami 2024-09-13 11:31:36 +09:00
parent 2d6a4ec9dd
commit afe457b831
3 changed files with 11 additions and 0 deletions

View File

@ -153,6 +153,10 @@
# will be run through a green thread.
# Defaults to $facts['os_service_default']
#
# [*rabbit_qos_prefetch_count*]
# (Optional) Specifies the number of messages to prefetch.
# Defaults to $facts['os_service_default']
#
# [*report_interval*]
# (optional) Seconds between nodes reporting state to datastore.
# Defaults to $facts['os_service_default']
@ -192,6 +196,7 @@ class manila (
$kombu_failover_strategy = $facts['os_service_default'],
$amqp_durable_queues = $facts['os_service_default'],
$rabbit_heartbeat_in_pthread = $facts['os_service_default'],
$rabbit_qos_prefetch_count = $facts['os_service_default'],
$package_ensure = 'present',
Boolean $use_ssl = false,
$ca_file = false,
@ -242,6 +247,7 @@ class manila (
kombu_ssl_version => $kombu_ssl_version,
kombu_failover_strategy => $kombu_failover_strategy,
heartbeat_in_pthread => $rabbit_heartbeat_in_pthread,
rabbit_qos_prefetch_count => $rabbit_qos_prefetch_count,
rabbit_quorum_queue => $rabbit_quorum_queue,
rabbit_transient_quorum_queue => $rabbit_transient_quorum_queue,
rabbit_quorum_delivery_limit => $rabbit_quorum_delivery_limit,

View File

@ -0,0 +1,4 @@
---
features:
- |
The new ``manila::rabbit_qos_prefetch_count`` parameter has been added.

View File

@ -38,6 +38,7 @@ describe 'manila' do
:rabbit_ha_queues => '<SERVICE DEFAULT>',
:kombu_failover_strategy => '<SERVICE DEFAULT>',
:heartbeat_in_pthread => '<SERVICE DEFAULT>',
:rabbit_qos_prefetch_count => '<SERVICE DEFAULT>',
:rabbit_quorum_queue => '<SERVICE DEFAULT>',
:rabbit_transient_quorum_queue => '<SERVICE DEFAULT>',
:rabbit_quorum_delivery_limit => '<SERVICE DEFAULT>',