aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/etc/rabbitmq/rabbitmq.config.j2
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.com>2017-05-20 21:14:18 -0400
committerLarry Smith Jr <mrlesmithjr@gmail.com>2017-05-20 21:14:18 -0400
commit20533910cdf86ea72b378a5ed3949202af785e1b (patch)
tree0fb18596082e789d50a7cbdba1316c48b83425d7 /templates/etc/rabbitmq/rabbitmq.config.j2
parent3a55d2ab8ab3a399faaf25c4f46e7f2ea142edc6 (diff)
downloadansible-rabbitmq-20533910cdf86ea72b378a5ed3949202af785e1b.tar.gz
ansible-rabbitmq-20533910cdf86ea72b378a5ed3949202af785e1b.tar.zst
ansible-rabbitmq-20533910cdf86ea72b378a5ed3949202af785e1b.zip
Added ability to do some initial configs for issue #9
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
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].