Expose parameter to customize [oslo_messaging_notifications] retry

The parameter has been managed by puppet-oslo, but its value could not
be set via this module.

Change-Id: I4da1d7f1da63b761b91102007e566662c5707042
This commit is contained in:
Takashi Kajinami 2024-09-30 12:23:22 +09:00
parent 16290d4b56
commit 362a7ad0c7
3 changed files with 14 additions and 0 deletions

View File

@ -177,6 +177,11 @@
# (list value)
# Default to $facts['os_service_default']
#
# [*notification_retry*]
# (Optional) The maximum number of attempts to re-sent a notification
# message, which failed to be delivered due to a recoverable error.
# Defaults to $facts['os_service_default'].
#
# [*notification_format*]
# (Optional) Define the notification format for identity service events.
# Valid values are 'basic' and 'cadf'.
@ -413,6 +418,7 @@ class keystone(
$notification_transport_url = $facts['os_service_default'],
$notification_driver = $facts['os_service_default'],
$notification_topics = $facts['os_service_default'],
$notification_retry = $facts['os_service_default'],
$notification_format = $facts['os_service_default'],
$notification_opt_out = $facts['os_service_default'],
$control_exchange = $facts['os_service_default'],
@ -545,6 +551,7 @@ class keystone(
transport_url => $notification_transport_url,
driver => $notification_driver,
topics => $notification_topics,
retry => $notification_retry,
}
oslo::messaging::rabbit { 'keystone_config':

View File

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

View File

@ -64,6 +64,7 @@ describe 'keystone' do
:transport_url => '<SERVICE DEFAULT>',
:driver => '<SERVICE DEFAULT>',
:topics => '<SERVICE DEFAULT>',
:retry => '<SERVICE DEFAULT>',
)
is_expected.to contain_oslo__messaging__rabbit('keystone_config').with(
@ -300,6 +301,7 @@ describe 'keystone' do
:notification_transport_url => 'rabbit://user:pass@host:1234/virt',
:notification_driver => ['keystone.openstack.common.notifier.rpc_notifier'],
:notification_topics => ['notifications'],
:notification_retry => 10,
:control_exchange => 'keystone',
:rpc_response_timeout => 120,
:executor_thread_pool_size => 64,
@ -318,6 +320,7 @@ describe 'keystone' do
:transport_url => 'rabbit://user:pass@host:1234/virt',
:driver => ['keystone.openstack.common.notifier.rpc_notifier'],
:topics => ['notifications'],
:retry => 10,
)
}
end