Authored by chunhua.zhang

no message

@@ -52,3 +52,10 @@ redis: @@ -52,3 +52,10 @@ redis:
52 java: 10.66.4.161 52 java: 10.66.4.161
53 gateway: 10.66.4.200 53 gateway: 10.66.4.200
54 search: 10.66.4.249 54 search: 10.66.4.249
  55 +
  56 +zookeeper:
  57 + - 10.66.4.161
  58 + - 10.66.4.162
  59 + - 10.66.4.163
  60 + - 10.66.4.164
  61 + - 10.66.4.165
@@ -32,7 +32,3 @@ @@ -32,7 +32,3 @@
32 [java-union] 32 [java-union]
33 10.66.4.95 33 10.66.4.95
34 34
35 -  
36 -  
37 -[zookeeper]  
38 -10.66.4.95  
@@ -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