Merge "Expose parameter to customize [oslo_messaging_notifications] retry"
This commit is contained in:
commit
686621ffee
@ -252,6 +252,13 @@
|
||||
# in the neutron config.
|
||||
# Defaults to false.
|
||||
#
|
||||
# [*notification_transport_url*]
|
||||
# (optional) A URL representing the messaging driver to use for
|
||||
# notifications and its full configuration. Transport URLs
|
||||
# take the form:
|
||||
# transport://user:pass@host1:port[,hostN:portN]/virtual_host
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*notification_driver*]
|
||||
# (optional) Driver or drivers to handle sending notifications.
|
||||
# Value can be a string or a list.
|
||||
@ -261,11 +268,9 @@
|
||||
# (optional) AMQP topic used for OpenStack notifications
|
||||
# Defaults to facts['os_service_default']
|
||||
#
|
||||
# [*notification_transport_url*]
|
||||
# (optional) A URL representing the messaging driver to use for
|
||||
# notifications and its full configuration. Transport URLs
|
||||
# take the form:
|
||||
# transport://user:pass@host1:port[,hostN:portN]/virtual_host
|
||||
# [*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'].
|
||||
#
|
||||
# [*max_allowed_address_pair*]
|
||||
@ -328,9 +333,10 @@ class neutron (
|
||||
$state_path = $facts['os_service_default'],
|
||||
$lock_path = '$state_path/lock',
|
||||
Boolean $purge_config = false,
|
||||
$notification_transport_url = $facts['os_service_default'],
|
||||
$notification_driver = $facts['os_service_default'],
|
||||
$notification_topics = $facts['os_service_default'],
|
||||
$notification_transport_url = $facts['os_service_default'],
|
||||
$notification_retry = $facts['os_service_default'],
|
||||
$max_allowed_address_pair = $facts['os_service_default'],
|
||||
$vlan_transparent = $facts['os_service_default'],
|
||||
) {
|
||||
@ -395,9 +401,10 @@ class neutron (
|
||||
oslo::concurrency { 'neutron_config': lock_path => $lock_path }
|
||||
|
||||
oslo::messaging::notifications { 'neutron_config':
|
||||
transport_url => $notification_transport_url,
|
||||
driver => $notification_driver,
|
||||
topics => $notification_topics,
|
||||
transport_url => $notification_transport_url,
|
||||
retry => $notification_retry,
|
||||
}
|
||||
|
||||
neutron_config {
|
||||
|
@ -56,6 +56,7 @@ describe 'neutron' do
|
||||
:transport_url => '<SERVICE DEFAULT>',
|
||||
:driver => '<SERVICE DEFAULT>',
|
||||
:topics => '<SERVICE DEFAULT>',
|
||||
:retry => '<SERVICE DEFAULT>',
|
||||
)
|
||||
end
|
||||
|
||||
@ -145,6 +146,7 @@ describe 'neutron' do
|
||||
:notification_transport_url => 'rabbit://rabbit_user:password@localhost:5673',
|
||||
:notification_driver => 'mesagingv2',
|
||||
:notification_topics => 'notifications',
|
||||
:notification_retry => 10,
|
||||
)
|
||||
end
|
||||
|
||||
@ -153,6 +155,7 @@ describe 'neutron' do
|
||||
:transport_url => params[:notification_transport_url],
|
||||
:driver => params[:notification_driver],
|
||||
:topics => params[:notification_topics],
|
||||
:retry => params[:notification_retry],
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user