Add searchlight notification driver condition

Add condition to cinder conf to update
oslo_messaging_notifications/driver to searchlight
required value if searchlight is listening cinder.

Change-Id: I8efed6bd223489545adb9f7a59fb1f05aa445af5
This commit is contained in:
Peter Razumovsky 2016-12-21 12:22:29 +04:00
parent 445083f0c6
commit 67d5ab16d6
1 changed files with 5 additions and 0 deletions

View File

@ -54,3 +54,8 @@ rbd_ceph_conf = /etc/ceph/ceph.conf
[privsep_entrypoint]
helper_command=sudo cinder-rootwrap /etc/cinder/rootwrap.conf privsep-helper --config-file /etc/cinder/cinder.conf
{% if searchlight is defined and searchlight.services.cinder %}
[oslo_messaging_notifications]
driver = {{ searchlight.notification_driver }}
{% endif %}