Authored by root

Enable center switch

... ... @@ -4,26 +4,36 @@ dc: qcloud-az1
# database info: using to generate bind9 dns config file. very important !!
db_cms_write: 10.66.0.99
db_cms_write_az2: 10.66.106.11
db_cms_read: 10.66.6.7
db_passport_write: 10.66.0.105
db_passport_write_az2: 10.66.106.8
db_passport_read: 10.66.6.8
db_shops_write: 10.66.0.213
db_shops_write_az2: 10.66.106.3
db_shops_read: 10.66.6.10
db_order_write: 10.66.0.170
db_order_write_az2: 10.66.106.13
db_order_read: 10.66.6.9
db_message_write: 10.67.2.103
db_message_write_az2: 10.66.106.5
db_message_read: 10.66.106.5
db_uic_write: 10.66.6.136
db_uic_write_az2: 10.66.106.12
db_uic_read: 10.66.6.136
db_search: 10.66.6.6
db_mongo: 10.66.6.19
db_ordersplit_1_write: 10.66.0.57
db_ordersplit_1_write_az2: 10.66.106.6
db_ordersplit_1_read: 10.66.0.57
db_ordersplit_2_write: 10.66.0.81
db_ordersplit_2_write_az2: 10.66.106.9
db_ordersplit_2_read: 10.66.0.81
db_ordersplit_3_write: 10.66.0.98
db_ordersplit_3_write_az2: 10.66.106.15
db_ordersplit_3_read: 10.66.0.98
db_ordersplit_4_write: 10.66.0.121
db_ordersplit_4_write_az2: 10.66.106.16
db_ordersplit_4_read: 10.66.0.121
... ... @@ -51,4 +61,4 @@ zookeeper:
- 10.66.4.4
- 10.66.4.5
- 10.66.4.8
- 10.66.4.9
\ No newline at end of file
- 10.66.4.9
... ...
... ... @@ -4,26 +4,36 @@ dc: qcloud-az2
# database info: using to generate bind9 dns config file. very important !!
db_cms_write: 10.66.0.99
db_cms_write_az2: 10.66.106.11
db_cms_read: 10.66.106.11
db_passport_write: 10.66.0.105
db_passport_write_az2: 10.66.106.8
db_passport_read: 10.66.106.8
db_shops_write: 10.66.0.213
db_shops_write_az2: 10.66.106.3
db_shops_read: 10.66.106.3
db_order_write: 10.66.0.170
db_order_write_az2: 10.66.106.13
db_order_read: 10.66.106.13
db_message_write: 10.67.2.103
db_message_write_az2: 10.66.106.5
db_message_read: 10.66.106.5
db_uic_write: 10.66.6.136
db_uic_write_az2: 10.66.106.12
db_uic_read: 10.66.106.12
db_search: 10.66.106.17
db_mongo: 10.66.105.20
db_ordersplit_1_write: 10.66.0.57
db_ordersplit_1_write_az2: 10.66.106.6
db_ordersplit_1_read: 10.66.106.6
db_ordersplit_2_write: 10.66.0.81
db_ordersplit_2_write_az2: 10.66.106.9
db_ordersplit_2_read: 10.66.106.9
db_ordersplit_3_write: 10.66.0.98
db_ordersplit_3_write_az2: 10.66.106.15
db_ordersplit_3_read: 10.66.106.15
db_ordersplit_4_write: 10.66.0.121
db_ordersplit_4_write_az2: 10.66.106.16
db_ordersplit_4_read: 10.66.106.16
... ... @@ -50,4 +60,4 @@ zookeeper:
- 10.66.105.12
- 10.66.105.4
- 10.66.105.37
- 10.66.105.30
\ No newline at end of file
- 10.66.105.30
... ...
... ... @@ -4,26 +4,36 @@ dc: qcloud-az3
# database info: using to generate bind9 dns config file. very important !!
db_cms_write: 10.66.0.99
db_cms_write_az2: 10.66.106.11
db_cms_read: 10.66.106.11
db_passport_write: 10.66.0.105
db_passport_write_az2: 10.66.106.8
db_passport_read: 10.66.106.8
db_shops_write: 10.66.0.213
db_shops_write_az2: 10.66.106.3
db_shops_read: 10.66.106.3
db_order_write: 10.66.0.170
db_order_write_az2: 10.66.106.13
db_order_read: 10.66.106.13
db_message_write: 10.67.2.103
db_message_write_az2: 10.66.106.5
db_message_read: 10.66.106.5
db_uic_write: 10.66.6.136
db_uic_write_az2: 10.66.106.12
db_uic_read: 10.66.106.12
db_search: 10.66.106.17
db_mongo: 10.66.105.20
db_ordersplit_1_write: 10.66.0.57
db_ordersplit_1_write_az2: 10.66.106.6
db_ordersplit_1_read: 10.66.106.6
db_ordersplit_2_write: 10.66.0.81
db_ordersplit_2_write_az2: 10.66.106.9
db_ordersplit_2_read: 10.66.106.9
db_ordersplit_3_write: 10.66.0.98
db_ordersplit_3_write_az2: 10.66.106.15
db_ordersplit_3_read: 10.66.106.15
db_ordersplit_4_write: 10.66.0.121
db_ordersplit_4_write_az2: 10.66.106.16
db_ordersplit_4_read: 10.66.106.16
... ... @@ -50,4 +60,4 @@ zookeeper:
- 10.66.202.2
- 10.66.202.4
- 10.66.202.4
- 10.66.202.2
\ No newline at end of file
- 10.66.202.2
... ...
... ... @@ -4,6 +4,9 @@
- name: "confirmation"
prompt: "Sync and reload dns server. Please Enter DNS to continue."
private: no
- name: "center"
prompt: "Select the zone center. Please Enter zone1 or zone2 to continue."
private: no
remote_user: root
roles:
- yoho.dns
\ No newline at end of file
- yoho.dns
... ...
$TTL 5 ; 5s default TTL
; Zone: yohoops.org.
; Generated by ansible, at {{ timestamp }}
@ IN SOA ns1.yohoops.org. root.ns.yohoops.org. (
{{ zone_serical }} ; Serial
1M ; Refresh
15M ; Retry
1W ; Expire
1M ; Negative Response TTL
)
; DNS Servers
IN NS ns.yohoops.org.
; Other A and CNAME records, etc
;ops
influxdb IN A 10.66.4.25
influxdb-event IN A 10.66.4.25
influxdb-order IN A 10.66.4.25
monitor.redis IN A 10.66.4.25
zabbix.master IN A 10.66.0.191
rsyslog IN A 10.66.0.36
config.server IN A 10.66.80.2
zabbix IN A 10.66.0.191
kafkacluster IN A 10.66.80.4
kafkacluster IN A 10.66.80.17
kafkacluster IN A 10.66.80.14
ops.kafka IN A 10.66.80.17
;database
write.cms IN A {{ db_cms_write_az2 }}
read.cms IN A {{ db_cms_read }}
write.uic IN A {{ db_uic_write_az2 }}
read.uic IN A {{ db_uic_read }}
write.passport IN A {{ db_passport_write_az2 }}
read.passport IN A {{ db_passport_read }}
write.orders IN A {{ db_order_write_az2 }}
read.orders IN A {{ db_order_read }}
write.shops IN A {{ db_shops_write_az2 }}
read.shops IN A {{ db_shops_read }}
write.yohood IN A {{ db_order_write_az2 }}
read.yohood IN A {{ db_order_read }}
write.message IN A {{ db_message_write_az2 }}
read.message IN A {{ db_message_read }}
read2.message IN A {{ db_message_read }}
write1.orders IN A {{ db_ordersplit_1_write_az2 }}
write2.orders IN A {{ db_ordersplit_2_write_az2 }}
write3.orders IN A {{ db_ordersplit_3_write_az2 }}
write4.orders IN A {{ db_ordersplit_4_write_az2 }}
read1.orders IN A {{ db_ordersplit_1_read }}
read2.orders IN A {{ db_ordersplit_2_read }}
read3.orders IN A {{ db_ordersplit_3_read }}
read4.orders IN A {{ db_ordersplit_4_read }}
write1.promotion IN A {{ db_ordersplit_1_write_az2 }}
write2.promotion IN A {{ db_ordersplit_2_write_az2 }}
write3.promotion IN A {{ db_ordersplit_3_write_az2 }}
write4.promotion IN A {{ db_ordersplit_4_write_az2 }}
read1.promotion IN A {{ db_ordersplit_1_read }}
read2.promotion IN A {{ db_ordersplit_2_read }}
read3.promotion IN A {{ db_ordersplit_3_read }}
read4.promotion IN A {{ db_ordersplit_4_read }}
write.search IN A {{ db_search }}
read.search IN A {{ db_search }}
brower.mongodb IN A {{ db_mongo }}
write.erp IN A 10.66.50.99
read1.erp IN A 10.66.50.64
read2.erp IN A 10.66.50.64
read3.erp IN A 10.67.2.194
write.social IN A 10.66.251.12
read.social IN A 10.66.251.12
write.mars IN A 10.66.251.15
read.mars IN A 10.66.251.15
write.yhcms IN A 10.66.251.12
read.yhcms IN A 10.66.251.12
write.global IN A 10.66.251.12
read.global IN A 10.66.251.12
db.global IN A 10.66.6.6
write.yhUnion IN A 10.66.6.131
read.yhUnion IN A 10.66.106.14
qq.union.dbs.slave IN A 10.66.106.14
write.yhLogs IN A 10.66.6.49
qq.logs.dbs.slave IN A 10.66.6.49
yohologs IN A 10.66.6.49
write.store IN A 10.66.6.183
read.store IN A 10.66.6.183
qq.dbs.slave IN A 10.67.2.2
dbs.slave IN A 10.67.2.2
bigdata.db.union IN A 10.67.2.46
read.bigdata IN A 10.67.2.144
db.crm IN A 10.66.6.93
gp.db IN A 10.67.2.47
;java inner load balancer
uic IN A {{ java.inner_lb }}
api.yoho IN A {{ java.inner_lb }}
service.yoho IN A {{ java.inner_lb }}
erp.yoho IN A {{ java.inner_lb }}
search IN A {{ java.search_lb }}
message-controller IN A {{ java.single_inner_lb }}
single IN A {{ java.single_inner_lb }}
gateway.erp IN A {{ java.single_inner_lb }}
;redis server
redis.nginx IN A 10.66.4.80
redis.global IN A 10.66.4.161
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 {{ 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
push.redis IN A 10.66.5.182
redis.crm IN A 10.66.4.143
union.redis IN A 10.66.4.127
;hosts
gateway IN A {{ groups['java-gateway'][0] }}
zk01 IN A {{ zookeeper[0] }}
zk02 IN A {{ zookeeper[1] }}
zk03 IN A {{ zookeeper[2] }}
zk04 IN A {{ zookeeper[3] }}
zk05 IN A {{ zookeeper[4] }}
;java rabbitmq
rabbit.order.dc1 IN A 10.66.4.234
rabbit.order.dc2 IN A 10.66.105.13
rabbit.order.dc3 IN A 10.66.200.14
rabbit.order.local IN A {{ rabbit.order_local }}
rabbit.common.dc1 IN A 10.66.4.112
rabbit.common.dc2 IN A 10.66.104.6
rabbit.common.dc3 IN A 10.66.202.9
rabbit.common.local IN A {{ rabbit.common_local }}
rabbitmq-crm IN A 10.66.70.92
;cobar
cobar2 IN A 10.66.4.20
cobar1 IN A 10.66.4.20
cobar3 IN A 10.66.4.21
cobar4 IN A 10.66.4.21
cobar.promotion1 IN A 10.66.50.27
cobar.promotion2 IN A 10.66.50.27
;erp
erp.zk01.qq IN A 10.66.50.20
erp.zk02.qq IN A 10.66.50.21
erp.zk03.qq IN A 10.66.50.22
erp.redis01.qq IN A 10.66.50.20
erp.redis02.qq IN A 10.66.50.21
erp.redis03.qq IN A 10.66.50.22
rabbitmq-erp-gray01 IN A 10.66.50.112
rabbitmq-erp-gray02 IN A 10.66.50.144
rabbitmq-erp01 IN A 10.66.50.87
rabbitmq-erp02 IN A 10.66.50.100
erp.influxdb IN A 10.66.50.10
zk.pro.platform IN A 10.66.50.140
zk.gray.platform IN A 10.66.50.107
redis.platform IN A 10.66.50.132
apigray.platform IN A 10.66.50.107
api.platform IN A 10.66.50.140
serve.erp IN A 10.66.50.7
;other
ns IN A {{ groups['nameservers'][0]}}
extendstore IN A 10.66.0.118
api.crm IN A 10.66.0.133
api.store IN A 10.66.0.133
risk IN A 10.67.254.22
shop IN A 10.67.254.22
platform.shareOrder IN A 10.67.90.13
photo.search IN A 10.66.0.97
adminstore IN A 10.66.0.133
influxdblog.web IN A 10.66.0.139
web.zookeeper IN A 10.66.1.192
bigdata.api.crm IN A 10.67.7.2
bigdata.ftp IN A 10.67.7.2
;global
global.redis IN A 10.66.5.187
global.mem.01 IN A 10.66.5.187
global.mem.02 IN A 10.66.5.17
;media
media.rabbit IN A 10.66.251.8
search-mars IN A 10.66.251.4
now.redis IN A 10.66.251.11
... ...