From 2a9ecd84e60db02a0a7bc2b44f1b3ed1bf3bec55 Mon Sep 17 00:00:00 2001 From: Cornelio Hopmann Date: Thu, 19 Jan 2017 23:18:07 +0100 Subject: [PATCH] Fix magnum [DEFAULT] configuration. Change-Id: Icef8d2ec95629a78ba761778df2f92ef9494d166 Closes-Bug: #1657894 --- ansible/roles/magnum/templates/magnum.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) 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' %}