Add notifications support

The change does not enable notifications, just configure right
transport url for it via oslo_messaging template.

Change-Id: I466404295a34fd7f4232e728469280b188ccf9af
This commit is contained in:
Kirill Bespalov 2017-01-17 15:41:14 +03:00
parent b816b9d22e
commit c01a53c6df
2 changed files with 5 additions and 2 deletions

View File

@ -27,8 +27,8 @@ provider = fernet
driver = sql
{% if keystone.notifications.enable %}
{# This section should be updated after https://review.openstack.org/#/c/419995/ is merged #}
[oslo_messaging_notifications]
driver = messagingv2
transport_url = rabbit://{{ rabbitmq.user }}:{{ rabbitmq.password }}@{{ address('rabbitmq', rabbitmq.port) }}
{% endif %}
{{ oslo_messaging[messaging.backend.notifications]('notifications_config') }}

View File

@ -53,6 +53,9 @@ service:
daemon:
dependencies:
- memcached
# {% if keystone.notifications.enable -%}
- "{{ messaging.dependencies[messaging.backend.notifications] }}"
# {%- endif %}
files:
- keystone-conf
- wsgi-keystone-conf