From 7829aa27b316ea69cb782ac89d705a3a731ba247 Mon Sep 17 00:00:00 2001 From: Proskurin Kirill Date: Fri, 4 Mar 2016 14:46:01 +0300 Subject: [PATCH] Add quotes for RBMQ nodes definition erlang parser, cant parse hostname with minus symbol, it returns: Ignoring external configuration due to error: {1,erl_parse,"bad term"} Adding single quotes fix this issue. Co-Authored-By: weiyu Closes-Bug: #1540234 Change-Id: I80e0789aa31febd552a851e6dc3a835d89c0e9d1 --- ansible/roles/rabbitmq/templates/rabbitmq_clusterer.config.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/rabbitmq/templates/rabbitmq_clusterer.config.j2 b/ansible/roles/rabbitmq/templates/rabbitmq_clusterer.config.j2 index fe199394a0..a50ce84eae 100644 --- a/ansible/roles/rabbitmq/templates/rabbitmq_clusterer.config.j2 +++ b/ansible/roles/rabbitmq/templates/rabbitmq_clusterer.config.j2 @@ -1,9 +1,9 @@ [ {version, 1}, {nodes, [ -{% for host in groups['rabbitmq'] %} {rabbit@{{ hostvars[host]['ansible_hostname'] }}, disc}{% if not loop.last %},{% endif %} +{% for host in groups['rabbitmq'] %} {'rabbit@{{ hostvars[host]['ansible_hostname'] }}', disc}{% if not loop.last %},{% endif %} {% endfor %} ]}, - {gospel, {node, rabbit@{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}}} + {gospel, {node, 'rabbit@{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}'}} ].