blob: c378d0a50491480eb40dfe7a382560fc39cbeee7 [file] [log] [blame]
Gary Wu11c98742018-05-02 16:19:04 -07001#
2# Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST
3#
Gary Wuccd529b2018-01-16 18:31:01 -08004heat_template_version: 2015-10-15
5description: ONAP on Kubernetes using OOM
6
7parameters:
Gary Wuccd529b2018-01-16 18:31:01 -08008 docker_proxy:
9 type: string
10
11 apt_proxy:
12 type: string
13
Gary Wuc98156d2018-01-18 12:03:26 -080014 public_net_id:
15 type: string
16 description: The ID of the Public network for floating IP address allocation
17
Gary Wuc98156d2018-01-18 12:03:26 -080018 oam_network_cidr:
19 type: string
20 description: CIDR of the OAM ONAP network
21
Gary Wu60dd0d82018-01-18 14:54:47 -080022 ubuntu_1604_image:
23 type: string
24 description: Name of the Ubuntu 16.04 image
25
Gary Wu60dd0d82018-01-18 14:54:47 -080026 rancher_vm_flavor:
27 type: string
Gary Wu11c98742018-05-02 16:19:04 -070028 description: VM flavor for Rancher
Gary Wu60dd0d82018-01-18 14:54:47 -080029
30 k8s_vm_flavor:
31 type: string
Gary Wu11c98742018-05-02 16:19:04 -070032 description: VM flavor for k8s hosts
33
34 integration_override_yaml:
35 type: string
36 description: Content for integration_override.yaml
Gary Wu60dd0d82018-01-18 14:54:47 -080037
Gary Wu81836d22018-06-22 13:48:50 -070038 gerrit_branch:
39 type: string
40 default: "master"
41
42 gerrit_refspec:
43 type: string
44 default: "refs/heads/master"
45
46 docker_manifest:
47 type: string
48 default: "docker-manifest.csv"
49
gwu10db4622018-07-17 22:11:39 -070050 key_name:
51 type: string
52 default: "onap_key"
53
Gary Wuccd529b2018-01-16 18:31:01 -080054resources:
Gary Wuc98156d2018-01-18 12:03:26 -080055 random-str:
56 type: OS::Heat::RandomString
57 properties:
58 length: 4
59
Gary Wubc11e5d2018-02-07 10:23:27 -080060 # ONAP security group
61 onap_sg:
62 type: OS::Neutron::SecurityGroup
63 properties:
64 name:
65 str_replace:
66 template: base_rand
67 params:
68 base: onap_sg
69 rand: { get_resource: random-str }
70 description: security group used by ONAP
71 rules:
72 # All egress traffic
73 - direction: egress
74 ethertype: IPv4
75 - direction: egress
76 ethertype: IPv6
77 # ingress traffic
78 # ICMP
79 - protocol: icmp
80 - protocol: udp
81 port_range_min: 1
82 port_range_max: 65535
83 - protocol: tcp
84 port_range_min: 1
85 port_range_max: 65535
86
87
Gary Wu52dfdcb2018-01-25 11:02:48 -080088 # ONAP management private network
89 oam_network:
90 type: OS::Neutron::Net
91 properties:
92 name:
93 str_replace:
94 template: oam_network_rand
95 params:
96 rand: { get_resource: random-str }
97
98 oam_subnet:
99 type: OS::Neutron::Subnet
100 properties:
101 name:
102 str_replace:
103 template: oam_network_rand
104 params:
105 rand: { get_resource: random-str }
106 network_id: { get_resource: oam_network }
107 cidr: { get_param: oam_network_cidr }
Gary Wu14a6b302018-05-01 15:59:28 -0700108 dns_nameservers: [ "8.8.8.8" ]
Gary Wu52dfdcb2018-01-25 11:02:48 -0800109
110 router:
111 type: OS::Neutron::Router
112 properties:
113 external_gateway_info:
114 network: { get_param: public_net_id }
115
116 router_interface:
117 type: OS::Neutron::RouterInterface
118 properties:
119 router_id: { get_resource: router }
120 subnet_id: { get_resource: oam_subnet }
121
Gary Wu374498a2018-02-06 17:31:04 -0800122 rancher_private_port:
123 type: OS::Neutron::Port
124 properties:
125 network: { get_resource: oam_network }
126 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
Gary Wubc11e5d2018-02-07 10:23:27 -0800127 security_groups:
128 - { get_resource: onap_sg }
Gary Wu374498a2018-02-06 17:31:04 -0800129
130 rancher_floating_ip:
131 type: OS::Neutron::FloatingIP
132 properties:
133 floating_network_id: { get_param: public_net_id }
134 port_id: { get_resource: rancher_private_port }
135
Gary Wuccd529b2018-01-16 18:31:01 -0800136 rancher_vm:
137 type: OS::Nova::Server
138 properties:
139 name: rancher
Gary Wu558ac6e2018-01-19 14:53:12 -0800140 image: { get_param: ubuntu_1604_image }
Gary Wu60dd0d82018-01-18 14:54:47 -0800141 flavor: { get_param: rancher_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700142 key_name: { get_param: key_name }
Gary Wuccd529b2018-01-16 18:31:01 -0800143 networks:
Gary Wu374498a2018-02-06 17:31:04 -0800144 - port: { get_resource: rancher_private_port }
Gary Wuccd529b2018-01-16 18:31:01 -0800145 user_data_format: RAW
146 user_data:
147 str_replace:
Gary Wu1ff56672018-01-17 20:51:45 -0800148 template:
149 get_file: rancher_vm_entrypoint.sh
Gary Wu14a6b302018-05-01 15:59:28 -0700150 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700151 __docker_proxy__: { get_param: docker_proxy }
152 __apt_proxy__: { get_param: apt_proxy }
153 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700154 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu11c98742018-05-02 16:19:04 -0700155 __integration_override_yaml__: { get_param: integration_override_yaml }
Gary Wu81836d22018-06-22 13:48:50 -0700156 __gerrit_branch__: { get_param: gerrit_branch }
157 __gerrit_refspec__: { get_param: gerrit_refspec }
158 __docker_manifest__: { get_param: docker_manifest }
Gary Wu978171e2018-07-24 11:56:01 -0700159 __public_net_id__: { get_param: public_net_id }
160 __oam_network_cidr__: { get_param: oam_network_cidr }
Gary Wu11c98742018-05-02 16:19:04 -0700161 __oam_network_id__: { get_resource: oam_network }
162 __oam_subnet_id__: { get_resource: oam_subnet }
Gary Wu0a671622018-05-14 12:59:03 -0700163 __k8s_1_vm_ip__: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700164 __k8s_vm_ips__: [
165 get_attr: [k8s_1_floating_ip, floating_ip_address],
166 get_attr: [k8s_2_floating_ip, floating_ip_address],
167 get_attr: [k8s_3_floating_ip, floating_ip_address],
168 get_attr: [k8s_4_floating_ip, floating_ip_address],
169 get_attr: [k8s_5_floating_ip, floating_ip_address],
170 get_attr: [k8s_6_floating_ip, floating_ip_address],
171 get_attr: [k8s_7_floating_ip, floating_ip_address],
Gary Wu7d034582018-05-12 09:08:20 -0700172 get_attr: [k8s_8_floating_ip, floating_ip_address],
173 get_attr: [k8s_9_floating_ip, floating_ip_address],
Gary Wu276d5a42018-06-05 11:26:44 -0700174 get_attr: [k8s_10_floating_ip, floating_ip_address],
175 get_attr: [k8s_11_floating_ip, floating_ip_address],
Gary Wu14a6b302018-05-01 15:59:28 -0700176 ]
Gary Wuad513722018-07-26 13:08:47 -0700177 __k8s_private_ips__: [
178 get_attr: [k8s_1_floating_ip, fixed_ip_address],
179 get_attr: [k8s_2_floating_ip, fixed_ip_address],
180 get_attr: [k8s_3_floating_ip, fixed_ip_address],
181 get_attr: [k8s_4_floating_ip, fixed_ip_address],
182 get_attr: [k8s_5_floating_ip, fixed_ip_address],
183 get_attr: [k8s_6_floating_ip, fixed_ip_address],
184 get_attr: [k8s_7_floating_ip, fixed_ip_address],
185 get_attr: [k8s_8_floating_ip, fixed_ip_address],
186 get_attr: [k8s_9_floating_ip, fixed_ip_address],
187 get_attr: [k8s_10_floating_ip, fixed_ip_address],
188 get_attr: [k8s_11_floating_ip, fixed_ip_address],
189 ]
Gary Wu14a6b302018-05-01 15:59:28 -0700190 k8s_1_private_port:
Gary Wu52dfdcb2018-01-25 11:02:48 -0800191 type: OS::Neutron::Port
192 properties:
193 network: { get_resource: oam_network }
194 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
Gary Wubc11e5d2018-02-07 10:23:27 -0800195 security_groups:
196 - { get_resource: onap_sg }
Gary Wu52dfdcb2018-01-25 11:02:48 -0800197
Gary Wu14a6b302018-05-01 15:59:28 -0700198 k8s_1_floating_ip:
Gary Wu52dfdcb2018-01-25 11:02:48 -0800199 type: OS::Neutron::FloatingIP
200 properties:
201 floating_network_id: { get_param: public_net_id }
Gary Wu14a6b302018-05-01 15:59:28 -0700202 port_id: { get_resource: k8s_1_private_port }
Gary Wu52dfdcb2018-01-25 11:02:48 -0800203
Gary Wu14a6b302018-05-01 15:59:28 -0700204 k8s_1_vm:
Gary Wuccd529b2018-01-16 18:31:01 -0800205 type: OS::Nova::Server
206 properties:
Gary Wu14a6b302018-05-01 15:59:28 -0700207 name: k8s_1
Gary Wu558ac6e2018-01-19 14:53:12 -0800208 image: { get_param: ubuntu_1604_image }
Gary Wu60dd0d82018-01-18 14:54:47 -0800209 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700210 key_name: { get_param: key_name }
Gary Wuccd529b2018-01-16 18:31:01 -0800211 networks:
Gary Wu14a6b302018-05-01 15:59:28 -0700212 - port: { get_resource: k8s_1_private_port }
Gary Wuccd529b2018-01-16 18:31:01 -0800213 user_data_format: RAW
214 user_data:
215 str_replace:
216 params:
217 __docker_proxy__: { get_param: docker_proxy }
218 __apt_proxy__: { get_param: apt_proxy }
Gary Wu5d325d02018-02-06 21:21:31 -0800219 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700220 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700221 template:
222 get_file: k8s_vm_entrypoint.sh
223
224 k8s_2_private_port:
225 type: OS::Neutron::Port
226 properties:
227 network: { get_resource: oam_network }
228 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
229 security_groups:
230 - { get_resource: onap_sg }
231
232 k8s_2_floating_ip:
233 type: OS::Neutron::FloatingIP
234 properties:
235 floating_network_id: { get_param: public_net_id }
236 port_id: { get_resource: k8s_2_private_port }
237
238 k8s_2_vm:
239 type: OS::Nova::Server
240 properties:
241 name: k8s_2
242 image: { get_param: ubuntu_1604_image }
243 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700244 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700245 networks:
246 - port: { get_resource: k8s_2_private_port }
247 user_data_format: RAW
248 user_data:
249 str_replace:
250 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700251 __docker_proxy__: { get_param: docker_proxy }
252 __apt_proxy__: { get_param: apt_proxy }
253 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700254 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700255 template:
256 get_file: k8s_vm_entrypoint.sh
257
258 k8s_3_private_port:
259 type: OS::Neutron::Port
260 properties:
261 network: { get_resource: oam_network }
262 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
263 security_groups:
264 - { get_resource: onap_sg }
265
266 k8s_3_floating_ip:
267 type: OS::Neutron::FloatingIP
268 properties:
269 floating_network_id: { get_param: public_net_id }
270 port_id: { get_resource: k8s_3_private_port }
271
272 k8s_3_vm:
273 type: OS::Nova::Server
274 properties:
275 name: k8s_3
276 image: { get_param: ubuntu_1604_image }
277 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700278 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700279 networks:
280 - port: { get_resource: k8s_3_private_port }
281 user_data_format: RAW
282 user_data:
283 str_replace:
284 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700285 __docker_proxy__: { get_param: docker_proxy }
286 __apt_proxy__: { get_param: apt_proxy }
287 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700288 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700289 template:
290 get_file: k8s_vm_entrypoint.sh
291
292 k8s_4_private_port:
293 type: OS::Neutron::Port
294 properties:
295 network: { get_resource: oam_network }
296 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
297 security_groups:
298 - { get_resource: onap_sg }
299
300 k8s_4_floating_ip:
301 type: OS::Neutron::FloatingIP
302 properties:
303 floating_network_id: { get_param: public_net_id }
304 port_id: { get_resource: k8s_4_private_port }
305
306 k8s_4_vm:
307 type: OS::Nova::Server
308 properties:
309 name: k8s_4
310 image: { get_param: ubuntu_1604_image }
311 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700312 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700313 networks:
314 - port: { get_resource: k8s_4_private_port }
315 user_data_format: RAW
316 user_data:
317 str_replace:
318 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700319 __docker_proxy__: { get_param: docker_proxy }
320 __apt_proxy__: { get_param: apt_proxy }
321 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700322 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700323 template:
324 get_file: k8s_vm_entrypoint.sh
325
326 k8s_5_private_port:
327 type: OS::Neutron::Port
328 properties:
329 network: { get_resource: oam_network }
330 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
331 security_groups:
332 - { get_resource: onap_sg }
333
334 k8s_5_floating_ip:
335 type: OS::Neutron::FloatingIP
336 properties:
337 floating_network_id: { get_param: public_net_id }
338 port_id: { get_resource: k8s_5_private_port }
339
340 k8s_5_vm:
341 type: OS::Nova::Server
342 properties:
343 name: k8s_5
344 image: { get_param: ubuntu_1604_image }
345 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700346 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700347 networks:
348 - port: { get_resource: k8s_5_private_port }
349 user_data_format: RAW
350 user_data:
351 str_replace:
352 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700353 __docker_proxy__: { get_param: docker_proxy }
354 __apt_proxy__: { get_param: apt_proxy }
355 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700356 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700357 template:
358 get_file: k8s_vm_entrypoint.sh
359
360 k8s_6_private_port:
361 type: OS::Neutron::Port
362 properties:
363 network: { get_resource: oam_network }
364 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
365 security_groups:
366 - { get_resource: onap_sg }
367
368 k8s_6_floating_ip:
369 type: OS::Neutron::FloatingIP
370 properties:
371 floating_network_id: { get_param: public_net_id }
372 port_id: { get_resource: k8s_6_private_port }
373
374 k8s_6_vm:
375 type: OS::Nova::Server
376 properties:
377 name: k8s_6
378 image: { get_param: ubuntu_1604_image }
379 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700380 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700381 networks:
382 - port: { get_resource: k8s_6_private_port }
383 user_data_format: RAW
384 user_data:
385 str_replace:
386 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700387 __docker_proxy__: { get_param: docker_proxy }
388 __apt_proxy__: { get_param: apt_proxy }
389 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700390 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700391 template:
392 get_file: k8s_vm_entrypoint.sh
393
394 k8s_7_private_port:
395 type: OS::Neutron::Port
396 properties:
397 network: { get_resource: oam_network }
398 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
399 security_groups:
400 - { get_resource: onap_sg }
401
402 k8s_7_floating_ip:
403 type: OS::Neutron::FloatingIP
404 properties:
405 floating_network_id: { get_param: public_net_id }
406 port_id: { get_resource: k8s_7_private_port }
407
408 k8s_7_vm:
409 type: OS::Nova::Server
410 properties:
411 name: k8s_7
412 image: { get_param: ubuntu_1604_image }
413 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700414 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700415 networks:
416 - port: { get_resource: k8s_7_private_port }
417 user_data_format: RAW
418 user_data:
419 str_replace:
420 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700421 __docker_proxy__: { get_param: docker_proxy }
422 __apt_proxy__: { get_param: apt_proxy }
423 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700424 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu1ff56672018-01-17 20:51:45 -0800425 template:
426 get_file: k8s_vm_entrypoint.sh
Gary Wu7b416392018-01-19 13:16:49 -0800427
Gary Wu7d034582018-05-12 09:08:20 -0700428 k8s_8_private_port:
429 type: OS::Neutron::Port
430 properties:
431 network: { get_resource: oam_network }
432 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
433 security_groups:
434 - { get_resource: onap_sg }
435
436 k8s_8_floating_ip:
437 type: OS::Neutron::FloatingIP
438 properties:
439 floating_network_id: { get_param: public_net_id }
440 port_id: { get_resource: k8s_8_private_port }
441
442 k8s_8_vm:
443 type: OS::Nova::Server
444 properties:
445 name: k8s_8
446 image: { get_param: ubuntu_1604_image }
447 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700448 key_name: { get_param: key_name }
Gary Wu7d034582018-05-12 09:08:20 -0700449 networks:
450 - port: { get_resource: k8s_8_private_port }
451 user_data_format: RAW
452 user_data:
453 str_replace:
454 params:
455 __docker_proxy__: { get_param: docker_proxy }
456 __apt_proxy__: { get_param: apt_proxy }
457 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700458 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu7d034582018-05-12 09:08:20 -0700459 template:
460 get_file: k8s_vm_entrypoint.sh
461
462 k8s_9_private_port:
463 type: OS::Neutron::Port
464 properties:
465 network: { get_resource: oam_network }
466 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
467 security_groups:
468 - { get_resource: onap_sg }
469
470 k8s_9_floating_ip:
471 type: OS::Neutron::FloatingIP
472 properties:
473 floating_network_id: { get_param: public_net_id }
474 port_id: { get_resource: k8s_9_private_port }
475
476 k8s_9_vm:
477 type: OS::Nova::Server
478 properties:
479 name: k8s_9
480 image: { get_param: ubuntu_1604_image }
481 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700482 key_name: { get_param: key_name }
Gary Wu7d034582018-05-12 09:08:20 -0700483 networks:
484 - port: { get_resource: k8s_9_private_port }
485 user_data_format: RAW
486 user_data:
487 str_replace:
488 params:
489 __docker_proxy__: { get_param: docker_proxy }
490 __apt_proxy__: { get_param: apt_proxy }
491 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700492 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu7d034582018-05-12 09:08:20 -0700493 template:
494 get_file: k8s_vm_entrypoint.sh
495
Gary Wu276d5a42018-06-05 11:26:44 -0700496 k8s_10_private_port:
497 type: OS::Neutron::Port
498 properties:
499 network: { get_resource: oam_network }
500 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
501 security_groups:
502 - { get_resource: onap_sg }
503
504 k8s_10_floating_ip:
505 type: OS::Neutron::FloatingIP
506 properties:
507 floating_network_id: { get_param: public_net_id }
508 port_id: { get_resource: k8s_10_private_port }
509
510 k8s_10_vm:
511 type: OS::Nova::Server
512 properties:
513 name: k8s_10
514 image: { get_param: ubuntu_1604_image }
515 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700516 key_name: { get_param: key_name }
Gary Wu276d5a42018-06-05 11:26:44 -0700517 networks:
518 - port: { get_resource: k8s_10_private_port }
519 user_data_format: RAW
520 user_data:
521 str_replace:
522 params:
523 __docker_proxy__: { get_param: docker_proxy }
524 __apt_proxy__: { get_param: apt_proxy }
525 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700526 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu276d5a42018-06-05 11:26:44 -0700527 template:
528 get_file: k8s_vm_entrypoint.sh
529
530 k8s_11_private_port:
531 type: OS::Neutron::Port
532 properties:
533 network: { get_resource: oam_network }
534 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
535 security_groups:
536 - { get_resource: onap_sg }
537
538 k8s_11_floating_ip:
539 type: OS::Neutron::FloatingIP
540 properties:
541 floating_network_id: { get_param: public_net_id }
542 port_id: { get_resource: k8s_11_private_port }
543
544 k8s_11_vm:
545 type: OS::Nova::Server
546 properties:
547 name: k8s_11
548 image: { get_param: ubuntu_1604_image }
549 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700550 key_name: { get_param: key_name }
Gary Wu276d5a42018-06-05 11:26:44 -0700551 networks:
552 - port: { get_resource: k8s_11_private_port }
553 user_data_format: RAW
554 user_data:
555 str_replace:
556 params:
557 __docker_proxy__: { get_param: docker_proxy }
558 __apt_proxy__: { get_param: apt_proxy }
559 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700560 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu276d5a42018-06-05 11:26:44 -0700561 template:
562 get_file: k8s_vm_entrypoint.sh
563
Gary Wu14ee41d2018-01-19 15:03:59 -0800564outputs:
Gary Wu61034082018-01-22 12:48:50 -0800565 rancher_vm_ip:
566 description: The IP address of the rancher instance
Gary Wu5d325d02018-02-06 21:21:31 -0800567 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wu61034082018-01-22 12:48:50 -0800568
Gary Wu36e42dd2018-05-03 07:29:53 -0700569 k8s_1_vm_ip:
570 description: The IP address of the k8s_1 instance
571 value: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
572
573 k8s_2_vm_ip:
574 description: The IP address of the k8s_2 instance
575 value: { get_attr: [k8s_2_floating_ip, floating_ip_address] }
576
577 k8s_3_vm_ip:
578 description: The IP address of the k8s_3 instance
579 value: { get_attr: [k8s_3_floating_ip, floating_ip_address] }
580
581 k8s_4_vm_ip:
582 description: The IP address of the k8s_4 instance
583 value: { get_attr: [k8s_4_floating_ip, floating_ip_address] }
584
585 k8s_5_vm_ip:
586 description: The IP address of the k8s_5 instance
587 value: { get_attr: [k8s_5_floating_ip, floating_ip_address] }
588
589 k8s_6_vm_ip:
590 description: The IP address of the k8s_6 instance
591 value: { get_attr: [k8s_6_floating_ip, floating_ip_address] }
592
593 k8s_7_vm_ip:
594 description: The IP address of the k8s_7 instance
595 value: { get_attr: [k8s_7_floating_ip, floating_ip_address] }
596
Gary Wu7d034582018-05-12 09:08:20 -0700597 k8s_8_vm_ip:
598 description: The IP address of the k8s_8 instance
599 value: { get_attr: [k8s_8_floating_ip, floating_ip_address] }
600
601 k8s_9_vm_ip:
602 description: The IP address of the k8s_9 instance
603 value: { get_attr: [k8s_9_floating_ip, floating_ip_address] }
604
Gary Wu276d5a42018-06-05 11:26:44 -0700605 k8s_10_vm_ip:
606 description: The IP address of the k8s_10 instance
607 value: { get_attr: [k8s_10_floating_ip, floating_ip_address] }
608
609 k8s_11_vm_ip:
610 description: The IP address of the k8s_11 instance
611 value: { get_attr: [k8s_11_floating_ip, floating_ip_address] }
612