Add searchlight notification driver condition

Add condition to glance-api conf to update
oslo_messaging_notifications/driver to searchlight
required value if searchlight is listening glance.

Change-Id: Id7bd0c1d9270ef9442cc04c3db218e380a69bf9b
This commit is contained in:
Peter Razumovsky 2016-12-21 12:05:58 +04:00
parent 15016778ac
commit d6e70a0692
1 changed files with 4 additions and 0 deletions

View File

@ -63,4 +63,8 @@ disk_formats = raw
{% endif %}
[oslo_messaging_notifications]
{% if searchlight is defined and searchlight.service.glance %}
driver = {{ searchlight.notification_driver }}
{% else %}
driver = noop
{% endif %}