aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/etc/rabbitmq/rabbitmq.config.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/etc/rabbitmq/rabbitmq.config.j2')
-rw-r--r--templates/etc/rabbitmq/rabbitmq.config.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/etc/rabbitmq/rabbitmq.config.j2 b/templates/etc/rabbitmq/rabbitmq.config.j2
new file mode 100644
index 0000000..97ae132
--- /dev/null
+++ b/templates/etc/rabbitmq/rabbitmq.config.j2
@@ -0,0 +1,9 @@
1[
2 {rabbit, [
3{% if rabbitmq_listeners is not defined %}
4 {tcp_listeners, [{{ rabbitmq_listen_port }}]}
5{% elif rabbitmq_listeners is defined %}
6 {tcp_listeners, [{% for item in rabbitmq_listeners %}{"{{ item }}", {{ rabbitmq_listen_port }}}{% if not loop.last %}, {% endif %}{% endfor %}]}
7{% endif %}
8 ]}
9].