diff --git a/manifests/init.pp b/manifests/init.pp index ab9792ba..a161971a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -64,6 +64,11 @@ # transport://user:pass@host1:port[,hostN:portN]/virtual_host # Defaults to $::os_service_default. # +# [*notification_topics*] +# (optional) AMQP topics to publish to when using the RPC notification driver. +# (list value) +# Default to $::os_service_default +# # [*notification_driver*] # (optional) Driver or drivers to handle sending notifications. # Defaults to 'messaging' @@ -260,6 +265,7 @@ class manila ( $control_exchange = 'openstack', $notification_transport_url = $::os_service_default, $notification_driver = 'messaging', + $notification_topics = $::os_service_default, $rabbit_ha_queues = $::os_service_default, $rabbit_use_ssl = $::os_service_default, $kombu_ssl_ca_certs = $::os_service_default, @@ -398,6 +404,7 @@ deprecated. Please use manila::default_transport_url instead.") oslo::messaging::notifications { 'manila_config': transport_url => $notification_transport_url, driver => $notification_driver, + topics => $notification_topics, } manila_config { diff --git a/releasenotes/notes/add_messaging_notification_parameters-71a4983f237e3199.yaml b/releasenotes/notes/add_messaging_notification_parameters-71a4983f237e3199.yaml new file mode 100644 index 00000000..eeebad97 --- /dev/null +++ b/releasenotes/notes/add_messaging_notification_parameters-71a4983f237e3199.yaml @@ -0,0 +1,4 @@ +--- +features: + - Add new parameter "notification_topics", AMQP topic used for + OpenStack notifications. diff --git a/spec/classes/manila_init_spec.rb b/spec/classes/manila_init_spec.rb index 54a7c608..6a7bcc41 100644 --- a/spec/classes/manila_init_spec.rb +++ b/spec/classes/manila_init_spec.rb @@ -39,6 +39,9 @@ describe 'manila' do is_expected.to contain_manila_config('oslo_messaging_notifications/transport_url').with( :value => '' ) + is_expected.to contain_manila_config('oslo_messaging_notifications/topics').with( + :value => '' + ) is_expected.to contain_manila_config('oslo_messaging_notifications/driver').with( :value => 'messaging' )