aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/etc
diff options
context:
space:
mode:
Diffstat (limited to 'templates/etc')
-rw-r--r--templates/etc/rabbitmq/rabbitmq.config.j218
1 files changed, 17 insertions, 1 deletions
diff --git a/templates/etc/rabbitmq/rabbitmq.config.j2 b/templates/etc/rabbitmq/rabbitmq.config.j2
index 97ae132..c2d836a 100644
--- a/templates/etc/rabbitmq/rabbitmq.config.j2
+++ b/templates/etc/rabbitmq/rabbitmq.config.j2
@@ -1,9 +1,25 @@
1[ 1[
2 {rabbit, [ 2 {rabbit, [
3{% if rabbitmq_listeners is not defined %} 3{% if rabbitmq_listeners is not defined or (rabbitmq_listeners | length) == 0 %}
4 {tcp_listeners, [{{ rabbitmq_listen_port }}]} 4 {tcp_listeners, [{{ rabbitmq_listen_port }}]}
5{% elif rabbitmq_listeners is defined %} 5{% elif rabbitmq_listeners is defined %}
6 {tcp_listeners, [{% for item in rabbitmq_listeners %}{"{{ item }}", {{ rabbitmq_listen_port }}}{% if not loop.last %}, {% endif %}{% endfor %}]} 6 {tcp_listeners, [{% for item in rabbitmq_listeners %}{"{{ item }}", {{ rabbitmq_listen_port }}}{% if not loop.last %}, {% endif %}{% endfor %}]}
7{% endif %} 7{% endif %}
8{% if rabbitmq_ssl_enable %}
9 ,
10 {num_ssl_acceptors, 10},
11{% if rabbitmq_ssl_listeners is not defined or (rabbitmq_ssl_listeners | length) == 0 %}
12 {ssl_listeners, [{{ rabbitmq_ssl_port }}]},
13{% elif rabbitmq_listeners is defined %}
14 {tcp_listeners, [{% for item in rabbitmq_ssl_listeners %}{"{{ item }}", {{ rabbitmq_ssl_port }}}{% if not loop.last %}, {% endif %}{% endfor %}]},
15{% endif %}
16{% if rabbitmq_ssl_options is defined and (rabbitmq_ssl_options | length ) > 0 %}
17 {ssl_options, [
18{% for key in rabbitmq_ssl_options %}
19 { {{ key }}, {{ rabbitmq_ssl_options[key] }}}{% if not loop.last %}, {% endif %}
20{% endfor %}
21 ]}
22{% endif %}
23{% endif %}
8 ]} 24 ]}
9]. 25].