Authored by chunhua.zhang

no message

... ... @@ -52,3 +52,10 @@ redis:
java: 10.66.4.161
gateway: 10.66.4.200
search: 10.66.4.249
zookeeper:
- 10.66.4.161
- 10.66.4.162
- 10.66.4.163
- 10.66.4.164
- 10.66.4.165
\ No newline at end of file
... ...
... ... @@ -32,7 +32,3 @@
[java-union]
10.66.4.95
[zookeeper]
10.66.4.95
\ No newline at end of file
... ...
---
# tasks file for yoho.
- name: sync bind9 zone files
template:
src: qcloud.zone.j2
... ...
... ... @@ -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
... ...