diff --git a/ansible/roles/magnum/templates/magnum.conf.j2 b/ansible/roles/magnum/templates/magnum.conf.j2 index f195458403..aee0087734 100644 --- a/ansible/roles/magnum/templates/magnum.conf.j2 +++ b/ansible/roles/magnum/templates/magnum.conf.j2 @@ -3,6 +3,8 @@ debug = {{ magnum_logging_debug }} state_path = /var/lib/magnum log_dir = /var/log/kolla/magnum +host = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }} + transport_url = rabbit://{% for host in groups['rabbitmq'] %}{{ rabbitmq_user }}:{{ rabbitmq_password }}@{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ rabbitmq_port }}{% if not loop.last %},{% endif %}{% endfor %} {% if service_name == 'magnum-api' %}