diff --git a/manifests/init.pp b/manifests/init.pp index 861b4db9..d9a5fe03 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -56,6 +56,12 @@ # (optional) What RPC queue/exchange to use (string value) # Defaults to $::os_service_default # +# [*default_transport_url*] +# (optional) A URL representing the messaging driver to use and its full +# configuration. Transport URLs take the form: +# transport://user:pass@host1:port[,hostN:portN]/virtual_host +# Defaults to $::os_service_default +# # [*rpc_backend*] # (optional) what rpc/queuing service to use (string value) # Defaults to $::os_service_default @@ -296,6 +302,7 @@ class ironic ( $enabled_drivers = ['pxe_ipmitool'], $control_exchange = $::os_service_default, $rpc_response_timeout = $::os_service_default, + $default_transport_url = $::os_service_default, $rpc_backend = $::os_service_default, $rabbit_host = $::os_service_default, $rabbit_hosts = $::os_service_default, @@ -415,6 +422,7 @@ class ironic ( } oslo::messaging::default {'ironic_config': + transport_url => $default_transport_url, rpc_response_timeout => $rpc_response_timeout, control_exchange => $control_exchange, } diff --git a/releasenotes/notes/add_transport_url_parameter-61fed8f4428a1b8e.yaml b/releasenotes/notes/add_transport_url_parameter-61fed8f4428a1b8e.yaml new file mode 100644 index 00000000..08f8df0b --- /dev/null +++ b/releasenotes/notes/add_transport_url_parameter-61fed8f4428a1b8e.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add oslo.messaging transport_url parameter via puppet-oslo resource \ No newline at end of file diff --git a/spec/classes/ironic_init_spec.rb b/spec/classes/ironic_init_spec.rb index d1f8650f..4dc2e968 100644 --- a/spec/classes/ironic_init_spec.rb +++ b/spec/classes/ironic_init_spec.rb @@ -126,6 +126,7 @@ describe 'ironic' do is_expected.to contain_ironic_config('DEFAULT/my_ip').with_value('') is_expected.to contain_ironic_config('DEFAULT/rpc_response_timeout').with_value('') is_expected.to contain_ironic_config('DEFAULT/control_exchange').with_value('') + is_expected.to contain_ironic_config('DEFAULT/transport_url').with_value('') end end