diff --git a/exports/oslo_messaging.j2 b/exports/oslo_messaging.j2 new file mode 100644 index 0000000..fa869b3 --- /dev/null +++ b/exports/oslo_messaging.j2 @@ -0,0 +1,8 @@ +{% macro rabbit(cfg_type) -%} +{% if cfg_type == 'rpc_config' -%} + [DEFAULT] +{%- elif cfg_type == 'notifications_config' -%} + [oslo_messaging_notifications] +{%- endif %} +transport_url=rabbit://{{ rabbitmq.user }}:{{ rabbitmq.password }}@{{ address('rabbitmq') }} +{%- endmacro %} diff --git a/service/files/defaults.yaml b/service/files/defaults.yaml index 1495def..209b8d3 100644 --- a/service/files/defaults.yaml +++ b/service/files/defaults.yaml @@ -1,4 +1,10 @@ configs: + messaging: + backend: + rpc: rabbit + notifications: rabbit + dependencies: + rabbit: rabbitmq rabbitmq: port: cont: 5672