2 # Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST
4 heat_template_version: 2015-10-15
5 description: ONAP on Kubernetes using OOM
16 description: The ID of the Public network for floating IP address allocation
20 description: CIDR of the OAM ONAP network
24 description: Name of the Ubuntu 16.04 image
28 description: VM flavor for Rancher
32 description: VM flavor for k8s hosts
36 description: VM flavor for etcd hosts
40 description: VM flavor for orch hosts
42 integration_override_yaml:
44 description: Content for integration_override.yaml
46 integration_gerrit_branch:
50 integration_gerrit_refspec:
52 default: "refs/heads/master"
60 default: "refs/heads/master"
78 rancher_agent_version:
96 description: Set to "true" if you want to use a RAM disk for /dockerdata-nfs/.
101 type: OS::Heat::RandomString
105 # ONAP security group
107 type: OS::Neutron::SecurityGroup
114 rand: { get_resource: random-str }
115 description: security group used by ONAP
127 port_range_max: 65535
130 port_range_max: 65535
133 # ONAP management private network
135 type: OS::Neutron::Net
139 template: oam_network_rand
141 rand: { get_resource: random-str }
144 type: OS::Neutron::Subnet
148 template: oam_network_rand
150 rand: { get_resource: random-str }
151 network_id: { get_resource: oam_network }
152 cidr: { get_param: oam_network_cidr }
153 dns_nameservers: [ "8.8.8.8" ]
156 type: OS::Neutron::Router
159 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
160 external_gateway_info:
161 network: { get_param: public_net_id }
164 type: OS::Neutron::RouterInterface
166 router_id: { get_resource: router }
167 subnet_id: { get_resource: oam_subnet }
169 rancher_private_port:
170 type: OS::Neutron::Port
172 network: { get_resource: oam_network }
173 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
175 - { get_resource: onap_sg }
178 type: OS::Neutron::FloatingIP
180 floating_network_id: { get_param: public_net_id }
181 port_id: { get_resource: rancher_private_port }
184 type: OS::Nova::Server
187 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'rancher']]
188 image: { get_param: ubuntu_1604_image }
189 flavor: { get_param: rancher_vm_flavor }
190 key_name: { get_param: key_name }
192 - port: { get_resource: rancher_private_port }
193 user_data_format: RAW
197 get_file: rancher_vm_entrypoint.sh
199 __docker_proxy__: { get_param: docker_proxy }
200 __apt_proxy__: { get_param: apt_proxy }
201 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
202 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
203 __integration_override_yaml__: { get_param: integration_override_yaml }
204 __integration_gerrit_branch__: { get_param: integration_gerrit_branch }
205 __integration_gerrit_refspec__: { get_param: integration_gerrit_refspec }
206 __oom_gerrit_branch__: { get_param: oom_gerrit_branch }
207 __oom_gerrit_refspec__: { get_param: oom_gerrit_refspec }
208 __docker_manifest__: { get_param: docker_manifest }
209 __docker_version__: { get_param: docker_version }
210 __rancher_version__: { get_param: rancher_version }
211 __rancher_agent_version__: { get_param: rancher_agent_version }
212 __kubectl_version__: { get_param: kubectl_version }
213 __helm_version__: { get_param: helm_version }
214 __helm_deploy_delay__: { get_param: helm_deploy_delay }
215 __use_ramdisk__: { get_param: use_ramdisk }
216 __public_net_id__: { get_param: public_net_id }
217 __oam_network_cidr__: { get_param: oam_network_cidr }
218 __oam_network_id__: { get_resource: oam_network }
219 __oam_subnet_id__: { get_resource: oam_subnet }
220 __sec_group__: { get_resource: onap_sg }
221 __k8s_01_vm_ip__: { get_attr: [k8s_01_floating_ip, floating_ip_address] }
223 get_attr: [k8s_01_floating_ip, floating_ip_address],
224 get_attr: [k8s_02_floating_ip, floating_ip_address],
225 get_attr: [k8s_03_floating_ip, floating_ip_address],
226 get_attr: [k8s_04_floating_ip, floating_ip_address],
227 get_attr: [k8s_05_floating_ip, floating_ip_address],
228 get_attr: [k8s_06_floating_ip, floating_ip_address],
229 get_attr: [k8s_07_floating_ip, floating_ip_address],
230 get_attr: [k8s_08_floating_ip, floating_ip_address],
231 get_attr: [k8s_09_floating_ip, floating_ip_address],
232 get_attr: [k8s_10_floating_ip, floating_ip_address],
233 get_attr: [k8s_11_floating_ip, floating_ip_address],
235 __k8s_private_ips__: [
236 get_attr: [k8s_01_floating_ip, fixed_ip_address],
237 get_attr: [k8s_02_floating_ip, fixed_ip_address],
238 get_attr: [k8s_03_floating_ip, fixed_ip_address],
239 get_attr: [k8s_04_floating_ip, fixed_ip_address],
240 get_attr: [k8s_05_floating_ip, fixed_ip_address],
241 get_attr: [k8s_06_floating_ip, fixed_ip_address],
242 get_attr: [k8s_07_floating_ip, fixed_ip_address],
243 get_attr: [k8s_08_floating_ip, fixed_ip_address],
244 get_attr: [k8s_09_floating_ip, fixed_ip_address],
245 get_attr: [k8s_10_floating_ip, fixed_ip_address],
246 get_attr: [k8s_11_floating_ip, fixed_ip_address],
249 type: OS::Neutron::Port
251 network: { get_resource: oam_network }
252 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
254 - { get_resource: onap_sg }
257 type: OS::Neutron::FloatingIP
259 floating_network_id: { get_param: public_net_id }
260 port_id: { get_resource: k8s_01_private_port }
263 type: OS::Nova::Server
266 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '01' ] ]
267 image: { get_param: ubuntu_1604_image }
268 flavor: { get_param: k8s_vm_flavor }
269 key_name: { get_param: key_name }
271 - port: { get_resource: k8s_01_private_port }
272 user_data_format: RAW
276 __docker_proxy__: { get_param: docker_proxy }
277 __apt_proxy__: { get_param: apt_proxy }
278 __docker_version__: { get_param: docker_version }
279 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
280 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
281 __host_label__: 'compute'
283 get_file: k8s_vm_entrypoint.sh
286 type: OS::Neutron::Port
288 network: { get_resource: oam_network }
289 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
291 - { get_resource: onap_sg }
294 type: OS::Neutron::FloatingIP
296 floating_network_id: { get_param: public_net_id }
297 port_id: { get_resource: k8s_02_private_port }
300 type: OS::Nova::Server
303 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '02' ] ]
304 image: { get_param: ubuntu_1604_image }
305 flavor: { get_param: k8s_vm_flavor }
306 key_name: { get_param: key_name }
308 - port: { get_resource: k8s_02_private_port }
309 user_data_format: RAW
313 __docker_proxy__: { get_param: docker_proxy }
314 __apt_proxy__: { get_param: apt_proxy }
315 __docker_version__: { get_param: docker_version }
316 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
317 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
318 __host_label__: 'compute'
320 get_file: k8s_vm_entrypoint.sh
323 type: OS::Neutron::Port
325 network: { get_resource: oam_network }
326 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
328 - { get_resource: onap_sg }
331 type: OS::Neutron::FloatingIP
333 floating_network_id: { get_param: public_net_id }
334 port_id: { get_resource: k8s_03_private_port }
337 type: OS::Nova::Server
340 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '03' ] ]
341 image: { get_param: ubuntu_1604_image }
342 flavor: { get_param: k8s_vm_flavor }
343 key_name: { get_param: key_name }
345 - port: { get_resource: k8s_03_private_port }
346 user_data_format: RAW
350 __docker_proxy__: { get_param: docker_proxy }
351 __apt_proxy__: { get_param: apt_proxy }
352 __docker_version__: { get_param: docker_version }
353 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
354 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
355 __host_label__: 'compute'
357 get_file: k8s_vm_entrypoint.sh
360 type: OS::Neutron::Port
362 network: { get_resource: oam_network }
363 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
365 - { get_resource: onap_sg }
368 type: OS::Neutron::FloatingIP
370 floating_network_id: { get_param: public_net_id }
371 port_id: { get_resource: k8s_04_private_port }
374 type: OS::Nova::Server
377 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '04' ] ]
378 image: { get_param: ubuntu_1604_image }
379 flavor: { get_param: k8s_vm_flavor }
380 key_name: { get_param: key_name }
382 - port: { get_resource: k8s_04_private_port }
383 user_data_format: RAW
387 __docker_proxy__: { get_param: docker_proxy }
388 __apt_proxy__: { get_param: apt_proxy }
389 __docker_version__: { get_param: docker_version }
390 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
391 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
392 __host_label__: 'compute'
394 get_file: k8s_vm_entrypoint.sh
397 type: OS::Neutron::Port
399 network: { get_resource: oam_network }
400 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
402 - { get_resource: onap_sg }
405 type: OS::Neutron::FloatingIP
407 floating_network_id: { get_param: public_net_id }
408 port_id: { get_resource: k8s_05_private_port }
411 type: OS::Nova::Server
414 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '05' ] ]
415 image: { get_param: ubuntu_1604_image }
416 flavor: { get_param: k8s_vm_flavor }
417 key_name: { get_param: key_name }
419 - port: { get_resource: k8s_05_private_port }
420 user_data_format: RAW
424 __docker_proxy__: { get_param: docker_proxy }
425 __apt_proxy__: { get_param: apt_proxy }
426 __docker_version__: { get_param: docker_version }
427 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
428 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
429 __host_label__: 'compute'
431 get_file: k8s_vm_entrypoint.sh
434 type: OS::Neutron::Port
436 network: { get_resource: oam_network }
437 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
439 - { get_resource: onap_sg }
442 type: OS::Neutron::FloatingIP
444 floating_network_id: { get_param: public_net_id }
445 port_id: { get_resource: k8s_06_private_port }
448 type: OS::Nova::Server
451 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '06' ] ]
452 image: { get_param: ubuntu_1604_image }
453 flavor: { get_param: k8s_vm_flavor }
454 key_name: { get_param: key_name }
456 - port: { get_resource: k8s_06_private_port }
457 user_data_format: RAW
461 __docker_proxy__: { get_param: docker_proxy }
462 __apt_proxy__: { get_param: apt_proxy }
463 __docker_version__: { get_param: docker_version }
464 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
465 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
466 __host_label__: 'compute'
468 get_file: k8s_vm_entrypoint.sh
471 type: OS::Neutron::Port
473 network: { get_resource: oam_network }
474 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
476 - { get_resource: onap_sg }
479 type: OS::Neutron::FloatingIP
481 floating_network_id: { get_param: public_net_id }
482 port_id: { get_resource: k8s_07_private_port }
485 type: OS::Nova::Server
488 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '07' ] ]
489 image: { get_param: ubuntu_1604_image }
490 flavor: { get_param: k8s_vm_flavor }
491 key_name: { get_param: key_name }
493 - port: { get_resource: k8s_07_private_port }
494 user_data_format: RAW
498 __docker_proxy__: { get_param: docker_proxy }
499 __apt_proxy__: { get_param: apt_proxy }
500 __docker_version__: { get_param: docker_version }
501 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
502 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
503 __host_label__: 'compute'
505 get_file: k8s_vm_entrypoint.sh
508 type: OS::Neutron::Port
510 network: { get_resource: oam_network }
511 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
513 - { get_resource: onap_sg }
516 type: OS::Neutron::FloatingIP
518 floating_network_id: { get_param: public_net_id }
519 port_id: { get_resource: k8s_08_private_port }
522 type: OS::Nova::Server
525 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '08' ] ]
526 image: { get_param: ubuntu_1604_image }
527 flavor: { get_param: k8s_vm_flavor }
528 key_name: { get_param: key_name }
530 - port: { get_resource: k8s_08_private_port }
531 user_data_format: RAW
535 __docker_proxy__: { get_param: docker_proxy }
536 __apt_proxy__: { get_param: apt_proxy }
537 __docker_version__: { get_param: docker_version }
538 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
539 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
540 __host_label__: 'compute'
542 get_file: k8s_vm_entrypoint.sh
545 type: OS::Neutron::Port
547 network: { get_resource: oam_network }
548 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
550 - { get_resource: onap_sg }
553 type: OS::Neutron::FloatingIP
555 floating_network_id: { get_param: public_net_id }
556 port_id: { get_resource: k8s_09_private_port }
559 type: OS::Nova::Server
562 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '09' ] ]
563 image: { get_param: ubuntu_1604_image }
564 flavor: { get_param: k8s_vm_flavor }
565 key_name: { get_param: key_name }
567 - port: { get_resource: k8s_09_private_port }
568 user_data_format: RAW
572 __docker_proxy__: { get_param: docker_proxy }
573 __apt_proxy__: { get_param: apt_proxy }
574 __docker_version__: { get_param: docker_version }
575 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
576 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
577 __host_label__: 'compute'
579 get_file: k8s_vm_entrypoint.sh
582 type: OS::Neutron::Port
584 network: { get_resource: oam_network }
585 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
587 - { get_resource: onap_sg }
590 type: OS::Neutron::FloatingIP
592 floating_network_id: { get_param: public_net_id }
593 port_id: { get_resource: k8s_10_private_port }
596 type: OS::Nova::Server
599 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '10' ] ]
600 image: { get_param: ubuntu_1604_image }
601 flavor: { get_param: k8s_vm_flavor }
602 key_name: { get_param: key_name }
604 - port: { get_resource: k8s_10_private_port }
605 user_data_format: RAW
609 __docker_proxy__: { get_param: docker_proxy }
610 __apt_proxy__: { get_param: apt_proxy }
611 __docker_version__: { get_param: docker_version }
612 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
613 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
614 __host_label__: 'compute'
616 get_file: k8s_vm_entrypoint.sh
619 type: OS::Neutron::Port
621 network: { get_resource: oam_network }
622 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
624 - { get_resource: onap_sg }
627 type: OS::Neutron::FloatingIP
629 floating_network_id: { get_param: public_net_id }
630 port_id: { get_resource: k8s_11_private_port }
633 type: OS::Nova::Server
636 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '11' ] ]
637 image: { get_param: ubuntu_1604_image }
638 flavor: { get_param: k8s_vm_flavor }
639 key_name: { get_param: key_name }
641 - port: { get_resource: k8s_11_private_port }
642 user_data_format: RAW
646 __docker_proxy__: { get_param: docker_proxy }
647 __apt_proxy__: { get_param: apt_proxy }
648 __docker_version__: { get_param: docker_version }
649 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
650 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
651 __host_label__: 'compute'
653 get_file: k8s_vm_entrypoint.sh
656 type: OS::Neutron::Port
658 network: { get_resource: oam_network }
659 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
661 - { get_resource: onap_sg }
664 type: OS::Neutron::FloatingIP
666 floating_network_id: { get_param: public_net_id }
667 port_id: { get_resource: etcd_1_private_port }
670 type: OS::Nova::Server
673 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '1' ] ]
674 image: { get_param: ubuntu_1604_image }
675 flavor: { get_param: etcd_vm_flavor }
676 key_name: { get_param: key_name }
678 - port: { get_resource: etcd_1_private_port }
679 user_data_format: RAW
683 __docker_proxy__: { get_param: docker_proxy }
684 __apt_proxy__: { get_param: apt_proxy }
685 __docker_version__: { get_param: docker_version }
686 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
687 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
688 __host_label__: 'etcd'
690 get_file: k8s_vm_entrypoint.sh
693 type: OS::Neutron::Port
695 network: { get_resource: oam_network }
696 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
698 - { get_resource: onap_sg }
701 type: OS::Neutron::FloatingIP
703 floating_network_id: { get_param: public_net_id }
704 port_id: { get_resource: etcd_2_private_port }
707 type: OS::Nova::Server
710 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '2' ] ]
711 image: { get_param: ubuntu_1604_image }
712 flavor: { get_param: etcd_vm_flavor }
713 key_name: { get_param: key_name }
715 - port: { get_resource: etcd_2_private_port }
716 user_data_format: RAW
720 __docker_proxy__: { get_param: docker_proxy }
721 __apt_proxy__: { get_param: apt_proxy }
722 __docker_version__: { get_param: docker_version }
723 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
724 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
725 __host_label__: 'etcd'
727 get_file: k8s_vm_entrypoint.sh
730 type: OS::Neutron::Port
732 network: { get_resource: oam_network }
733 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
735 - { get_resource: onap_sg }
738 type: OS::Neutron::FloatingIP
740 floating_network_id: { get_param: public_net_id }
741 port_id: { get_resource: etcd_3_private_port }
744 type: OS::Nova::Server
747 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '3' ] ]
748 image: { get_param: ubuntu_1604_image }
749 flavor: { get_param: etcd_vm_flavor }
750 key_name: { get_param: key_name }
752 - port: { get_resource: etcd_3_private_port }
753 user_data_format: RAW
757 __docker_proxy__: { get_param: docker_proxy }
758 __apt_proxy__: { get_param: apt_proxy }
759 __docker_version__: { get_param: docker_version }
760 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
761 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
762 __host_label__: 'etcd'
764 get_file: k8s_vm_entrypoint.sh
767 type: OS::Neutron::Port
769 network: { get_resource: oam_network }
770 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
772 - { get_resource: onap_sg }
775 type: OS::Neutron::FloatingIP
777 floating_network_id: { get_param: public_net_id }
778 port_id: { get_resource: orch_1_private_port }
781 type: OS::Nova::Server
784 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '1' ] ]
785 image: { get_param: ubuntu_1604_image }
786 flavor: { get_param: orch_vm_flavor }
787 key_name: { get_param: key_name }
789 - port: { get_resource: orch_1_private_port }
790 user_data_format: RAW
794 __docker_proxy__: { get_param: docker_proxy }
795 __apt_proxy__: { get_param: apt_proxy }
796 __docker_version__: { get_param: docker_version }
797 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
798 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
799 __host_label__: 'orchestration'
801 get_file: k8s_vm_entrypoint.sh
805 description: The IP address of the rancher instance
806 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
809 description: The IP address of the k8s_01 instance
810 value: { get_attr: [k8s_01_floating_ip, floating_ip_address] }
813 description: The IP address of the k8s_02 instance
814 value: { get_attr: [k8s_02_floating_ip, floating_ip_address] }
817 description: The IP address of the k8s_03 instance
818 value: { get_attr: [k8s_03_floating_ip, floating_ip_address] }
821 description: The IP address of the k8s_04 instance
822 value: { get_attr: [k8s_04_floating_ip, floating_ip_address] }
825 description: The IP address of the k8s_05 instance
826 value: { get_attr: [k8s_05_floating_ip, floating_ip_address] }
829 description: The IP address of the k8s_06 instance
830 value: { get_attr: [k8s_06_floating_ip, floating_ip_address] }
833 description: The IP address of the k8s_07 instance
834 value: { get_attr: [k8s_07_floating_ip, floating_ip_address] }
837 description: The IP address of the k8s_08 instance
838 value: { get_attr: [k8s_08_floating_ip, floating_ip_address] }
841 description: The IP address of the k8s_09 instance
842 value: { get_attr: [k8s_09_floating_ip, floating_ip_address] }
845 description: The IP address of the k8s_10 instance
846 value: { get_attr: [k8s_10_floating_ip, floating_ip_address] }
849 description: The IP address of the k8s_11 instance
850 value: { get_attr: [k8s_11_floating_ip, floating_ip_address] }