forked from coveooss/ansible-rabbitmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rabbitmq.conf.j2
41 lines (35 loc) · 1.56 KB
/
rabbitmq.conf.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
## ======================================
## RabbitMQ broker section - {{ ansible_managed }}
## ======================================
## Related doc guide: https://rabbitmq.com/configure.html. See
## https://rabbitmq.com/documentation.html for documentation ToC.
## Networking
## ====================
listeners.tcp.default = {{ rabbitmq_conf_tcp_listeners_address ~ ":" if rabbitmq_conf_tcp_listeners_address is defined and rabbitmq_conf_tcp_listeners_address|ipaddr else ":::" }}{{ rabbitmq_conf_tcp_listeners_port | default("5672")}}
num_acceptors.tcp = {{ rabbitmq_conf_num_acceptors_tcp | default("10")}}
{% if rabbitmq_newrelic_agent_enabled %}
##
## Security, Access Control
## ==============
loopback_users.{{ rabbitmq_newrelic_username }} = true
{% endif %}
##
## Resource Limits & Flow Control
## ==============================
{% if not ('vm_memory_high_watermark.absolute' in rabbitmq_conf_extra_settings or 'vm_memory_high_watermark.relative' in rabbitmq_conf_extra_settings) %}
vm_memory_high_watermark.relative = {{ rabbitmq_conf_vm_memory_high_watermark | default ("0.4")}}
{% endif %}
{% if not ('disk_free_limit.absolute' in rabbitmq_conf_extra_settings or 'disk_free_limit.relative' in rabbitmq_conf_extra_settings) %}
disk_free_limit.relative = {{ rabbitmq_conf_disk_free_limit_mem_relative }}
{% endif %}
##
## Log Level
## =====================
log.file.level = {{ rabbitmq_default_loglevel }}
##
## Additional settings
## =====================
## setting = value
{% for setting, value in rabbitmq_conf_extra_settings.items() %}
{{ setting }} = {{ value }}
{% endfor %}