diff --git a/templates/magnum.conf.j2 b/templates/magnum.conf.j2 index 6ea8d91..85eeb13 100644 --- a/templates/magnum.conf.j2 +++ b/templates/magnum.conf.j2 @@ -75,7 +75,7 @@ region_name = {{ magnum_nova_service_region }} endpoint_type = internalURL [oslo_messaging_notifications] -driver = {% if magnum_ceilometer_enabled %}messagingv2{% else %}noop{% endif %} +driver = {{ (magnum_ceilometer_enabled | bool) | ternary('messagingv2', 'noop') }} transport_url = {{ magnum_oslomsg_notify_transport }}://{% for host in magnum_oslomsg_notify_servers.split(',') %}{{ magnum_oslomsg_notify_userid }}:{{ magnum_oslomsg_notify_password }}@{{ host }}:{{ magnum_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ magnum_oslomsg_notify_vhost }}{% if magnum_oslomsg_notify_use_ssl | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %} [oslo_messaging_rabbit]