openstack-ansible-rabbitmq_.../templates/rabbitmq-env.j2
Niklas Schwarz 83d8ec2a30 Add ability to set environment variable RABBITMQ_USE_LONGNAMES
Add ability to set the environment variable RABBITMQ_USE_LONGNAMES
via the rabbitmq-env.conf to be able to use the FQDN for a node

Change-Id: I766bdbe847eb24010bfe9912f07e89d78bbc1bed
2023-11-16 11:32:37 +01:00

13 lines
454 B
Django/Jinja

# {{ ansible_managed }}
# Set ERLANG VM parameters
NODENAME=rabbit@{{ ansible_facts['fqdn'] if rabbitmq_env_use_longname else ansible_facts['hostname'] }}
RABBITMQ_IO_THREAD_POOL_SIZE={{ rabbitmq_async_threads }}
RABBITMQ_SERVER_ERL_ARGS="+P {{ rabbitmq_process_limit }}"
USE_LONGNAME={{ rabbitmq_env_use_longname | bool | lower }}
{% if rabbitmq_erlang_extra_args %}
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="{{ rabbitmq_erlang_extra_args }}"
{% endif %}