Fix oslo notifications configs
- enable glance-registry notifications ( searchlight ) - notification_driver is `noop` by default (means no notifications), so we can remove the `else` condition branch. - this macros > {{ oslomessaging[messaging.backend.notifications]('notifications_config') }} should not depend on notifications consumer (searchlight, ceilometer, etc), it is just notifications transport backend-related config and must be commmon for all. Change-Id: I16e9d604cb3d69e14d2124fb2ad4f603f86a87aa
This commit is contained in:
parent
6bc30fc525
commit
5e9f301e33
@ -62,10 +62,9 @@ container_formats = bare
|
||||
disk_formats = raw
|
||||
{% endif %}
|
||||
|
||||
[oslo_messaging_notifications]
|
||||
{% if searchlight is defined and searchlight.services.glance %}
|
||||
driver = {{ searchlight.notification_driver }}
|
||||
{{ oslo_messaging[messaging.backend.notifications]('notifications_config') }}
|
||||
{% else %}
|
||||
driver = noop
|
||||
{% endif %}
|
||||
{% if searchlight is defined and searchlight.services.glance -%}
|
||||
[oslo_messaging_notifications]
|
||||
driver = {{ searchlight.notification_driver }}
|
||||
{%- endif %}
|
||||
|
||||
{{ oslomessaging[messaging.backend.notifications]('notifications_config') }}
|
||||
|
@ -26,5 +26,9 @@ memcached_servers = {{ address('memcached', memcached.port) }}
|
||||
[paste_deploy]
|
||||
flavor = keystone
|
||||
|
||||
[oslo_messaging_notifications]
|
||||
driver = noop
|
||||
{% if searchlight is defined and searchlight.services.glance -%}
|
||||
[oslo_messaging_notifications]
|
||||
driver = {{ searchlight.notification_driver }}
|
||||
{%- endif %}
|
||||
|
||||
{{ oslomessaging[messaging.backend.notifications]('notifications_config') }}
|
||||
|
Loading…
Reference in New Issue
Block a user