...
|
...
|
@@ -137,11 +137,11 @@ union.redis IN A 10.66.4.127 |
|
|
|
|
|
;hosts
|
|
|
gateway IN A {{ groups['java-gateway'][0] }}
|
|
|
zk01 IN A {{ groups['zookeeper'][0] }}
|
|
|
zk02 IN A {% if groups['zookeeper'] | length > 1 %} {{ groups['zookeeper'][1] }} {% else %} {{ groups['zookeeper'][0] }}{% endif %}
|
|
|
zk03 IN A {% if groups['zookeeper'] | length > 2 %} {{ groups['zookeeper'][2] }} {% else %} {{ groups['zookeeper'][0] }}{% endif %}
|
|
|
zk04 IN A {% if groups['zookeeper'] | length > 3 %} {{ groups['zookeeper'][3] }} {% else %} {{ groups['zookeeper'][0] }}{% endif %}
|
|
|
zk05 IN A {% if groups['zookeeper'] | length > 4 %} {{ groups['zookeeper'][4] }} {% else %} {{ groups['zookeeper'][0] }}{% endif %}
|
|
|
zk01 IN A {{ zookeeper[1] }}
|
|
|
zk02 IN A {{ zookeeper[2] }}
|
|
|
zk03 IN A {{ zookeeper[3] }}
|
|
|
zk04 IN A {{ zookeeper[4] }}
|
|
|
zk05 IN A {{ zookeeper[5] }}
|
|
|
|
|
|
;java rabbitmq
|
|
|
rabbit.order.dc1 IN A 10.66.4.234
|
...
|
...
|
|