kolla-ansible/ansible/roles/rabbitmq/templates/rabbitmq-env.conf.j2
Sam Yaple fe2e454f26 Fix RabbitMQ for Ubuntu
In rabbitmq we removed the requirement for hostname since that is
already installed.

Change-Id: Ia2355e332d53763db630d19663c2ddc8bf3aa425
Paritially-Implements: blueprint install-from-ubuntu
2015-08-20 14:43:32 +00:00

8 lines
317 B
Django/Jinja

RABBITMQ_NODENAME=rabbit
# See bug https://bugs.launchpad.net/ubuntu/+source/erlang/+bug/1374109
{% if not kolla_base_distro in ['ubuntu', 'debian'] %}
export ERL_EPMD_ADDRESS={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
{% endif %}
export ERL_EPMD_PORT={{ rabbitmq_epmd_port }}