Authored by chunhua.zhang

add

... ... @@ -35,4 +35,9 @@ java.inner.lb: 10.66.4.112
#rabbitmq
java.rabbit.common.local: 10.66.4.112
java.rabbit.order.local: 10.66.4.234
\ No newline at end of file
java.rabbit.order.local: 10.66.4.234
#redis
redis.java: 10.66.4.161
redis.gateway: 10.66.4.200
redis.search: 10.66.4.249
... ...
... ... @@ -93,3 +93,10 @@
10.66.70.139
10.66.70.12
[zookeeper]
10.66.4.9
10.66.4.8
10.66.4.4
10.66.4.5
10.66.4.3
... ...
---
nameserver_timeout: 1
dc: qcloud-az1
# database info: using to generate bind9 dns config file. very important !!
db.cms.write: 10.66.0.99
db.cms.read: 10.66.6.7
db.passport.write: 10.66.0.105
db.passport.read: 10.66.6.8
db.shops.write: 10.66.0.213
db.shops.read: 10.66.6.10
db.order.write: 10.66.0.170
db.order.read: 10.66.6.9
db.message.write: 10.67.2.103
db.message.read: 10.66.106.5
db.uic.write: 10.66.6.136
db.uic.read: 10.66.106.12
db.ordersplit.1.write: 10.66.0.57
db.ordersplit.2.write: 10.66.0.81
db.ordersplit.3.write: 10.66.0.98
db.ordersplit.4.write: 10.66.0.121
db.ordersplit.1.read: 10.66.0.57
db.ordersplit.2.read: 10.66.0.81
db.ordersplit.3.read: 10.66.0.98
db.ordersplit.4.read: 10.66.0.121
db.search: 10.66.6.6
db.mongo: 10.66.6.19
# java inner load balancer
java.inner.lb: 10.66.4.112
#rabbitmq
java.rabbit.common.local: 10.66.4.112
java.rabbit.order.local: 10.66.4.234
#redis
redis.java: 10.66.4.161
redis.gateway: 10.66.4.200
redis.search: 10.66.4.249
 
\ No newline at end of file
... ...
... ... @@ -32,3 +32,7 @@
[java-union]
10.66.4.95
[zookeeper]
10.66.4.95
\ No newline at end of file
... ...
---
# tasks file for yoho.dns
\ No newline at end of file
# tasks file for yoho.
- name: sync bind9 zone files
template:
src: qcloud.zone.j2
dest: /tmp/qlcoud.zone
\ No newline at end of file
... ...
... ... @@ -122,11 +122,11 @@ bigdata.redis.push.aws IN A 10.67.3.135
bigdata.redis.push IN A 10.67.3.135
redis.nginx IN A 10.66.4.80
redis.global IN A 10.66.4.161
redis.java IN A 10.66.4.161
redis.gateway IN A 10.66.4.200
redis.java IN A {{ redis.java }}
redis.gateway IN A {{ redis.gateway }}
redis.bigdata IN A 10.66.4.156
redis.web IN A 10.66.105.49
search.redis IN A 10.66.4.249
search.redis IN A {{ redis.search }}
redis.push IN A 10.66.5.182
bigdata.rtrec.redis IN A 10.67.1.139
web.redis IN A 10.66.1.192
... ... @@ -136,12 +136,12 @@ union.redis IN A 10.66.4.127
;hosts
gateway IN A 10.66.0.4
zk01 IN A 10.66.4.3
zk02 IN A 10.66.4.4
zk03 IN A 10.66.4.5
zk04 IN A 10.66.4.8
zk05 IN A 10.66.4.9
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 %}
;java rabbitmq
rabbit.order.dc1 IN A 10.66.4.234
... ...