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