Authored by root

Update

1 ----  
2 -  
3 -dc: media  
4 -  
5 -#database  
6 -db_yhcms_write: 10.66.251.12  
7 -db_yhcms_read: 10.66.251.12  
8 -db_mars_write: 10.66.251.15  
9 -db_mars_read: 10.66.251.15  
10 -db_social_write: 10.66.251.12  
11 -db_social_read: 10.66.251.12  
12 -db_yohocn_write: 10.66.251.11  
13 -db_yohocn_read: 10.66.251.11  
14 -db_ezine_write: 10.66.251.15  
15 -db_ezine_read: 10.66.251.15  
16 -db_yohood_write: 10.66.251.12  
17 -  
18 -  
19 -#redis  
20 -redis:  
21 - bigdata: 10.66.4.156  
22 - qqg: 10.66.251.8  
23 - media: 10.66.251.8  
24 - mars: 10.66.251.8  
25 - now: 10.66.251.11  
26 -  
27 -#zookeeper  
28 -media_zk: 10.66.251.8  
29 -  
30 -#media  
31 -media_rabbitmq: 10.66.251.8  
  1 +$TTL 5 ; 5s default TTL
  2 +
  3 +; Zone: yohoops.org.
  4 +; Generated by i@karlzhou.com, at 2018-07-13 09:50:09 +0800
  5 +
  6 +
  7 +@ IN SOA ns1.yohoops.org. root.ns.yohoops.org. (
  8 + 1531446609 ; Serial
  9 + 1M ; Refresh
  10 + 15M ; Retry
  11 + 1W ; Expire
  12 + 1M ; Negative Response TTL
  13 + )
  14 +
  15 +; DNS Servers
  16 + IN NS ns.yohoops.org.
  17 +
  18 +
  19 +; Other A and CNAME records, etc
  20 +
  21 +ns IN A 192.168.74.11
  22 +bigdata.redis IN A 10.66.4.156
  23 +qqg.redis IN A 10.66.251.8
  24 +zabbix.master IN A 10.66.0.191
  25 +search-mars IN A 10.66.251.4
  26 +rsyslog IN A 10.66.0.36
  27 +monit.master IN A 172.31.50.139
  28 +write.yhcms IN A 10.66.251.12
  29 +read.yhcms IN A 10.66.251.12
  30 +write.mars IN A 10.66.251.15
  31 +read.mars IN A 10.66.251.15
  32 +zk01 IN A 10.66.251.8
  33 +rabbitmq01 IN A 10.66.251.8
  34 +uic.gray IN A 10.66.101.5
  35 +influxdb-event IN A 10.66.251.11
  36 +risk IN A 10.67.254.22
  37 +write.social IN A 10.66.251.12
  38 +read.social IN A 10.66.251.12
  39 +uic IN A 10.66.4.112
  40 +rabbitmq-media IN A 10.66.251.8
  41 +elaticsearch1 IN A 10.66.251.43
  42 +elaticsearch2 IN A 10.66.251.45
  43 +influxdb IN A 10.66.251.11
  44 +influxdb-order IN A 10.66.251.11
  45 +rabbitmq-common IN A 10.66.251.8
  46 +redis.media IN A 10.66.251.8
  47 +zk.media IN A 10.66.251.8
  48 +serve.erp IN A 10.66.50.7
  49 +mars.redis IN A 10.66.251.8
  50 +now.redis IN A 10.66.251.11
  51 +mars.mem IN A 10.66.251.8
  52 +now.mem IN A 10.66.251.11
  53 +media.zk IN A 10.66.251.8
  54 +media.rabbit IN A 10.66.251.8
  55 +now.sphinx IN A 10.66.251.11
  56 +mars.sphinx IN A 10.66.251.8
  57 +read.yohocn IN A 10.66.251.11
  58 +write.yohocn IN A 10.66.251.11
  59 +read.ezine IN A 10.66.251.15
  60 +write.ezine IN A 10.66.251.15
  61 +write.yohood IN A 10.66.251.12
  62 +rabbit.common.local IN A 10.66.4.112
