Authored by root

Update

---
dc: media
#database
db_yhcms_write: 10.66.251.12
db_yhcms_read: 10.66.251.12
db_mars_write: 10.66.251.15
db_mars_read: 10.66.251.15
db_social_write: 10.66.251.12
db_social_read: 10.66.251.12
db_yohocn_write: 10.66.251.11
db_yohocn_read: 10.66.251.11
db_ezine_write: 10.66.251.15
db_ezine_read: 10.66.251.15
db_yohood_write: 10.66.251.12
#redis
redis:
bigdata: 10.66.4.156
qqg: 10.66.251.8
media: 10.66.251.8
mars: 10.66.251.8
now: 10.66.251.11
#zookeeper
media_zk: 10.66.251.8
#media
media_rabbitmq: 10.66.251.8
$TTL 5 ; 5s default TTL
; Zone: yohoops.org.
; Generated by i@karlzhou.com, at 2018-07-13 09:50:09 +0800
@ IN SOA ns1.yohoops.org. root.ns.yohoops.org. (
1531446609 ; Serial
1M ; Refresh
15M ; Retry
1W ; Expire
1M ; Negative Response TTL
)
; DNS Servers
IN NS ns.yohoops.org.
; Other A and CNAME records, etc
ns IN A 192.168.74.11
bigdata.redis IN A 10.66.4.156
qqg.redis IN A 10.66.251.8
zabbix.master IN A 10.66.0.191
search-mars IN A 10.66.251.4
rsyslog IN A 10.66.0.36
monit.master IN A 172.31.50.139
write.yhcms IN A 10.66.251.12
read.yhcms IN A 10.66.251.12
write.mars IN A 10.66.251.15
read.mars IN A 10.66.251.15
zk01 IN A 10.66.251.8
rabbitmq01 IN A 10.66.251.8
uic.gray IN A 10.66.101.5
influxdb-event IN A 10.66.251.11
risk IN A 10.67.254.22
write.social IN A 10.66.251.12
read.social IN A 10.66.251.12
uic IN A 10.66.4.112
rabbitmq-media IN A 10.66.251.8
elaticsearch1 IN A 10.66.251.43
elaticsearch2 IN A 10.66.251.45
influxdb IN A 10.66.251.11
influxdb-order IN A 10.66.251.11
rabbitmq-common IN A 10.66.251.8
redis.media IN A 10.66.251.8
zk.media IN A 10.66.251.8
serve.erp IN A 10.66.50.7
mars.redis IN A 10.66.251.8
now.redis IN A 10.66.251.11
mars.mem IN A 10.66.251.8
now.mem IN A 10.66.251.11
media.zk IN A 10.66.251.8
media.rabbit IN A 10.66.251.8
now.sphinx IN A 10.66.251.11
mars.sphinx IN A 10.66.251.8
read.yohocn IN A 10.66.251.11
write.yohocn IN A 10.66.251.11
read.ezine IN A 10.66.251.15
write.ezine IN A 10.66.251.15
write.yohood IN A 10.66.251.12
rabbit.common.local IN A 10.66.4.112
... ...
... ... @@ -5,5 +5,19 @@
prompt: "Sync and reload dns server. Please Enter DNS to continue."
private: no
remote_user: root
roles:
- media.dns
tasks:
- name: "make sure user type DNS to confirm"
fail:
msg: "user do not type DNS"
when: confirmation != 'DNS'
- name: Sync bind9 zone files
copy:
src: media.zone
dest: /Data/named/aws.zone
backup: yes
- name: reload bind
command: "/Data/local/named/sbin/rndc -p954 reload"
... ...
$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
{% set A = 'A' %}
{% set CNAME = 'CNAME' %}
ns IN A 192.168.74.11
bigdata.redis IN A {{ redis.bigdata }}
qqg.redis IN A {{ redis.qqg }}
zabbix.master IN A 10.66.0.191
search-mars IN A 10.66.251.4
rsyslog IN A 10.66.0.36
monit.master IN A 172.31.50.139
write.yhcms IN A {{ db_yhcms_write }}
read.yhcms IN A {{ db_yhcms_read }}
write.mars IN A {{ db_mars_write }}
read.mars IN A {{ db_mars_read }}
zk01 IN A {{ media_zk }}
rabbitmq01 IN A {{ media_rabbitmq }}
uic.gray IN A 10.66.101.5
influxdb-event IN A 10.66.251.11
risk IN A 10.67.254.22
write.social IN A {{ db_social_write }}
read.social IN A {{ db_social_read }}
uic IN A 10.66.4.112
rabbitmq-media IN A {{ media_rabbitmq }}
elaticsearch1 IN A 10.66.251.43
elaticsearch2 IN A 10.66.251.45
influxdb IN A 10.66.251.11
influxdb-order IN A 10.66.251.11
rabbitmq-common IN A {{ media_rabbitmq }}
redis.media IN A {{ redis.media }}
zk.media IN A {{ media_zk }}
serve.erp IN A 10.66.50.7
mars.redis IN A {{ redis.mars }}
now.redis IN A {{ redis.now }}
mars.mem IN A 10.66.251.8
now.mem IN A 10.66.251.11
media.zk IN A {{ media_zk }}
media.rabbit IN A {{ media_rabbitmq }}
now.sphinx IN A 10.66.251.11
mars.sphinx IN A 10.66.251.8
read.yohocn IN A {{ db_yohocn_read }}
write.yohocn IN A {{ db_yohocn_write }}
read.ezine IN A {{ db_ezine_read }}
write.ezine IN A {{ db_ezine_write }}
write.yohood IN A {{ db_yohood_write }}
rabbit.common.local IN A 10.66.4.112