Authored by chunhua.zhang

添加aws 的inventory

1 -# inventory file for az1  
2 -# auto generated at 2018-12-17 09:07:20 1 +# inventory file for az2
  2 +# auto generated at 2018-12-24 18:46:09
3 3
4 [nameservers] 4 [nameservers]
5 172.31.9.217 5 172.31.9.217
@@ -8,127 +8,111 @@ @@ -8,127 +8,111 @@
8 172.31.9.217 8 172.31.9.217
9 9
10 [java-nginx] 10 [java-nginx]
11 -172.31.70.6 11 +172.31.70.1
12 12
13 13
14 [cobar-server] 14 [cobar-server]
15 -10.66.4.20  
16 -10.66.4.21  
17 - 15 +172.31.70.1
18 16
19 [ufo-nginx] 17 [ufo-nginx]
20 -10.66.70.62  
21 -10.66.70.137 18 +172.31.70.1
22 19
23 20
24 [java-activity] 21 [java-activity]
25 -10.66.70.89  
26 -10.66.70.142 22 +172.31.104.17
  23 +172.31.104.26
27 24
28 25
29 [java-bigdata] 26 [java-bigdata]
30 -10.66.70.89  
31 -10.66.70.142 27 +172.31.104.17
  28 +172.31.104.26
32 29
33 30
34 [java-brower] 31 [java-brower]
35 -10.66.70.223  
36 -10.66.70.42 32 +172.31.104.7
  33 +172.31.104.39
37 34
38 35
39 [java-erpgateway] 36 [java-erpgateway]
40 -10.66.70.223  
41 -10.66.70.42 37 +172.31.104.7
  38 +172.31.104.39
42 39
43 40
44 [java-gateway] 41 [java-gateway]
45 -10.66.70.79  
46 -10.66.70.181  
47 -10.66.70.15  
48 -10.66.70.192  
49 -10.66.70.215 42 +172.31.104.2
  43 +172.31.104.44
  44 +172.31.104.28
50 45
51 46
52 [java-message] 47 [java-message]
53 -10.66.70.47  
54 -10.66.70.96 48 +172.31.104.12
  49 +172.31.104.48
55 50
56 51
57 [java-order] 52 [java-order]
58 -10.66.70.41  
59 -10.66.70.170  
60 -10.66.70.95 53 +172.31.104.16
  54 +172.31.104.41
61 55
62 56
63 [java-product] 57 [java-product]
64 -10.66.70.47  
65 -10.66.70.96 58 +172.31.104.12
  59 +172.31.104.48
66 60
67 61
68 [java-promotion] 62 [java-promotion]
69 -10.66.70.41  
70 -10.66.70.170  
71 -10.66.70.95 63 +172.31.104.16
  64 +172.31.104.41
72 65
73 66
74 [java-resources] 67 [java-resources]
75 -10.66.70.9  
76 -10.66.70.128 68 +172.31.104.10
  69 +172.31.104.43
77 70
78 71
79 [java-risk] 72 [java-risk]
80 -10.66.70.89  
81 -10.66.70.142 73 +172.31.104.17
  74 +172.31.104.26
82 75
83 76
84 [java-sns] 77 [java-sns]
85 -10.66.70.47  
86 -10.66.70.96  
87 -  
88 -  
89 -[java-social]  
90 -10.66.70.139  
91 -10.66.70.12 78 +172.31.104.12
  79 +172.31.104.48
92 80
93 81
94 [java-uic] 82 [java-uic]
95 -10.66.70.223  
96 -10.66.70.42 83 +172.31.104.7
  84 +172.31.104.39
97 85
98 86
99 [java-union] 87 [java-union]
100 -10.66.70.49  
101 -10.66.70.126 88 +172.31.70.21
  89 +172.31.70.56
102 90
103 91
104 [java-users] 92 [java-users]
105 -10.66.70.9  
106 -10.66.70.128 93 +172.31.104.10
  94 +172.31.104.43
107 95
108 96
109 [java-wechat] 97 [java-wechat]
110 -10.66.70.223  
111 -10.66.70.42 98 +172.31.104.7
  99 +172.31.104.39
  100 +
  101 +
  102 +[platform-cms]
  103 +172.31.50.127
112 104
113 105
114 [search-service] 106 [search-service]
115 -10.66.5.4  
116 -10.66.5.5  
117 -10.66.5.19  
118 -10.66.5.216  
119 -10.66.5.106  
120 -10.66.5.22  
121 -10.66.5.138  
122 -10.66.5.110 107 +172.31.104.4
  108 +172.31.104.9
  109 +172.31.104.14
123 110
124 111
125 [ufo-fore] 112 [ufo-fore]
126 -10.66.70.235  
127 -10.66.70.77  
128 -10.66.70.63  
129 -10.66.70.84 113 +172.31.104.18
130 114
131 115
132 [ufo-platform] 116 [ufo-platform]
133 -10.66.70.235 117 +172.31.104.18
134 118
1 # inventory file for az1 1 # inventory file for az1
2 -# auto generated at 2018-12-20 10:31:37 2 +# auto generated at 2018-12-24 18:46:09
3 3
4 [nameservers] 4 [nameservers]
5 10.66.4.18 5 10.66.4.18
1 # inventory file for az2 1 # inventory file for az2
2 -# auto generated at 2018-12-19 10:03:52 2 +# auto generated at 2018-12-24 18:46:09
3 3
4 [nameservers] 4 [nameservers]
5 10.66.105.5 5 10.66.105.5
@@ -26,7 +26,7 @@ call("git clone --recursive git@git.yoho.cn:yohoops/auto_deploy.git %s" % PATH @@ -26,7 +26,7 @@ call("git clone --recursive git@git.yoho.cn:yohoops/auto_deploy.git %s" % PATH
26 26
27 27
28 # get iptables info from git files. 28 # get iptables info from git files.
29 -azs_mappings = {"qcloud": "az1", "qcloudaz2": "az2"} 29 +azs_mappings = {"qcloud": "az1", "qcloudaz2": "az2", "aws": "aws"}
30 host_group = {"yoho_gateway": "java-gateway", 30 host_group = {"yoho_gateway": "java-gateway",
31 "yoho_users": "java-users", 31 "yoho_users": "java-users",
32 "yohobuy_resources": "java-resources", 32 "yohobuy_resources": "java-resources",
  1 +# inventory file for az2
  2 +# auto generated at {{time_now}}
  3 +
  4 +[nameservers]
  5 +172.31.9.217
  6 +
  7 +[nameserver-master]
  8 +172.31.9.217
  9 +
  10 +[java-nginx]
  11 +172.31.70.1
  12 +
  13 +
  14 +[cobar-server]
  15 +172.31.70.1
  16 +
  17 +[ufo-nginx]
  18 +172.31.70.1
  19 +
  20 +{% extends "java-services.j2" %}