@@ -5,5 +5,19 @@ @@ -5,5 +5,19 @@
5 prompt: "Sync and reload dns server. Please Enter DNS to continue." 5 prompt: "Sync and reload dns server. Please Enter DNS to continue."
6 private: no 6 private: no
7 remote_user: root 7 remote_user: root
8 - roles:  
9 - - media.dns 8 +
  9 + tasks:
  10 + - name: "make sure user type DNS to confirm"
  11 + fail:
  12 + msg: "user do not type DNS"
  13 + when: confirmation != 'DNS'
  14 +
  15 + - name: Sync bind9 zone files
  16 + copy:
  17 + src: media.zone
  18 + dest: /Data/named/aws.zone
  19 + backup: yes
  20 +
  21 + - name: reload bind
  22 + command: "/Data/local/named/sbin/rndc -p954 reload"
  23 +
1 -$TTL 5 ; 5s default TTL  
2 -  
3 -; Zone: yohoops.org.  
4 -; Generated by ansible, at {{ timestamp }}  
5 -  
6 -  
7 -@ IN SOA ns1.yohoops.org. root.ns.yohoops.org. (  
8 - {{ zone_serical }} ; Serial  
9 - 1M ; Refresh  
10 - 15M ; Retry  
11 - 1W ; Expire  
12 - 1M ; Negative Response TTL  
13 - )  
14 -  
15 -; DNS Servers  
16 - IN NS ns.yohoops.org.  
17 -  
18 -  
19 -; Other A and CNAME records, etc  
20 -{% set A = 'A' %}  
21 -{% set CNAME = 'CNAME' %}  
22 -  
23 -ns IN A 192.168.74.11  
24 -bigdata.redis IN A {{ redis.bigdata }}  
25 -qqg.redis IN A {{ redis.qqg }}  
26 -zabbix.master IN A 10.66.0.191  
27 -search-mars IN A 10.66.251.4  
28 -rsyslog IN A 10.66.0.36  
29 -monit.master IN A 172.31.50.139  
30 -write.yhcms IN A {{ db_yhcms_write }}  
31 -read.yhcms IN A {{ db_yhcms_read }}  
32 -write.mars IN A {{ db_mars_write }}  
33 -read.mars IN A {{ db_mars_read }}  
34 -zk01 IN A {{ media_zk }}  
35 -rabbitmq01 IN A {{ media_rabbitmq }}  
36 -uic.gray IN A 10.66.101.5  
37 -influxdb-event IN A 10.66.251.11  
38 -risk IN A 10.67.254.22  
39 -write.social IN A {{ db_social_write }}  
40 -read.social IN A {{ db_social_read }}  
41 -uic IN A 10.66.4.112  
42 -rabbitmq-media IN A {{ media_rabbitmq }}  
43 -elaticsearch1 IN A 10.66.251.43  
44 -elaticsearch2 IN A 10.66.251.45  
45 -influxdb IN A 10.66.251.11  
46 -influxdb-order IN A 10.66.251.11  
47 -rabbitmq-common IN A {{ media_rabbitmq }}  
48 -redis.media IN A {{ redis.media }}  
49 -zk.media IN A {{ media_zk }}  
50 -serve.erp IN A 10.66.50.7  
51 -mars.redis IN A {{ redis.mars }}  
52 -now.redis IN A {{ redis.now }}  
53 -mars.mem IN A 10.66.251.8  
54 -now.mem IN A 10.66.251.11  
55 -media.zk IN A {{ media_zk }}  
56 -media.rabbit IN A {{ media_rabbitmq }}  
57 -now.sphinx IN A 10.66.251.11  
58 -mars.sphinx IN A 10.66.251.8  
59 -read.yohocn IN A {{ db_yohocn_read }}  
60 -write.yohocn IN A {{ db_yohocn_write }}  
61 -read.ezine IN A {{ db_ezine_read }}  
62 -write.ezine IN A {{ db_ezine_write }}  
63 -write.yohood IN A {{ db_yohood_write }}  
64 -rabbit.common.local IN A 10.66.4.112