blob: f4b21ec67af0bb198c0993d848815ecd44ff0f55 [file] [log] [blame]
Gary Wu950a3232019-03-26 13:08:29 -07001#
2# Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST
3#
4heat_template_version: 2015-10-15
5description: ONAP on RKE Kubernetes using OOM
6
7parameters:
8 docker_proxy:
9 type: string
10
11 apt_proxy:
12 type: string
13
14 public_net_id:
15 type: string
16 description: The ID of the Public network for floating IP address allocation
17
18 oam_network_cidr:
19 type: string
20 description: CIDR of the OAM ONAP network
21
Gary Wucad70692019-04-24 10:45:56 -070022 oam_ext_network_cidr:
23 type: string
24 description: CIDR of the onap_oam_ext network
25
Gary Wu950a3232019-03-26 13:08:29 -070026 ubuntu_1804_image:
27 type: string
28 description: Name of the Ubuntu 18.04 image
29
30 rancher_vm_flavor:
31 type: string
32 description: VM flavor for Rancher
33
34 k8s_vm_flavor:
35 type: string
36 description: VM flavor for k8s hosts
37
38 etcd_vm_flavor:
39 type: string
40 description: VM flavor for etcd hosts
41
42 orch_vm_flavor:
43 type: string
44 description: VM flavor for orch hosts
45
46 integration_override_yaml:
47 type: string
48 description: Content for integration_override.yaml
49
50 integration_gerrit_branch:
51 type: string
52 default: "master"
53
54 integration_gerrit_refspec:
55 type: string
56 default: ""
57
58 oom_gerrit_branch:
59 type: string
60 default: "master"
61
62 oom_gerrit_refspec:
63 type: string
64 default: ""
65
66 docker_manifest:
67 type: string
68 default: ""
69
70 key_name:
71 type: string
72 default: "onap_key"
73
74 docker_version:
75 type: string
Gary Wu7ff8c6f2019-04-24 07:50:11 -070076 default: "18.09.5"
Gary Wu950a3232019-03-26 13:08:29 -070077
Gary Wu950a3232019-03-26 13:08:29 -070078 kubectl_version:
79 type: string
Gary Wuc76dadc2019-04-24 09:22:14 -070080 default: "1.13.5"
Gary Wu950a3232019-03-26 13:08:29 -070081
82 helm_version:
83 type: string
Gary Wuceff3472019-04-24 10:33:38 -070084 default: "2.12.3"
Gary Wu950a3232019-03-26 13:08:29 -070085
86 helm_deploy_delay:
87 type: string
88 default: "3m"
89
90 use_ramdisk:
91 type: string
92 description: Set to "true" if you want to use a RAM disk for /dockerdata-nfs/.
93 default: "false"
94
95 mtu:
96 type: number
97 default: 1500
98
99 portal_hostname:
100 type: string
101 description: The FQDN of the k8s host that will be used for the Portal UI component URLs; this needs to be resolveable at the client
102 default: "portal.api.simpledemo.onap.org"
103
104resources:
105 random-str:
106 type: OS::Heat::RandomString
107 properties:
108 length: 4
109
110 # ONAP security group
111 onap_sg:
112 type: OS::Neutron::SecurityGroup
113 properties:
114 name:
115 str_replace:
116 template: base_rand
117 params:
118 base: onap_sg
119 rand: { get_resource: random-str }
120 description: security group used by ONAP
121 rules:
122 # All egress traffic
123 - direction: egress
124 ethertype: IPv4
125 - direction: egress
126 ethertype: IPv6
127 # ingress traffic
128 # ICMP
129 - protocol: icmp
130 - protocol: udp
131 port_range_min: 1
132 port_range_max: 65535
133 - protocol: tcp
134 port_range_min: 1
135 port_range_max: 65535
136 # Protocols used for vLB/vDNS use case
137 - protocol: 47
138 - protocol: 53
139 - protocol: 132
140
Gary Wucad70692019-04-24 10:45:56 -0700141 router:
142 type: OS::Neutron::Router
143 properties:
144 name:
145 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
146 external_gateway_info:
147 network: { get_param: public_net_id }
Gary Wu950a3232019-03-26 13:08:29 -0700148
149 # ONAP management private network
150 oam_network:
151 type: OS::Neutron::Net
152 properties:
153 name:
154 str_replace:
155 template: oam_network_rand
156 params:
157 rand: { get_resource: random-str }
158
159 oam_subnet:
160 type: OS::Neutron::Subnet
161 properties:
162 name:
163 str_replace:
164 template: oam_network_rand
165 params:
166 rand: { get_resource: random-str }
167 network_id: { get_resource: oam_network }
168 cidr: { get_param: oam_network_cidr }
169 dns_nameservers: [ "8.8.8.8" ]
170
Gary Wucad70692019-04-24 10:45:56 -0700171 oam_router_interface:
Gary Wu950a3232019-03-26 13:08:29 -0700172 type: OS::Neutron::RouterInterface
173 properties:
174 router_id: { get_resource: router }
175 subnet_id: { get_resource: oam_subnet }
176
Gary Wucad70692019-04-24 10:45:56 -0700177 oam_ext_network:
178 type: OS::Neutron::Net
179 properties:
180 name: onap_oam_ext
181
182 oam_ext_subnet:
183 type: OS::Neutron::Subnet
184 properties:
185 name: onap_oam_ext
186 network_id: { get_resource: oam_ext_network }
187 cidr: { get_param: oam_ext_network_cidr }
188 dns_nameservers: [ "8.8.8.8" ]
189
190 oam_ext_router_interface:
191 type: OS::Neutron::RouterInterface
192 properties:
193 router_id: { get_resource: router }
194 subnet_id: { get_resource: oam_ext_subnet }
195
Gary Wu950a3232019-03-26 13:08:29 -0700196 rancher_private_port:
197 type: OS::Neutron::Port
198 properties:
199 network: { get_resource: oam_network }
200 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
201 security_groups:
202 - { get_resource: onap_sg }
203
204 rancher_floating_ip:
205 type: OS::Neutron::FloatingIP
206 properties:
207 floating_network_id: { get_param: public_net_id }
208 port_id: { get_resource: rancher_private_port }
209
210 rancher_vm:
211 type: OS::Nova::Server
212 properties:
213 name:
214 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'rancher']]
215 image: { get_param: ubuntu_1804_image }
216 flavor: { get_param: rancher_vm_flavor }
217 key_name: { get_param: key_name }
218 networks:
219 - port: { get_resource: rancher_private_port }
220 user_data_format: RAW
221 user_data:
222 str_replace:
223 template:
224 get_file: rancher_vm_entrypoint.sh
225 params:
226 __docker_proxy__: { get_param: docker_proxy }
227 __apt_proxy__: { get_param: apt_proxy }
228 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
229 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
230 __integration_override_yaml__: { get_param: integration_override_yaml }
231 __integration_gerrit_branch__: { get_param: integration_gerrit_branch }
232 __integration_gerrit_refspec__: { get_param: integration_gerrit_refspec }
233 __oom_gerrit_branch__: { get_param: oom_gerrit_branch }
234 __oom_gerrit_refspec__: { get_param: oom_gerrit_refspec }
235 __docker_manifest__: { get_param: docker_manifest }
236 __docker_version__: { get_param: docker_version }
Gary Wu950a3232019-03-26 13:08:29 -0700237 __kubectl_version__: { get_param: kubectl_version }
238 __helm_version__: { get_param: helm_version }
239 __helm_deploy_delay__: { get_param: helm_deploy_delay }
240 __use_ramdisk__: { get_param: use_ramdisk }
241 __mtu__: { get_param: mtu }
242 __portal_hostname__: { get_param: portal_hostname }
243 __public_net_id__: { get_param: public_net_id }
244 __oam_network_cidr__: { get_param: oam_network_cidr }
245 __oam_network_id__: { get_resource: oam_network }
246 __oam_subnet_id__: { get_resource: oam_subnet }
247 __sec_group__: { get_resource: onap_sg }
248 __k8s_01_vm_ip__: { get_attr: [k8s_01_floating_ip, floating_ip_address] }
249 __k8s_vm_ips__: [
250 get_attr: [k8s_01_floating_ip, floating_ip_address],
251 get_attr: [k8s_02_floating_ip, floating_ip_address],
252 get_attr: [k8s_03_floating_ip, floating_ip_address],
253 get_attr: [k8s_04_floating_ip, floating_ip_address],
254 get_attr: [k8s_05_floating_ip, floating_ip_address],
255 get_attr: [k8s_06_floating_ip, floating_ip_address],
Gary Wu415f6a82019-04-11 15:56:27 -0700256 get_attr: [k8s_07_floating_ip, floating_ip_address],
257 get_attr: [k8s_08_floating_ip, floating_ip_address],
258 get_attr: [k8s_09_floating_ip, floating_ip_address],
259 get_attr: [k8s_10_floating_ip, floating_ip_address],
260 get_attr: [k8s_11_floating_ip, floating_ip_address],
261 get_attr: [k8s_12_floating_ip, floating_ip_address],
Gary Wu950a3232019-03-26 13:08:29 -0700262 ]
263 __k8s_private_ips__: [
264 get_attr: [k8s_01_floating_ip, fixed_ip_address],
265 get_attr: [k8s_02_floating_ip, fixed_ip_address],
266 get_attr: [k8s_03_floating_ip, fixed_ip_address],
267 get_attr: [k8s_04_floating_ip, fixed_ip_address],
268 get_attr: [k8s_05_floating_ip, fixed_ip_address],
269 get_attr: [k8s_06_floating_ip, fixed_ip_address],
Gary Wu415f6a82019-04-11 15:56:27 -0700270 get_attr: [k8s_07_floating_ip, fixed_ip_address],
271 get_attr: [k8s_08_floating_ip, fixed_ip_address],
272 get_attr: [k8s_09_floating_ip, fixed_ip_address],
273 get_attr: [k8s_10_floating_ip, fixed_ip_address],
274 get_attr: [k8s_11_floating_ip, fixed_ip_address],
275 get_attr: [k8s_12_floating_ip, fixed_ip_address],
Gary Wu950a3232019-03-26 13:08:29 -0700276 ]
277 k8s_01_private_port:
278 type: OS::Neutron::Port
279 properties:
280 network: { get_resource: oam_network }
281 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
282 security_groups:
283 - { get_resource: onap_sg }
284
285 k8s_01_floating_ip:
286 type: OS::Neutron::FloatingIP
287 properties:
288 floating_network_id: { get_param: public_net_id }
289 port_id: { get_resource: k8s_01_private_port }
290
291 k8s_01_vm_scripts:
292 type: OS::Heat::CloudConfig
293 properties:
294 cloud_config:
295 power_state:
296 mode: reboot
297 runcmd:
298 - [ /opt/k8s_vm_install.sh ]
299 write_files:
300 - path: /opt/k8s_vm_install.sh
301 permissions: '0755'
302 content:
303 str_replace:
304 params:
305 __docker_proxy__: { get_param: docker_proxy }
306 __apt_proxy__: { get_param: apt_proxy }
307 __docker_version__: { get_param: docker_version }
308 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
309 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
310 __host_private_ip_addr__: { get_attr: [k8s_01_floating_ip, fixed_ip_address] }
311 __mtu__: { get_param: mtu }
312 template:
313 get_file: k8s_vm_install.sh
314 - path: /opt/k8s_vm_init.sh
315 permissions: '0755'
316 content:
317 str_replace:
318 params:
319 __host_private_ip_addr__: { get_attr: [k8s_01_floating_ip, fixed_ip_address] }
320 __host_label__: 'compute'
321 template:
322 get_file: k8s_vm_init.sh
323 - path: /etc/init.d/k8s_vm_init_serv
324 permissions: '0755'
325 content:
326 get_file: k8s_vm_init_serv.sh
327
328 k8s_01_vm_config:
329 type: OS::Heat::MultipartMime
330 properties:
331 parts:
332 - config: { get_resource: k8s_01_vm_scripts }
333
334 k8s_01_vm:
335 type: OS::Nova::Server
336 properties:
337 name:
338 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '01' ] ]
339 image: { get_param: ubuntu_1804_image }
340 flavor: { get_param: k8s_vm_flavor }
341 key_name: { get_param: key_name }
342 networks:
343 - port: { get_resource: k8s_01_private_port }
344 user_data_format: SOFTWARE_CONFIG
345 user_data: { get_resource: k8s_01_vm_config }
346
347 k8s_02_private_port:
348 type: OS::Neutron::Port
349 properties:
350 network: { get_resource: oam_network }
351 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
352 security_groups:
353 - { get_resource: onap_sg }
354
355 k8s_02_floating_ip:
356 type: OS::Neutron::FloatingIP
357 properties:
358 floating_network_id: { get_param: public_net_id }
359 port_id: { get_resource: k8s_02_private_port }
360
361 k8s_02_vm_scripts:
362 type: OS::Heat::CloudConfig
363 properties:
364 cloud_config:
365 power_state:
366 mode: reboot
367 runcmd:
368 - [ /opt/k8s_vm_install.sh ]
369 write_files:
370 - path: /opt/k8s_vm_install.sh
371 permissions: '0755'
372 content:
373 str_replace:
374 params:
375 __docker_proxy__: { get_param: docker_proxy }
376 __apt_proxy__: { get_param: apt_proxy }
377 __docker_version__: { get_param: docker_version }
378 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
379 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
380 __host_private_ip_addr__: { get_attr: [k8s_02_floating_ip, fixed_ip_address] }
381 __mtu__: { get_param: mtu }
382 template:
383 get_file: k8s_vm_install.sh
384 - path: /opt/k8s_vm_init.sh
385 permissions: '0755'
386 content:
387 str_replace:
388 params:
389 __host_private_ip_addr__: { get_attr: [k8s_02_floating_ip, fixed_ip_address] }
390 __host_label__: 'compute'
391 template:
392 get_file: k8s_vm_init.sh
393 - path: /etc/init.d/k8s_vm_init_serv
394 permissions: '0755'
395 content:
396 get_file: k8s_vm_init_serv.sh
397
398 k8s_02_vm_config:
399 type: OS::Heat::MultipartMime
400 properties:
401 parts:
402 - config: { get_resource: k8s_02_vm_scripts }
403
404 k8s_02_vm:
405 type: OS::Nova::Server
406 properties:
407 name:
408 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '02' ] ]
409 image: { get_param: ubuntu_1804_image }
410 flavor: { get_param: k8s_vm_flavor }
411 key_name: { get_param: key_name }
412 networks:
413 - port: { get_resource: k8s_02_private_port }
414 user_data_format: SOFTWARE_CONFIG
415 user_data: { get_resource: k8s_02_vm_config }
416
417 k8s_03_private_port:
418 type: OS::Neutron::Port
419 properties:
420 network: { get_resource: oam_network }
421 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
422 security_groups:
423 - { get_resource: onap_sg }
424
425 k8s_03_floating_ip:
426 type: OS::Neutron::FloatingIP
427 properties:
428 floating_network_id: { get_param: public_net_id }
429 port_id: { get_resource: k8s_03_private_port }
430
431 k8s_03_vm_scripts:
432 type: OS::Heat::CloudConfig
433 properties:
434 cloud_config:
435 power_state:
436 mode: reboot
437 runcmd:
438 - [ /opt/k8s_vm_install.sh ]
439 write_files:
440 - path: /opt/k8s_vm_install.sh
441 permissions: '0755'
442 content:
443 str_replace:
444 params:
445 __docker_proxy__: { get_param: docker_proxy }
446 __apt_proxy__: { get_param: apt_proxy }
447 __docker_version__: { get_param: docker_version }
448 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
449 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
450 __host_private_ip_addr__: { get_attr: [k8s_03_floating_ip, fixed_ip_address] }
451 __mtu__: { get_param: mtu }
452 template:
453 get_file: k8s_vm_install.sh
454 - path: /opt/k8s_vm_init.sh
455 permissions: '0755'
456 content:
457 str_replace:
458 params:
459 __host_private_ip_addr__: { get_attr: [k8s_03_floating_ip, fixed_ip_address] }
460 __host_label__: 'compute'
461 template:
462 get_file: k8s_vm_init.sh
463 - path: /etc/init.d/k8s_vm_init_serv
464 permissions: '0755'
465 content:
466 get_file: k8s_vm_init_serv.sh
467
468 k8s_03_vm_config:
469 type: OS::Heat::MultipartMime
470 properties:
471 parts:
472 - config: { get_resource: k8s_03_vm_scripts }
473
474 k8s_03_vm:
475 type: OS::Nova::Server
476 properties:
477 name:
478 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '03' ] ]
479 image: { get_param: ubuntu_1804_image }
480 flavor: { get_param: k8s_vm_flavor }
481 key_name: { get_param: key_name }
482 networks:
483 - port: { get_resource: k8s_03_private_port }
484 user_data_format: SOFTWARE_CONFIG
485 user_data: { get_resource: k8s_03_vm_config }
486
487 k8s_04_private_port:
488 type: OS::Neutron::Port
489 properties:
490 network: { get_resource: oam_network }
491 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
492 security_groups:
493 - { get_resource: onap_sg }
494
495 k8s_04_floating_ip:
496 type: OS::Neutron::FloatingIP
497 properties:
498 floating_network_id: { get_param: public_net_id }
499 port_id: { get_resource: k8s_04_private_port }
500
501 k8s_04_vm_scripts:
502 type: OS::Heat::CloudConfig
503 properties:
504 cloud_config:
505 power_state:
506 mode: reboot
507 runcmd:
508 - [ /opt/k8s_vm_install.sh ]
509 write_files:
510 - path: /opt/k8s_vm_install.sh
511 permissions: '0755'
512 content:
513 str_replace:
514 params:
515 __docker_proxy__: { get_param: docker_proxy }
516 __apt_proxy__: { get_param: apt_proxy }
517 __docker_version__: { get_param: docker_version }
518 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
519 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
520 __host_private_ip_addr__: { get_attr: [k8s_04_floating_ip, fixed_ip_address] }
521 __mtu__: { get_param: mtu }
522 template:
523 get_file: k8s_vm_install.sh
524 - path: /opt/k8s_vm_init.sh
525 permissions: '0755'
526 content:
527 str_replace:
528 params:
529 __host_private_ip_addr__: { get_attr: [k8s_04_floating_ip, fixed_ip_address] }
530 __host_label__: 'compute'
531 template:
532 get_file: k8s_vm_init.sh
533 - path: /etc/init.d/k8s_vm_init_serv
534 permissions: '0755'
535 content:
536 get_file: k8s_vm_init_serv.sh
537
538 k8s_04_vm_config:
539 type: OS::Heat::MultipartMime
540 properties:
541 parts:
542 - config: { get_resource: k8s_04_vm_scripts }
543
544 k8s_04_vm:
545 type: OS::Nova::Server
546 properties:
547 name:
548 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '04' ] ]
549 image: { get_param: ubuntu_1804_image }
550 flavor: { get_param: k8s_vm_flavor }
551 key_name: { get_param: key_name }
552 networks:
553 - port: { get_resource: k8s_04_private_port }
554 user_data_format: SOFTWARE_CONFIG
555 user_data: { get_resource: k8s_04_vm_config }
556
557 k8s_05_private_port:
558 type: OS::Neutron::Port
559 properties:
560 network: { get_resource: oam_network }
561 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
562 security_groups:
563 - { get_resource: onap_sg }
564
565 k8s_05_floating_ip:
566 type: OS::Neutron::FloatingIP
567 properties:
568 floating_network_id: { get_param: public_net_id }
569 port_id: { get_resource: k8s_05_private_port }
570
571 k8s_05_vm_scripts:
572 type: OS::Heat::CloudConfig
573 properties:
574 cloud_config:
575 power_state:
576 mode: reboot
577 runcmd:
578 - [ /opt/k8s_vm_install.sh ]
579 write_files:
580 - path: /opt/k8s_vm_install.sh
581 permissions: '0755'
582 content:
583 str_replace:
584 params:
585 __docker_proxy__: { get_param: docker_proxy }
586 __apt_proxy__: { get_param: apt_proxy }
587 __docker_version__: { get_param: docker_version }
588 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
589 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
590 __host_private_ip_addr__: { get_attr: [k8s_05_floating_ip, fixed_ip_address] }
591 __mtu__: { get_param: mtu }
592 template:
593 get_file: k8s_vm_install.sh
594 - path: /opt/k8s_vm_init.sh
595 permissions: '0755'
596 content:
597 str_replace:
598 params:
599 __host_private_ip_addr__: { get_attr: [k8s_05_floating_ip, fixed_ip_address] }
600 __host_label__: 'compute'
601 template:
602 get_file: k8s_vm_init.sh
603 - path: /etc/init.d/k8s_vm_init_serv
604 permissions: '0755'
605 content:
606 get_file: k8s_vm_init_serv.sh
607
608 k8s_05_vm_config:
609 type: OS::Heat::MultipartMime
610 properties:
611 parts:
612 - config: { get_resource: k8s_05_vm_scripts }
613
614 k8s_05_vm:
615 type: OS::Nova::Server
616 properties:
617 name:
618 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '05' ] ]
619 image: { get_param: ubuntu_1804_image }
620 flavor: { get_param: k8s_vm_flavor }
621 key_name: { get_param: key_name }
622 networks:
623 - port: { get_resource: k8s_05_private_port }
624 user_data_format: SOFTWARE_CONFIG
625 user_data: { get_resource: k8s_05_vm_config }
626
627 k8s_06_private_port:
628 type: OS::Neutron::Port
629 properties:
630 network: { get_resource: oam_network }
631 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
632 security_groups:
633 - { get_resource: onap_sg }
634
635 k8s_06_floating_ip:
636 type: OS::Neutron::FloatingIP
637 properties:
638 floating_network_id: { get_param: public_net_id }
639 port_id: { get_resource: k8s_06_private_port }
640
641 k8s_06_vm_scripts:
642 type: OS::Heat::CloudConfig
643 properties:
644 cloud_config:
645 power_state:
646 mode: reboot
647 runcmd:
648 - [ /opt/k8s_vm_install.sh ]
649 write_files:
650 - path: /opt/k8s_vm_install.sh
651 permissions: '0755'
652 content:
653 str_replace:
654 params:
655 __docker_proxy__: { get_param: docker_proxy }
656 __apt_proxy__: { get_param: apt_proxy }
657 __docker_version__: { get_param: docker_version }
658 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
659 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
660 __host_private_ip_addr__: { get_attr: [k8s_06_floating_ip, fixed_ip_address] }
661 __mtu__: { get_param: mtu }
662 template:
663 get_file: k8s_vm_install.sh
664 - path: /opt/k8s_vm_init.sh
665 permissions: '0755'
666 content:
667 str_replace:
668 params:
669 __host_private_ip_addr__: { get_attr: [k8s_06_floating_ip, fixed_ip_address] }
670 __host_label__: 'compute'
671 template:
672 get_file: k8s_vm_init.sh
673 - path: /etc/init.d/k8s_vm_init_serv
674 permissions: '0755'
675 content:
676 get_file: k8s_vm_init_serv.sh
677
678 k8s_06_vm_config:
679 type: OS::Heat::MultipartMime
680 properties:
681 parts:
682 - config: { get_resource: k8s_06_vm_scripts }
683
684 k8s_06_vm:
685 type: OS::Nova::Server
686 properties:
687 name:
688 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '06' ] ]
689 image: { get_param: ubuntu_1804_image }
690 flavor: { get_param: k8s_vm_flavor }
691 key_name: { get_param: key_name }
692 networks:
693 - port: { get_resource: k8s_06_private_port }
694 user_data_format: SOFTWARE_CONFIG
695 user_data: { get_resource: k8s_06_vm_config }
696
Gary Wu415f6a82019-04-11 15:56:27 -0700697 k8s_07_private_port:
698 type: OS::Neutron::Port
699 properties:
700 network: { get_resource: oam_network }
701 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
702 security_groups:
703 - { get_resource: onap_sg }
704
705 k8s_07_floating_ip:
706 type: OS::Neutron::FloatingIP
707 properties:
708 floating_network_id: { get_param: public_net_id }
709 port_id: { get_resource: k8s_07_private_port }
710
711 k8s_07_vm_scripts:
712 type: OS::Heat::CloudConfig
713 properties:
714 cloud_config:
715 power_state:
716 mode: reboot
717 runcmd:
718 - [ /opt/k8s_vm_install.sh ]
719 write_files:
720 - path: /opt/k8s_vm_install.sh
721 permissions: '0755'
722 content:
723 str_replace:
724 params:
725 __docker_proxy__: { get_param: docker_proxy }
726 __apt_proxy__: { get_param: apt_proxy }
727 __docker_version__: { get_param: docker_version }
728 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
729 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
730 __host_private_ip_addr__: { get_attr: [k8s_07_floating_ip, fixed_ip_address] }
731 __mtu__: { get_param: mtu }
732 template:
733 get_file: k8s_vm_install.sh
734 - path: /opt/k8s_vm_init.sh
735 permissions: '0755'
736 content:
737 str_replace:
738 params:
739 __host_private_ip_addr__: { get_attr: [k8s_07_floating_ip, fixed_ip_address] }
740 __host_label__: 'compute'
741 template:
742 get_file: k8s_vm_init.sh
743 - path: /etc/init.d/k8s_vm_init_serv
744 permissions: '0755'
745 content:
746 get_file: k8s_vm_init_serv.sh
747
748 k8s_07_vm_config:
749 type: OS::Heat::MultipartMime
750 properties:
751 parts:
752 - config: { get_resource: k8s_07_vm_scripts }
753
754 k8s_07_vm:
755 type: OS::Nova::Server
756 properties:
757 name:
758 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '07' ] ]
759 image: { get_param: ubuntu_1804_image }
760 flavor: { get_param: k8s_vm_flavor }
761 key_name: { get_param: key_name }
762 networks:
763 - port: { get_resource: k8s_07_private_port }
764 user_data_format: SOFTWARE_CONFIG
765 user_data: { get_resource: k8s_07_vm_config }
766
767 k8s_08_private_port:
768 type: OS::Neutron::Port
769 properties:
770 network: { get_resource: oam_network }
771 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
772 security_groups:
773 - { get_resource: onap_sg }
774
775 k8s_08_floating_ip:
776 type: OS::Neutron::FloatingIP
777 properties:
778 floating_network_id: { get_param: public_net_id }
779 port_id: { get_resource: k8s_08_private_port }
780
781 k8s_08_vm_scripts:
782 type: OS::Heat::CloudConfig
783 properties:
784 cloud_config:
785 power_state:
786 mode: reboot
787 runcmd:
788 - [ /opt/k8s_vm_install.sh ]
789 write_files:
790 - path: /opt/k8s_vm_install.sh
791 permissions: '0755'
792 content:
793 str_replace:
794 params:
795 __docker_proxy__: { get_param: docker_proxy }
796 __apt_proxy__: { get_param: apt_proxy }
797 __docker_version__: { get_param: docker_version }
798 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
799 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
800 __host_private_ip_addr__: { get_attr: [k8s_08_floating_ip, fixed_ip_address] }
801 __mtu__: { get_param: mtu }
802 template:
803 get_file: k8s_vm_install.sh
804 - path: /opt/k8s_vm_init.sh
805 permissions: '0755'
806 content:
807 str_replace:
808 params:
809 __host_private_ip_addr__: { get_attr: [k8s_08_floating_ip, fixed_ip_address] }
810 __host_label__: 'compute'
811 template:
812 get_file: k8s_vm_init.sh
813 - path: /etc/init.d/k8s_vm_init_serv
814 permissions: '0755'
815 content:
816 get_file: k8s_vm_init_serv.sh
817
818 k8s_08_vm_config:
819 type: OS::Heat::MultipartMime
820 properties:
821 parts:
822 - config: { get_resource: k8s_08_vm_scripts }
823
824 k8s_08_vm:
825 type: OS::Nova::Server
826 properties:
827 name:
828 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '08' ] ]
829 image: { get_param: ubuntu_1804_image }
830 flavor: { get_param: k8s_vm_flavor }
831 key_name: { get_param: key_name }
832 networks:
833 - port: { get_resource: k8s_08_private_port }
834 user_data_format: SOFTWARE_CONFIG
835 user_data: { get_resource: k8s_08_vm_config }
836
837 k8s_09_private_port:
838 type: OS::Neutron::Port
839 properties:
840 network: { get_resource: oam_network }
841 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
842 security_groups:
843 - { get_resource: onap_sg }
844
845 k8s_09_floating_ip:
846 type: OS::Neutron::FloatingIP
847 properties:
848 floating_network_id: { get_param: public_net_id }
849 port_id: { get_resource: k8s_09_private_port }
850
851 k8s_09_vm_scripts:
852 type: OS::Heat::CloudConfig
853 properties:
854 cloud_config:
855 power_state:
856 mode: reboot
857 runcmd:
858 - [ /opt/k8s_vm_install.sh ]
859 write_files:
860 - path: /opt/k8s_vm_install.sh
861 permissions: '0755'
862 content:
863 str_replace:
864 params:
865 __docker_proxy__: { get_param: docker_proxy }
866 __apt_proxy__: { get_param: apt_proxy }
867 __docker_version__: { get_param: docker_version }
868 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
869 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
870 __host_private_ip_addr__: { get_attr: [k8s_09_floating_ip, fixed_ip_address] }
871 __mtu__: { get_param: mtu }
872 template:
873 get_file: k8s_vm_install.sh
874 - path: /opt/k8s_vm_init.sh
875 permissions: '0755'
876 content:
877 str_replace:
878 params:
879 __host_private_ip_addr__: { get_attr: [k8s_09_floating_ip, fixed_ip_address] }
880 __host_label__: 'compute'
881 template:
882 get_file: k8s_vm_init.sh
883 - path: /etc/init.d/k8s_vm_init_serv
884 permissions: '0755'
885 content:
886 get_file: k8s_vm_init_serv.sh
887
888 k8s_09_vm_config:
889 type: OS::Heat::MultipartMime
890 properties:
891 parts:
892 - config: { get_resource: k8s_09_vm_scripts }
893
894 k8s_09_vm:
895 type: OS::Nova::Server
896 properties:
897 name:
898 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '09' ] ]
899 image: { get_param: ubuntu_1804_image }
900 flavor: { get_param: k8s_vm_flavor }
901 key_name: { get_param: key_name }
902 networks:
903 - port: { get_resource: k8s_09_private_port }
904 user_data_format: SOFTWARE_CONFIG
905 user_data: { get_resource: k8s_09_vm_config }
906
907 k8s_10_private_port:
908 type: OS::Neutron::Port
909 properties:
910 network: { get_resource: oam_network }
911 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
912 security_groups:
913 - { get_resource: onap_sg }
914
915 k8s_10_floating_ip:
916 type: OS::Neutron::FloatingIP
917 properties:
918 floating_network_id: { get_param: public_net_id }
919 port_id: { get_resource: k8s_10_private_port }
920
921 k8s_10_vm_scripts:
922 type: OS::Heat::CloudConfig
923 properties:
924 cloud_config:
925 power_state:
926 mode: reboot
927 runcmd:
928 - [ /opt/k8s_vm_install.sh ]
929 write_files:
930 - path: /opt/k8s_vm_install.sh
931 permissions: '0755'
932 content:
933 str_replace:
934 params:
935 __docker_proxy__: { get_param: docker_proxy }
936 __apt_proxy__: { get_param: apt_proxy }
937 __docker_version__: { get_param: docker_version }
938 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
939 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
940 __host_private_ip_addr__: { get_attr: [k8s_10_floating_ip, fixed_ip_address] }
941 __mtu__: { get_param: mtu }
942 template:
943 get_file: k8s_vm_install.sh
944 - path: /opt/k8s_vm_init.sh
945 permissions: '0755'
946 content:
947 str_replace:
948 params:
949 __host_private_ip_addr__: { get_attr: [k8s_10_floating_ip, fixed_ip_address] }
950 __host_label__: 'compute'
951 template:
952 get_file: k8s_vm_init.sh
953 - path: /etc/init.d/k8s_vm_init_serv
954 permissions: '0755'
955 content:
956 get_file: k8s_vm_init_serv.sh
957
958 k8s_10_vm_config:
959 type: OS::Heat::MultipartMime
960 properties:
961 parts:
962 - config: { get_resource: k8s_10_vm_scripts }
963
964 k8s_10_vm:
965 type: OS::Nova::Server
966 properties:
967 name:
968 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '10' ] ]
969 image: { get_param: ubuntu_1804_image }
970 flavor: { get_param: k8s_vm_flavor }
971 key_name: { get_param: key_name }
972 networks:
973 - port: { get_resource: k8s_10_private_port }
974 user_data_format: SOFTWARE_CONFIG
975 user_data: { get_resource: k8s_10_vm_config }
976
977 k8s_11_private_port:
978 type: OS::Neutron::Port
979 properties:
980 network: { get_resource: oam_network }
981 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
982 security_groups:
983 - { get_resource: onap_sg }
984
985 k8s_11_floating_ip:
986 type: OS::Neutron::FloatingIP
987 properties:
988 floating_network_id: { get_param: public_net_id }
989 port_id: { get_resource: k8s_11_private_port }
990
991 k8s_11_vm_scripts:
992 type: OS::Heat::CloudConfig
993 properties:
994 cloud_config:
995 power_state:
996 mode: reboot
997 runcmd:
998 - [ /opt/k8s_vm_install.sh ]
999 write_files:
1000 - path: /opt/k8s_vm_install.sh
1001 permissions: '0755'
1002 content:
1003 str_replace:
1004 params:
1005 __docker_proxy__: { get_param: docker_proxy }
1006 __apt_proxy__: { get_param: apt_proxy }
1007 __docker_version__: { get_param: docker_version }
1008 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
1009 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
1010 __host_private_ip_addr__: { get_attr: [k8s_11_floating_ip, fixed_ip_address] }
1011 __mtu__: { get_param: mtu }
1012 template:
1013 get_file: k8s_vm_install.sh
1014 - path: /opt/k8s_vm_init.sh
1015 permissions: '0755'
1016 content:
1017 str_replace:
1018 params:
1019 __host_private_ip_addr__: { get_attr: [k8s_11_floating_ip, fixed_ip_address] }
1020 __host_label__: 'compute'
1021 template:
1022 get_file: k8s_vm_init.sh
1023 - path: /etc/init.d/k8s_vm_init_serv
1024 permissions: '0755'
1025 content:
1026 get_file: k8s_vm_init_serv.sh
1027
1028 k8s_11_vm_config:
1029 type: OS::Heat::MultipartMime
1030 properties:
1031 parts:
1032 - config: { get_resource: k8s_11_vm_scripts }
1033
1034 k8s_11_vm:
1035 type: OS::Nova::Server
1036 properties:
1037 name:
1038 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '11' ] ]
1039 image: { get_param: ubuntu_1804_image }
1040 flavor: { get_param: k8s_vm_flavor }
1041 key_name: { get_param: key_name }
1042 networks:
1043 - port: { get_resource: k8s_11_private_port }
1044 user_data_format: SOFTWARE_CONFIG
1045 user_data: { get_resource: k8s_11_vm_config }
1046
1047 k8s_12_private_port:
1048 type: OS::Neutron::Port
1049 properties:
1050 network: { get_resource: oam_network }
1051 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
1052 security_groups:
1053 - { get_resource: onap_sg }
1054
1055 k8s_12_floating_ip:
1056 type: OS::Neutron::FloatingIP
1057 properties:
1058 floating_network_id: { get_param: public_net_id }
1059 port_id: { get_resource: k8s_12_private_port }
1060
1061 k8s_12_vm_scripts:
1062 type: OS::Heat::CloudConfig
1063 properties:
1064 cloud_config:
1065 power_state:
1066 mode: reboot
1067 runcmd:
1068 - [ /opt/k8s_vm_install.sh ]
1069 write_files:
1070 - path: /opt/k8s_vm_install.sh
1071 permissions: '0755'
1072 content:
1073 str_replace:
1074 params:
1075 __docker_proxy__: { get_param: docker_proxy }
1076 __apt_proxy__: { get_param: apt_proxy }
1077 __docker_version__: { get_param: docker_version }
1078 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
1079 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
1080 __host_private_ip_addr__: { get_attr: [k8s_12_floating_ip, fixed_ip_address] }
1081 __mtu__: { get_param: mtu }
1082 template:
1083 get_file: k8s_vm_install.sh
1084 - path: /opt/k8s_vm_init.sh
1085 permissions: '0755'
1086 content:
1087 str_replace:
1088 params:
1089 __host_private_ip_addr__: { get_attr: [k8s_12_floating_ip, fixed_ip_address] }
1090 __host_label__: 'compute'
1091 template:
1092 get_file: k8s_vm_init.sh
1093 - path: /etc/init.d/k8s_vm_init_serv
1094 permissions: '0755'
1095 content:
1096 get_file: k8s_vm_init_serv.sh
1097
1098 k8s_12_vm_config:
1099 type: OS::Heat::MultipartMime
1100 properties:
1101 parts:
1102 - config: { get_resource: k8s_12_vm_scripts }
1103
1104 k8s_12_vm:
1105 type: OS::Nova::Server
1106 properties:
1107 name:
1108 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '12' ] ]
1109 image: { get_param: ubuntu_1804_image }
1110 flavor: { get_param: k8s_vm_flavor }
1111 key_name: { get_param: key_name }
1112 networks:
1113 - port: { get_resource: k8s_12_private_port }
1114 user_data_format: SOFTWARE_CONFIG
1115 user_data: { get_resource: k8s_12_vm_config }
1116
Gary Wu950a3232019-03-26 13:08:29 -07001117 orch_1_private_port:
1118 type: OS::Neutron::Port
1119 properties:
1120 network: { get_resource: oam_network }
1121 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
1122 security_groups:
1123 - { get_resource: onap_sg }
1124
1125 orch_1_floating_ip:
1126 type: OS::Neutron::FloatingIP
1127 properties:
1128 floating_network_id: { get_param: public_net_id }
1129 port_id: { get_resource: orch_1_private_port }
1130
1131 orch_1_vm_scripts:
1132 type: OS::Heat::CloudConfig
1133 properties:
1134 cloud_config:
1135 power_state:
1136 mode: reboot
1137 runcmd:
1138 - [ /opt/k8s_vm_install.sh ]
1139 write_files:
1140 - path: /opt/k8s_vm_install.sh
1141 permissions: '0755'
1142 content:
1143 str_replace:
1144 params:
1145 __docker_proxy__: { get_param: docker_proxy }
1146 __apt_proxy__: { get_param: apt_proxy }
1147 __docker_version__: { get_param: docker_version }
1148 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
1149 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
1150 __host_private_ip_addr__: { get_attr: [orch_1_floating_ip, fixed_ip_address] }
1151 __mtu__: { get_param: mtu }
1152 template:
1153 get_file: k8s_vm_install.sh
1154 - path: /opt/k8s_vm_init.sh
1155 permissions: '0755'
1156 content:
1157 str_replace:
1158 params:
1159 __host_private_ip_addr__: { get_attr: [orch_1_floating_ip, fixed_ip_address] }
1160 __host_label__: 'orchestration'
1161 template:
1162 get_file: k8s_vm_init.sh
1163 - path: /etc/init.d/k8s_vm_init_serv
1164 permissions: '0755'
1165 content:
1166 get_file: k8s_vm_init_serv.sh
1167
1168 orch_1_vm_config:
1169 type: OS::Heat::MultipartMime
1170 properties:
1171 parts:
1172 - config: { get_resource: orch_1_vm_scripts }
1173
1174 orch_1_vm:
1175 type: OS::Nova::Server
1176 properties:
1177 name:
1178 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '1' ] ]
1179 image: { get_param: ubuntu_1804_image }
1180 flavor: { get_param: orch_vm_flavor }
1181 key_name: { get_param: key_name }
1182 networks:
1183 - port: { get_resource: orch_1_private_port }
1184 user_data_format: SOFTWARE_CONFIG
1185 user_data: { get_resource: orch_1_vm_config }
1186
1187 orch_2_private_port:
1188 type: OS::Neutron::Port
1189 properties:
1190 network: { get_resource: oam_network }
1191 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
1192 security_groups:
1193 - { get_resource: onap_sg }
1194
1195 orch_2_floating_ip:
1196 type: OS::Neutron::FloatingIP
1197 properties:
1198 floating_network_id: { get_param: public_net_id }
1199 port_id: { get_resource: orch_2_private_port }
1200
1201 orch_2_vm_scripts:
1202 type: OS::Heat::CloudConfig
1203 properties:
1204 cloud_config:
1205 power_state:
1206 mode: reboot
1207 runcmd:
1208 - [ /opt/k8s_vm_install.sh ]
1209 write_files:
1210 - path: /opt/k8s_vm_install.sh
1211 permissions: '0755'
1212 content:
1213 str_replace:
1214 params:
1215 __docker_proxy__: { get_param: docker_proxy }
1216 __apt_proxy__: { get_param: apt_proxy }
1217 __docker_version__: { get_param: docker_version }
1218 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
1219 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
1220 __host_private_ip_addr__: { get_attr: [orch_2_floating_ip, fixed_ip_address] }
1221 __mtu__: { get_param: mtu }
1222 template:
1223 get_file: k8s_vm_install.sh
1224 - path: /opt/k8s_vm_init.sh
1225 permissions: '0755'
1226 content:
1227 str_replace:
1228 params:
1229 __host_private_ip_addr__: { get_attr: [orch_2_floating_ip, fixed_ip_address] }
1230 __host_label__: 'orchestration'
1231 template:
1232 get_file: k8s_vm_init.sh
1233 - path: /etc/init.d/k8s_vm_init_serv
1234 permissions: '0755'
1235 content:
1236 get_file: k8s_vm_init_serv.sh
1237
1238 orch_2_vm_config:
1239 type: OS::Heat::MultipartMime
1240 properties:
1241 parts:
1242 - config: { get_resource: orch_2_vm_scripts }
1243
1244 orch_2_vm:
1245 type: OS::Nova::Server
1246 properties:
1247 name:
1248 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '2' ] ]
1249 image: { get_param: ubuntu_1804_image }
1250 flavor: { get_param: orch_vm_flavor }
1251 key_name: { get_param: key_name }
1252 networks:
1253 - port: { get_resource: orch_2_private_port }
1254 user_data_format: SOFTWARE_CONFIG
1255 user_data: { get_resource: orch_2_vm_config }
1256
1257 orch_3_private_port:
1258 type: OS::Neutron::Port
1259 properties:
1260 network: { get_resource: oam_network }
1261 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
1262 security_groups:
1263 - { get_resource: onap_sg }
1264
1265 orch_3_floating_ip:
1266 type: OS::Neutron::FloatingIP
1267 properties:
1268 floating_network_id: { get_param: public_net_id }
1269 port_id: { get_resource: orch_3_private_port }
1270
1271 orch_3_vm_scripts:
1272 type: OS::Heat::CloudConfig
1273 properties:
1274 cloud_config:
1275 power_state:
1276 mode: reboot
1277 runcmd:
1278 - [ /opt/k8s_vm_install.sh ]
1279 write_files:
1280 - path: /opt/k8s_vm_install.sh
1281 permissions: '0755'
1282 content:
1283 str_replace:
1284 params:
1285 __docker_proxy__: { get_param: docker_proxy }
1286 __apt_proxy__: { get_param: apt_proxy }
1287 __docker_version__: { get_param: docker_version }
1288 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
1289 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
1290 __host_private_ip_addr__: { get_attr: [orch_3_floating_ip, fixed_ip_address] }
1291 __mtu__: { get_param: mtu }
1292 template:
1293 get_file: k8s_vm_install.sh
1294 - path: /opt/k8s_vm_init.sh
1295 permissions: '0755'
1296 content:
1297 str_replace:
1298 params:
1299 __host_private_ip_addr__: { get_attr: [orch_3_floating_ip, fixed_ip_address] }
1300 __host_label__: 'orchestration'
1301 template:
1302 get_file: k8s_vm_init.sh
1303 - path: /etc/init.d/k8s_vm_init_serv
1304 permissions: '0755'
1305 content:
1306 get_file: k8s_vm_init_serv.sh
1307
1308 orch_3_vm_config:
1309 type: OS::Heat::MultipartMime
1310 properties:
1311 parts:
1312 - config: { get_resource: orch_3_vm_scripts }
1313
1314 orch_3_vm:
1315 type: OS::Nova::Server
1316 properties:
1317 name:
1318 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '3' ] ]
1319 image: { get_param: ubuntu_1804_image }
1320 flavor: { get_param: orch_vm_flavor }
1321 key_name: { get_param: key_name }
1322 networks:
1323 - port: { get_resource: orch_3_private_port }
1324 user_data_format: SOFTWARE_CONFIG
1325 user_data: { get_resource: orch_3_vm_config }
1326
1327outputs:
Gary Wu0bc69832019-03-27 13:58:46 -07001328 docker_proxy:
1329 value: { get_param: docker_proxy }
1330
Gary Wu950a3232019-03-26 13:08:29 -07001331 rancher_vm_ip:
1332 description: The IP address of the rancher instance
1333 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
1334
1335 k8s_01_vm_ip:
1336 description: The IP address of the k8s_01 instance
1337 value: { get_attr: [k8s_01_floating_ip, floating_ip_address] }
1338
1339 k8s_01_vm_private_ip:
1340 description: The private IP address of the k8s_01 instance
1341 value: { get_attr: [k8s_01_floating_ip, fixed_ip_address] }
1342
1343 k8s_02_vm_ip:
1344 description: The IP address of the k8s_02 instance
1345 value: { get_attr: [k8s_02_floating_ip, floating_ip_address] }
1346
1347 k8s_02_vm_private_ip:
1348 description: The private IP address of the k8s_02 instance
1349 value: { get_attr: [k8s_02_floating_ip, fixed_ip_address] }
1350
1351 k8s_03_vm_ip:
1352 description: The IP address of the k8s_03 instance
1353 value: { get_attr: [k8s_03_floating_ip, floating_ip_address] }
1354
1355 k8s_03_vm_private_ip:
1356 description: The private IP address of the k8s_03 instance
1357 value: { get_attr: [k8s_03_floating_ip, fixed_ip_address] }
1358
1359 k8s_04_vm_ip:
1360 description: The IP address of the k8s_04 instance
1361 value: { get_attr: [k8s_04_floating_ip, floating_ip_address] }
1362
1363 k8s_04_vm_private_ip:
1364 description: The private IP address of the k8s_04 instance
1365 value: { get_attr: [k8s_04_floating_ip, fixed_ip_address] }
1366
1367 k8s_05_vm_ip:
1368 description: The IP address of the k8s_05 instance
1369 value: { get_attr: [k8s_05_floating_ip, floating_ip_address] }
1370
1371 k8s_05_vm_private_ip:
1372 description: The private IP address of the k8s_05 instance
1373 value: { get_attr: [k8s_05_floating_ip, fixed_ip_address] }
1374
1375 k8s_06_vm_ip:
1376 description: The IP address of the k8s_06 instance
1377 value: { get_attr: [k8s_06_floating_ip, floating_ip_address] }
1378
1379 k8s_06_vm_private_ip:
1380 description: The private IP address of the k8s_06 instance
1381 value: { get_attr: [k8s_06_floating_ip, fixed_ip_address] }
1382
Gary Wu415f6a82019-04-11 15:56:27 -07001383 k8s_07_vm_ip:
1384 description: The IP address of the k8s_07 instance
1385 value: { get_attr: [k8s_07_floating_ip, floating_ip_address] }
1386
1387 k8s_07_vm_private_ip:
1388 description: The private IP address of the k8s_07 instance
1389 value: { get_attr: [k8s_07_floating_ip, fixed_ip_address] }
1390
1391 k8s_08_vm_ip:
1392 description: The IP address of the k8s_08 instance
1393 value: { get_attr: [k8s_08_floating_ip, floating_ip_address] }
1394
1395 k8s_08_vm_private_ip:
1396 description: The private IP address of the k8s_08 instance
1397 value: { get_attr: [k8s_08_floating_ip, fixed_ip_address] }
1398
1399 k8s_09_vm_ip:
1400 description: The IP address of the k8s_09 instance
1401 value: { get_attr: [k8s_09_floating_ip, floating_ip_address] }
1402
1403 k8s_09_vm_private_ip:
1404 description: The private IP address of the k8s_09 instance
1405 value: { get_attr: [k8s_09_floating_ip, fixed_ip_address] }
1406
1407 k8s_10_vm_ip:
1408 description: The IP address of the k8s_10 instance
1409 value: { get_attr: [k8s_10_floating_ip, floating_ip_address] }
1410
1411 k8s_10_vm_private_ip:
1412 description: The private IP address of the k8s_10 instance
1413 value: { get_attr: [k8s_10_floating_ip, fixed_ip_address] }
1414
1415 k8s_11_vm_ip:
1416 description: The IP address of the k8s_11 instance
1417 value: { get_attr: [k8s_11_floating_ip, floating_ip_address] }
1418
1419 k8s_11_vm_private_ip:
1420 description: The private IP address of the k8s_11 instance
1421 value: { get_attr: [k8s_11_floating_ip, fixed_ip_address] }
1422
1423 k8s_12_vm_ip:
1424 description: The IP address of the k8s_12 instance
1425 value: { get_attr: [k8s_12_floating_ip, floating_ip_address] }
1426
1427 k8s_12_vm_private_ip:
1428 description: The private IP address of the k8s_12 instance
1429 value: { get_attr: [k8s_12_floating_ip, fixed_ip_address] }
1430
Gary Wu950a3232019-03-26 13:08:29 -07001431 orch_1_vm_ip:
1432 description: The IP address of the orch_1 instance
1433 value: { get_attr: [orch_1_floating_ip, floating_ip_address] }
1434
1435 orch_1_vm_private_ip:
1436 description: The private IP address of the orch_1 instance
1437 value: { get_attr: [orch_1_floating_ip, fixed_ip_address] }
1438
1439 orch_2_vm_ip:
1440 description: The IP address of the orch_2 instance
1441 value: { get_attr: [orch_2_floating_ip, floating_ip_address] }
1442
1443 orch_2_vm_private_ip:
1444 description: The private IP address of the orch_2 instance
1445 value: { get_attr: [orch_2_floating_ip, fixed_ip_address] }
1446
1447 orch_3_vm_ip:
1448 description: The IP address of the orch_3 instance
1449 value: { get_attr: [orch_3_floating_ip, floating_ip_address] }
1450
1451 orch_3_vm_private_ip:
1452 description: The private IP address of the orch_3 instance
1453 value: { get_attr: [orch_3_floating_ip, fixed_ip_address] }
1454