Authored by tiexin.yang

同步本地search中心切换配置

@@ -34,7 +34,9 @@ db_ufo_read: 172.31.10.175 @@ -34,7 +34,9 @@ db_ufo_read: 172.31.10.175
34 java: 34 java:
35 inner_lb: internal-java-inner-lb-464503140.cn-north-1.elb.amazonaws.com.cn. 35 inner_lb: internal-java-inner-lb-464503140.cn-north-1.elb.amazonaws.com.cn.
36 single_inner_lb: 10.66.4.112 36 single_inner_lb: 10.66.4.112
37 - search_lb: internal-java-inner-lb-464503140.cn-north-1.elb.amazonaws.com.cn. 37 +
  38 +# search lb
  39 +search_lb: internal-java-inner-lb-464503140.cn-north-1.elb.amazonaws.com.cn.
38 40
39 # rsyslog server 41 # rsyslog server
40 rsyslog_server: 172.31.9.252 42 rsyslog_server: 172.31.9.252
@@ -33,7 +33,9 @@ db_ufo_read: 10.66.6.52 @@ -33,7 +33,9 @@ db_ufo_read: 10.66.6.52
33 java: 33 java:
34 inner_lb: 10.66.4.112 34 inner_lb: 10.66.4.112
35 single_inner_lb: 10.66.4.112 35 single_inner_lb: 10.66.4.112
36 - search_lb: 10.66.4.112 36 +
  37 +# search lb
  38 +search_lb: 10.66.4.112
37 39
38 # rsyslog server 40 # rsyslog server
39 rsyslog_server: 10.66.0.36 41 rsyslog_server: 10.66.0.36
@@ -33,7 +33,9 @@ db_ufo_read: 10.66.6.52 @@ -33,7 +33,9 @@ db_ufo_read: 10.66.6.52
33 java: 33 java:
34 inner_lb: 10.66.104.6 34 inner_lb: 10.66.104.6
35 single_inner_lb: 10.66.4.112 35 single_inner_lb: 10.66.4.112
36 - search_lb: 10.66.104.6 36 +
  37 +# search lb
  38 +search_lb: 10.66.104.6
37 39
38 # rsyslog server 40 # rsyslog server
39 rsyslog_server: 10.66.0.36 41 rsyslog_server: 10.66.0.36
@@ -13,8 +13,7 @@ @@ -13,8 +13,7 @@
13 private: no 13 private: no
14 pre_tasks: 14 pre_tasks:
15 - set_fact: 15 - set_fact:
16 - java:  
17 - search_lb: internal-java-inner-lb-464503140.cn-north-1.elb.amazonaws.com.cn. 16 + search_lb: internal-java-inner-lb-464503140.cn-north-1.elb.amazonaws.com.cn.
18 when: (search_center == 'AWS') 17 when: (search_center == 'AWS')
19 18
20 - set_fact: 19 - set_fact:
@@ -117,7 +117,7 @@ uic IN {{ A if ( java.inner_lb | @@ -117,7 +117,7 @@ uic IN {{ A if ( java.inner_lb |
117 api.yoho IN {{ A if ( java.inner_lb | ipv4) else CNAME }} {{ java.inner_lb }} 117 api.yoho IN {{ A if ( java.inner_lb | ipv4) else CNAME }} {{ java.inner_lb }}
118 service.yoho IN {{ A if ( java.inner_lb | ipv4) else CNAME }} {{ java.inner_lb }} 118 service.yoho IN {{ A if ( java.inner_lb | ipv4) else CNAME }} {{ java.inner_lb }}
119 erp.yoho IN {{ A if ( java.inner_lb | ipv4) else CNAME }} {{ java.inner_lb }} 119 erp.yoho IN {{ A if ( java.inner_lb | ipv4) else CNAME }} {{ java.inner_lb }}
120 -search IN {{ A if ( java.search_lb | ipv4) else CNAME }} {{ java.search_lb }} 120 +search IN {{ A if ( search_lb | ipv4) else CNAME }} {{ search_lb }}
121 message-controller IN {{ A if ( java.single_inner_lb | ipv4) else CNAME }} {{ java.single_inner_lb }} 121 message-controller IN {{ A if ( java.single_inner_lb | ipv4) else CNAME }} {{ java.single_inner_lb }}
122 single IN {{ A if ( java.single_inner_lb | ipv4) else CNAME }} {{ java.single_inner_lb }} 122 single IN {{ A if ( java.single_inner_lb | ipv4) else CNAME }} {{ java.single_inner_lb }}
123 gateway.erp IN {{ A if ( java.single_inner_lb | ipv4) else CNAME }} {{ java.single_inner_lb }} 123 gateway.erp IN {{ A if ( java.single_inner_lb | ipv4) else CNAME }} {{ java.single_inner_lb }}