aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/etc/rabbitmq/rabbitmq.config.j2
diff options
context:
space:
mode:
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2018-07-11 15:11:49 +0200
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2018-07-11 17:50:46 +0200
commit567573e86ad7a28961dd9e4086b3f1226c9ed0b0 (patch)
tree919b7614c1ceef0e748c31a8c9bb0f95c56996f4 /templates/etc/rabbitmq/rabbitmq.config.j2
parentf0d4a36933db49494d544dc7c801fc5beb8b584d (diff)
downloadansible-rabbitmq-567573e86ad7a28961dd9e4086b3f1226c9ed0b0.tar.gz
ansible-rabbitmq-567573e86ad7a28961dd9e4086b3f1226c9ed0b0.tar.zst
ansible-rabbitmq-567573e86ad7a28961dd9e4086b3f1226c9ed0b0.zip
add ssl listener supportadd_ssl_support
Diffstat (limited to 'templates/etc/rabbitmq/rabbitmq.config.j2')
-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].