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: I19e98c7c722bfd6c00d7ed3e20290ed89c5d6ee9
This commit is contained in:
		@@ -120,7 +120,7 @@
 | 
			
		||||
#   Defaults to $facts['os_service_default']
 | 
			
		||||
#
 | 
			
		||||
# [*notification_transport_url*]
 | 
			
		||||
#   (optional) A URL representing the messaging driver to use for notifications
 | 
			
		||||
#   (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']
 | 
			
		||||
@@ -131,9 +131,14 @@
 | 
			
		||||
#   Defaults to $facts['os_service_default']
 | 
			
		||||
#
 | 
			
		||||
# [*notification_topics*]
 | 
			
		||||
#   (optional) AMQP topic used for OpenStack notifications
 | 
			
		||||
#   (Optional) AMQP topic used for OpenStack notifications
 | 
			
		||||
#   Defaults 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'].
 | 
			
		||||
#
 | 
			
		||||
# [*purge_config*]
 | 
			
		||||
#   (optional) Whether to set only the specified config options
 | 
			
		||||
#   in the cloudkitty config.
 | 
			
		||||
@@ -207,12 +212,13 @@ class cloudkitty(
 | 
			
		||||
  $kombu_failover_strategy            = $facts['os_service_default'],
 | 
			
		||||
  $kombu_compression                  = $facts['os_service_default'],
 | 
			
		||||
  $amqp_durable_queues                = $facts['os_service_default'],
 | 
			
		||||
  $notification_driver                = $facts['os_service_default'],
 | 
			
		||||
  $notification_topics                = $facts['os_service_default'],
 | 
			
		||||
  $default_transport_url              = $facts['os_service_default'],
 | 
			
		||||
  $rpc_response_timeout               = $facts['os_service_default'],
 | 
			
		||||
  $control_exchange                   = $facts['os_service_default'],
 | 
			
		||||
  $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'],
 | 
			
		||||
  Boolean $purge_config               = false,
 | 
			
		||||
  $auth_strategy                      = 'keystone',
 | 
			
		||||
  $api_paste_config                   = $facts['os_service_default'],
 | 
			
		||||
@@ -274,6 +280,7 @@ class cloudkitty(
 | 
			
		||||
    transport_url => $notification_transport_url,
 | 
			
		||||
    driver        => $notification_driver,
 | 
			
		||||
    topics        => $notification_topics,
 | 
			
		||||
    retry         => $notification_retry,
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  cloudkitty_config {
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,4 @@
 | 
			
		||||
---
 | 
			
		||||
features:
 | 
			
		||||
  - |
 | 
			
		||||
    The new ``cloudkitty::notification_retry`` parameter has been added.
 | 
			
		||||
@@ -51,7 +51,8 @@ describe 'cloudkitty' do
 | 
			
		||||
        is_expected.to contain_oslo__messaging__notifications('cloudkitty_config').with(
 | 
			
		||||
          :transport_url => '<SERVICE DEFAULT>',
 | 
			
		||||
          :driver        => '<SERVICE DEFAULT>',
 | 
			
		||||
          :topics        => '<SERVICE DEFAULT>'
 | 
			
		||||
          :topics        => '<SERVICE DEFAULT>',
 | 
			
		||||
          :retry         => '<SERVICE DEFAULT>',
 | 
			
		||||
        )
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
@@ -84,11 +85,13 @@ describe 'cloudkitty' do
 | 
			
		||||
          :amqp_durable_queues                => true,
 | 
			
		||||
          :kombu_compression                  => 'gzip',
 | 
			
		||||
          :package_ensure                     => '2012.1.1-15.el6',
 | 
			
		||||
          :notification_driver                => 'messagingv1',
 | 
			
		||||
          :notification_topics                => 'openstack',
 | 
			
		||||
          :default_transport_url              => 'rabbit://rabbit_user:password@localhost:5673',
 | 
			
		||||
          :rpc_response_timeout               => '120',
 | 
			
		||||
          :control_exchange                   => 'cloudkitty',
 | 
			
		||||
          :notification_transport_url         => 'rabbit://rabbit_user:password@localhost:5673',
 | 
			
		||||
          :notification_driver                => 'messagingv1',
 | 
			
		||||
          :notification_topics                => 'openstack',
 | 
			
		||||
          :notification_retry                 => 10,
 | 
			
		||||
          :storage_backend                    => 'gnocchi',
 | 
			
		||||
          :storage_version                    => '1',
 | 
			
		||||
        }
 | 
			
		||||
@@ -115,9 +118,10 @@ describe 'cloudkitty' do
 | 
			
		||||
          :enable_cancel_on_failover       => false,
 | 
			
		||||
        )
 | 
			
		||||
        is_expected.to contain_oslo__messaging__notifications('cloudkitty_config').with(
 | 
			
		||||
          :transport_url => '<SERVICE DEFAULT>',
 | 
			
		||||
          :transport_url => 'rabbit://rabbit_user:password@localhost:5673',
 | 
			
		||||
          :driver        => 'messagingv1',
 | 
			
		||||
          :topics        => 'openstack'
 | 
			
		||||
          :topics        => 'openstack',
 | 
			
		||||
          :retry         => 10,
 | 
			
		||||
        )
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user