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:
92 type: OS::Heat::RandomString
98 type: OS::Neutron::SecurityGroup
105 rand: { get_resource: random-str }
106 description: security group used by ONAP
118 port_range_max: 65535
121 port_range_max: 65535
124 # ONAP management private network
126 type: OS::Neutron::Net
130 template: oam_network_rand
132 rand: { get_resource: random-str }
135 type: OS::Neutron::Subnet
139 template: oam_network_rand
141 rand: { get_resource: random-str }
142 network_id: { get_resource: oam_network }
143 cidr: { get_param: oam_network_cidr }
144 dns_nameservers: [ "8.8.8.8" ]
147 type: OS::Neutron::Router
150 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
151 external_gateway_info:
152 network: { get_param: public_net_id }
155 type: OS::Neutron::RouterInterface
157 router_id: { get_resource: router }
158 subnet_id: { get_resource: oam_subnet }
160 rancher_private_port:
161 type: OS::Neutron::Port
163 network: { get_resource: oam_network }
164 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
166 - { get_resource: onap_sg }
169 type: OS::Neutron::FloatingIP
171 floating_network_id: { get_param: public_net_id }
172 port_id: { get_resource: rancher_private_port }
175 type: OS::Nova::Server
178 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'rancher']]
179 image: { get_param: ubuntu_1604_image }
180 flavor: { get_param: rancher_vm_flavor }
181 key_name: { get_param: key_name }
183 - port: { get_resource: rancher_private_port }
184 user_data_format: RAW
188 get_file: rancher_vm_entrypoint.sh
190 __docker_proxy__: { get_param: docker_proxy }
191 __apt_proxy__: { get_param: apt_proxy }
192 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
193 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
194 __integration_override_yaml__: { get_param: integration_override_yaml }
195 __integration_gerrit_branch__: { get_param: integration_gerrit_branch }
196 __integration_gerrit_refspec__: { get_param: integration_gerrit_refspec }
197 __oom_gerrit_branch__: { get_param: oom_gerrit_branch }
198 __oom_gerrit_refspec__: { get_param: oom_gerrit_refspec }
199 __docker_manifest__: { get_param: docker_manifest }
200 __docker_version__: { get_param: docker_version }
201 __rancher_version__: { get_param: rancher_version }
202 __rancher_agent_version__: { get_param: rancher_agent_version }
203 __kubectl_version__: { get_param: kubectl_version }
204 __helm_version__: { get_param: helm_version }
205 __public_net_id__: { get_param: public_net_id }
206 __oam_network_cidr__: { get_param: oam_network_cidr }
207 __oam_network_id__: { get_resource: oam_network }
208 __oam_subnet_id__: { get_resource: oam_subnet }
209 __sec_group__: { get_resource: onap_sg }
210 __k8s_1_vm_ip__: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
212 get_attr: [k8s_1_floating_ip, floating_ip_address],
213 get_attr: [k8s_2_floating_ip, floating_ip_address],
214 get_attr: [k8s_3_floating_ip, floating_ip_address],
215 get_attr: [k8s_4_floating_ip, floating_ip_address],
216 get_attr: [k8s_5_floating_ip, floating_ip_address],
217 get_attr: [k8s_6_floating_ip, floating_ip_address],
218 get_attr: [k8s_7_floating_ip, floating_ip_address],
219 get_attr: [k8s_8_floating_ip, floating_ip_address],
220 get_attr: [k8s_9_floating_ip, floating_ip_address],
221 get_attr: [k8s_10_floating_ip, floating_ip_address],
223 __k8s_private_ips__: [
224 get_attr: [k8s_1_floating_ip, fixed_ip_address],
225 get_attr: [k8s_2_floating_ip, fixed_ip_address],
226 get_attr: [k8s_3_floating_ip, fixed_ip_address],
227 get_attr: [k8s_4_floating_ip, fixed_ip_address],
228 get_attr: [k8s_5_floating_ip, fixed_ip_address],
229 get_attr: [k8s_6_floating_ip, fixed_ip_address],
230 get_attr: [k8s_7_floating_ip, fixed_ip_address],
231 get_attr: [k8s_8_floating_ip, fixed_ip_address],
232 get_attr: [k8s_9_floating_ip, fixed_ip_address],
233 get_attr: [k8s_10_floating_ip, fixed_ip_address],
236 type: OS::Neutron::Port
238 network: { get_resource: oam_network }
239 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
241 - { get_resource: onap_sg }
244 type: OS::Neutron::FloatingIP
246 floating_network_id: { get_param: public_net_id }
247 port_id: { get_resource: k8s_1_private_port }
250 type: OS::Nova::Server
253 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '1' ] ]
254 image: { get_param: ubuntu_1604_image }
255 flavor: { get_param: k8s_vm_flavor }
256 key_name: { get_param: key_name }
258 - port: { get_resource: k8s_1_private_port }
259 user_data_format: RAW
263 __docker_proxy__: { get_param: docker_proxy }
264 __apt_proxy__: { get_param: apt_proxy }
265 __docker_version__: { get_param: docker_version }
266 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
267 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
268 __host_label__: 'compute'
270 get_file: k8s_vm_entrypoint.sh
273 type: OS::Neutron::Port
275 network: { get_resource: oam_network }
276 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
278 - { get_resource: onap_sg }
281 type: OS::Neutron::FloatingIP
283 floating_network_id: { get_param: public_net_id }
284 port_id: { get_resource: k8s_2_private_port }
287 type: OS::Nova::Server
290 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '2' ] ]
291 image: { get_param: ubuntu_1604_image }
292 flavor: { get_param: k8s_vm_flavor }
293 key_name: { get_param: key_name }
295 - port: { get_resource: k8s_2_private_port }
296 user_data_format: RAW
300 __docker_proxy__: { get_param: docker_proxy }
301 __apt_proxy__: { get_param: apt_proxy }
302 __docker_version__: { get_param: docker_version }
303 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
304 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
305 __host_label__: 'compute'
307 get_file: k8s_vm_entrypoint.sh
310 type: OS::Neutron::Port
312 network: { get_resource: oam_network }
313 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
315 - { get_resource: onap_sg }
318 type: OS::Neutron::FloatingIP
320 floating_network_id: { get_param: public_net_id }
321 port_id: { get_resource: k8s_3_private_port }
324 type: OS::Nova::Server
327 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '3' ] ]
328 image: { get_param: ubuntu_1604_image }
329 flavor: { get_param: k8s_vm_flavor }
330 key_name: { get_param: key_name }
332 - port: { get_resource: k8s_3_private_port }
333 user_data_format: RAW
337 __docker_proxy__: { get_param: docker_proxy }
338 __apt_proxy__: { get_param: apt_proxy }
339 __docker_version__: { get_param: docker_version }
340 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
341 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
342 __host_label__: 'compute'
344 get_file: k8s_vm_entrypoint.sh
347 type: OS::Neutron::Port
349 network: { get_resource: oam_network }
350 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
352 - { get_resource: onap_sg }
355 type: OS::Neutron::FloatingIP
357 floating_network_id: { get_param: public_net_id }
358 port_id: { get_resource: k8s_4_private_port }
361 type: OS::Nova::Server
364 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '4' ] ]
365 image: { get_param: ubuntu_1604_image }
366 flavor: { get_param: k8s_vm_flavor }
367 key_name: { get_param: key_name }
369 - port: { get_resource: k8s_4_private_port }
370 user_data_format: RAW
374 __docker_proxy__: { get_param: docker_proxy }
375 __apt_proxy__: { get_param: apt_proxy }
376 __docker_version__: { get_param: docker_version }
377 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
378 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
379 __host_label__: 'compute'
381 get_file: k8s_vm_entrypoint.sh
384 type: OS::Neutron::Port
386 network: { get_resource: oam_network }
387 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
389 - { get_resource: onap_sg }
392 type: OS::Neutron::FloatingIP
394 floating_network_id: { get_param: public_net_id }
395 port_id: { get_resource: k8s_5_private_port }
398 type: OS::Nova::Server
401 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '5' ] ]
402 image: { get_param: ubuntu_1604_image }
403 flavor: { get_param: k8s_vm_flavor }
404 key_name: { get_param: key_name }
406 - port: { get_resource: k8s_5_private_port }
407 user_data_format: RAW
411 __docker_proxy__: { get_param: docker_proxy }
412 __apt_proxy__: { get_param: apt_proxy }
413 __docker_version__: { get_param: docker_version }
414 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
415 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
416 __host_label__: 'compute'
418 get_file: k8s_vm_entrypoint.sh
421 type: OS::Neutron::Port
423 network: { get_resource: oam_network }
424 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
426 - { get_resource: onap_sg }
429 type: OS::Neutron::FloatingIP
431 floating_network_id: { get_param: public_net_id }
432 port_id: { get_resource: k8s_6_private_port }
435 type: OS::Nova::Server
438 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '6' ] ]
439 image: { get_param: ubuntu_1604_image }
440 flavor: { get_param: k8s_vm_flavor }
441 key_name: { get_param: key_name }
443 - port: { get_resource: k8s_6_private_port }
444 user_data_format: RAW
448 __docker_proxy__: { get_param: docker_proxy }
449 __apt_proxy__: { get_param: apt_proxy }
450 __docker_version__: { get_param: docker_version }
451 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
452 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
453 __host_label__: 'compute'
455 get_file: k8s_vm_entrypoint.sh
458 type: OS::Neutron::Port
460 network: { get_resource: oam_network }
461 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
463 - { get_resource: onap_sg }
466 type: OS::Neutron::FloatingIP
468 floating_network_id: { get_param: public_net_id }
469 port_id: { get_resource: k8s_7_private_port }
472 type: OS::Nova::Server
475 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '7' ] ]
476 image: { get_param: ubuntu_1604_image }
477 flavor: { get_param: k8s_vm_flavor }
478 key_name: { get_param: key_name }
480 - port: { get_resource: k8s_7_private_port }
481 user_data_format: RAW
485 __docker_proxy__: { get_param: docker_proxy }
486 __apt_proxy__: { get_param: apt_proxy }
487 __docker_version__: { get_param: docker_version }
488 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
489 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
490 __host_label__: 'compute'
492 get_file: k8s_vm_entrypoint.sh
495 type: OS::Neutron::Port
497 network: { get_resource: oam_network }
498 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
500 - { get_resource: onap_sg }
503 type: OS::Neutron::FloatingIP
505 floating_network_id: { get_param: public_net_id }
506 port_id: { get_resource: k8s_8_private_port }
509 type: OS::Nova::Server
512 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '8' ] ]
513 image: { get_param: ubuntu_1604_image }
514 flavor: { get_param: k8s_vm_flavor }
515 key_name: { get_param: key_name }
517 - port: { get_resource: k8s_8_private_port }
518 user_data_format: RAW
522 __docker_proxy__: { get_param: docker_proxy }
523 __apt_proxy__: { get_param: apt_proxy }
524 __docker_version__: { get_param: docker_version }
525 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
526 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
527 __host_label__: 'compute'
529 get_file: k8s_vm_entrypoint.sh
532 type: OS::Neutron::Port
534 network: { get_resource: oam_network }
535 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
537 - { get_resource: onap_sg }
540 type: OS::Neutron::FloatingIP
542 floating_network_id: { get_param: public_net_id }
543 port_id: { get_resource: k8s_9_private_port }
546 type: OS::Nova::Server
549 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '9' ] ]
550 image: { get_param: ubuntu_1604_image }
551 flavor: { get_param: k8s_vm_flavor }
552 key_name: { get_param: key_name }
554 - port: { get_resource: k8s_9_private_port }
555 user_data_format: RAW
559 __docker_proxy__: { get_param: docker_proxy }
560 __apt_proxy__: { get_param: apt_proxy }
561 __docker_version__: { get_param: docker_version }
562 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
563 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
564 __host_label__: 'compute'
566 get_file: k8s_vm_entrypoint.sh
569 type: OS::Neutron::Port
571 network: { get_resource: oam_network }
572 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
574 - { get_resource: onap_sg }
577 type: OS::Neutron::FloatingIP
579 floating_network_id: { get_param: public_net_id }
580 port_id: { get_resource: k8s_10_private_port }
583 type: OS::Nova::Server
586 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '10' ] ]
587 image: { get_param: ubuntu_1604_image }
588 flavor: { get_param: k8s_vm_flavor }
589 key_name: { get_param: key_name }
591 - port: { get_resource: k8s_10_private_port }
592 user_data_format: RAW
596 __docker_proxy__: { get_param: docker_proxy }
597 __apt_proxy__: { get_param: apt_proxy }
598 __docker_version__: { get_param: docker_version }
599 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
600 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
601 __host_label__: 'compute'
603 get_file: k8s_vm_entrypoint.sh
606 type: OS::Neutron::Port
608 network: { get_resource: oam_network }
609 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
611 - { get_resource: onap_sg }
614 type: OS::Neutron::FloatingIP
616 floating_network_id: { get_param: public_net_id }
617 port_id: { get_resource: etcd_1_private_port }
620 type: OS::Nova::Server
623 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '1' ] ]
624 image: { get_param: ubuntu_1604_image }
625 flavor: { get_param: etcd_vm_flavor }
626 key_name: { get_param: key_name }
628 - port: { get_resource: etcd_1_private_port }
629 user_data_format: RAW
633 __docker_proxy__: { get_param: docker_proxy }
634 __apt_proxy__: { get_param: apt_proxy }
635 __docker_version__: { get_param: docker_version }
636 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
637 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
638 __host_label__: 'etcd'
640 get_file: k8s_vm_entrypoint.sh
643 type: OS::Neutron::Port
645 network: { get_resource: oam_network }
646 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
648 - { get_resource: onap_sg }
651 type: OS::Neutron::FloatingIP
653 floating_network_id: { get_param: public_net_id }
654 port_id: { get_resource: etcd_2_private_port }
657 type: OS::Nova::Server
660 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '2' ] ]
661 image: { get_param: ubuntu_1604_image }
662 flavor: { get_param: etcd_vm_flavor }
663 key_name: { get_param: key_name }
665 - port: { get_resource: etcd_2_private_port }
666 user_data_format: RAW
670 __docker_proxy__: { get_param: docker_proxy }
671 __apt_proxy__: { get_param: apt_proxy }
672 __docker_version__: { get_param: docker_version }
673 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
674 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
675 __host_label__: 'etcd'
677 get_file: k8s_vm_entrypoint.sh
680 type: OS::Neutron::Port
682 network: { get_resource: oam_network }
683 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
685 - { get_resource: onap_sg }
688 type: OS::Neutron::FloatingIP
690 floating_network_id: { get_param: public_net_id }
691 port_id: { get_resource: etcd_3_private_port }
694 type: OS::Nova::Server
697 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '3' ] ]
698 image: { get_param: ubuntu_1604_image }
699 flavor: { get_param: etcd_vm_flavor }
700 key_name: { get_param: key_name }
702 - port: { get_resource: etcd_3_private_port }
703 user_data_format: RAW
707 __docker_proxy__: { get_param: docker_proxy }
708 __apt_proxy__: { get_param: apt_proxy }
709 __docker_version__: { get_param: docker_version }
710 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
711 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
712 __host_label__: 'etcd'
714 get_file: k8s_vm_entrypoint.sh
717 type: OS::Neutron::Port
719 network: { get_resource: oam_network }
720 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
722 - { get_resource: onap_sg }
725 type: OS::Neutron::FloatingIP
727 floating_network_id: { get_param: public_net_id }
728 port_id: { get_resource: orch_1_private_port }
731 type: OS::Nova::Server
734 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '1' ] ]
735 image: { get_param: ubuntu_1604_image }
736 flavor: { get_param: orch_vm_flavor }
737 key_name: { get_param: key_name }
739 - port: { get_resource: orch_1_private_port }
740 user_data_format: RAW
744 __docker_proxy__: { get_param: docker_proxy }
745 __apt_proxy__: { get_param: apt_proxy }
746 __docker_version__: { get_param: docker_version }
747 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
748 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
749 __host_label__: 'orchestration'
751 get_file: k8s_vm_entrypoint.sh
755 description: The IP address of the rancher instance
756 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
759 description: The IP address of the k8s_1 instance
760 value: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
763 description: The IP address of the k8s_2 instance
764 value: { get_attr: [k8s_2_floating_ip, floating_ip_address] }
767 description: The IP address of the k8s_3 instance
768 value: { get_attr: [k8s_3_floating_ip, floating_ip_address] }
771 description: The IP address of the k8s_4 instance
772 value: { get_attr: [k8s_4_floating_ip, floating_ip_address] }
775 description: The IP address of the k8s_5 instance
776 value: { get_attr: [k8s_5_floating_ip, floating_ip_address] }
779 description: The IP address of the k8s_6 instance
780 value: { get_attr: [k8s_6_floating_ip, floating_ip_address] }
783 description: The IP address of the k8s_7 instance
784 value: { get_attr: [k8s_7_floating_ip, floating_ip_address] }
787 description: The IP address of the k8s_8 instance
788 value: { get_attr: [k8s_8_floating_ip, floating_ip_address] }
791 description: The IP address of the k8s_9 instance
792 value: { get_attr: [k8s_9_floating_ip, floating_ip_address] }
795 description: The IP address of the k8s_10 instance
796 value: { get_attr: [k8s_10_floating_ip, floating_ip_address] }