1 heat_template_version: 2015-10-15
3 description: Heat template to install ONAP components
13 ##############################################
15 # Parameters used across all ONAP components #
17 ##############################################
21 description: Public network for floating IP address allocation
25 description: Name of the Ubuntu 14.04 image
29 description: Name of the Ubuntu 16.04 image
33 description: Name of the Small Flavor supported by the cloud provider
37 description: Name of the Medium Flavor supported by the cloud provider
41 description: Name of the Large Flavor supported by the cloud provider
45 description: Name of the Extra Large Flavor supported by the cloud provider
49 description: Base name of ONAP VMs
53 description: Public/Private key pair name
57 description: Public key to be installed on the compute instance
61 description: Complete URL for the Nexus repository.
65 description: Complete URL for the Nexus repository for docker images.
69 description: Nexus Repository username
73 description: Nexus Repository Password
77 description: Artifacts version of ONAP components
81 label: Version number of ONAP docker images
85 label: Gerrit code branch
86 description: Gerrit branch where to download the code from
90 description: DMaaP Topic name
94 description: Openstack tenant ID
98 description: Openstack username
100 openstack_auth_method:
102 description: Openstack authentication method (password VS. api-key)
106 description: Openstack API Key
110 description: URL of Openstack Horizon
114 description: URL of Openstack Keystone
118 description: Cloud Provider Name
120 ######################
122 # Network parameters #
124 ######################
127 type: comma_delimited_list
128 description: List of External DNS for OAM ONAP network
132 description: First element of the dns_list for ONAP network
134 ### Floating IP addresses ###
137 description: AAI Floating IP Address
141 description: APP-C Floating IP Address
145 description: DCAE Floating IP Address
149 description: DCAE Collector Floating IP Address
153 description: DCAE Collector Database Floating IP Address
157 description: Hadoop VM1 Floating IP Address
161 description: Hadoop VM2 Floating IP Address
165 description: Hadoop VM3 Floating IP Address
169 description: DNS Floating IP Address
173 description: MSO Floating IP Address
177 description: Message Router Floating IP Address
181 description: Policy Engine Floating IP Address
185 description: Portal Floating IP Address
189 description: Robot Framework Floating IP Address
193 description: SDC Floating IP Address
197 description: SDN-C Floating IP Address
201 description: VID Floating IP Address
203 ### Private IP addresses ###
206 description: CIDR of the OAM ONAP network
210 description: AAI IP Address
214 description: APP-C IP Address
218 description: DCAE IP Address
222 description: DCAE Collector IP Address
226 description: DCAE Database IP Address
230 description: Hadoop VM1 IP Address
234 description: Hadoop VM2 IP Address
238 description: Hadoop VM3 IP Address
242 description: DNS IP Address
246 description: MSO IP Address
250 description: Message Router IP Address
254 description: Policy Engine IP Address
258 description: Portal IP Address
262 description: Robot Framework IP Address
266 description: SDC IP Address
270 description: SDN-C IP Address
274 description: VID IP Address
277 ###########################
279 # Parameters used by DCAE #
281 ###########################
283 dcae_base_environment:
285 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
289 description: DCAE Zone to use in VM names created by DCAE controller
293 description: DCAE State to use in VM names created by DCAE controller
297 description: Root URL of Nexus repository
301 description: Snapshot of Maven repository for DCAE deployment
305 description: Region where the DCAE controller will spin the VMs
309 description: Branch of the Gitlab repository
313 description: DCAE Code Version Number
324 type: OS::Heat::RandomString
329 # Public key used to access ONAP components
331 type: OS::Nova::KeyPair
337 base: { get_param: key_name }
338 rand: { get_resource: random-str }
339 public_key: { get_param: pub_key }
340 save_private_key: false
343 # ONAP management private network
345 type: OS::Neutron::Net
349 template: oam_ecomp_rand
351 rand: { get_resource: random-str }
354 type: OS::Neutron::Subnet
358 template: oam_ecomp_rand
360 rand: { get_resource: random-str }
361 network_id: { get_resource: oam_ecomp }
362 cidr: { get_param: oam_network_cidr }
363 dns_nameservers: { get_param: dns_list }
366 type: OS::Neutron::Router
368 external_gateway_info:
369 network: { get_param: public_net_id }
372 type: OS::Neutron::RouterInterface
374 router_id: { get_resource: router }
375 subnet_id: { get_resource: oam_ecomp_subnet }
378 # DNS Server instantiation
380 type: OS::Neutron::Port
382 network: { get_resource: oam_ecomp }
383 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dns_ip_addr }}]
386 type: OS::Neutron::FloatingIP
388 floating_network_id: { get_param: public_net_id }
389 port_id: { get_resource: dns_private_port }
390 floating_ip_address: { get_param: dns_float_ip }
393 type: OS::Nova::Server
395 image: { get_param: ubuntu_1404_image }
396 flavor: { get_param: flavor_small }
399 template: base-dns-server
401 base: { get_param: vm_base_name }
402 key_name: { get_resource: vm_key }
404 - port: { get_resource: dns_private_port }
405 user_data_format: RAW
409 __nexus_repo__: { get_param: nexus_repo }
410 __artifacts_version__: { get_param: artifacts_version }
411 __oam_network_cidr__: { get_attr: [oam_ecomp_subnet, cidr] }
412 __dns_ip_addr__: { get_param: dns_ip_addr }
413 __aai_ip_addr__: { get_param: aai_ip_addr }
414 __appc_ip_addr__: { get_param: appc_ip_addr }
415 __dcae_ip_addr__: { get_param: dcae_ip_addr }
416 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
417 __mso_ip_addr__: { get_param: mso_ip_addr }
418 __mr_ip_addr__: { get_param: mr_ip_addr }
419 __policy_ip_addr__: { get_param: policy_ip_addr }
420 __portal_ip_addr__: { get_param: portal_ip_addr }
421 __robot_ip_addr__: { get_param: robot_ip_addr }
422 __sdc_ip_addr__: { get_param: sdc_ip_addr }
423 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
424 __vid_ip_addr__: { get_param: vid_ip_addr }
425 __cloud_env__: { get_param: cloud_env }
430 # Create configuration files
432 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
433 echo "__cloud_env__" > /opt/config/cloud_env.txt
434 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
435 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
436 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
437 echo "__aai_ip_addr__" > /opt/config/aai_ip_addr.txt
438 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
439 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
440 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
441 echo "__mso_ip_addr__" > /opt/config/mso_ip_addr.txt
442 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
443 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
444 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
445 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
446 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
447 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
448 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
450 # Download and run install script
451 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
453 chmod +x dns_install.sh
459 type: OS::Neutron::Port
461 network: { get_resource: oam_ecomp }
462 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: aai_ip_addr }}]
465 type: OS::Neutron::FloatingIP
467 floating_network_id: { get_param: public_net_id }
468 port_id: { get_resource: aai_private_port }
469 floating_ip_address: { get_param: aai_float_ip }
472 type: OS::Nova::Server
474 image: { get_param: ubuntu_1404_image }
475 flavor: { get_param: flavor_xlarge }
480 base: { get_param: vm_base_name }
481 key_name: { get_resource: vm_key }
483 - port: { get_resource: aai_private_port }
484 user_data_format: RAW
488 __nexus_repo__: { get_param: nexus_repo }
489 __nexus_docker_repo__: { get_param: nexus_docker_repo }
490 __nexus_username__: { get_param: nexus_username }
491 __nexus_password__: { get_param: nexus_password }
492 __dmaap_topic__: { get_param: dmaap_topic }
493 __artifacts_version__: { get_param: artifacts_version }
494 __dns_ip_addr__: { get_param: dns_ip_addr }
495 __sdc_ip_addr__: { get_param: sdc_ip_addr }
496 __docker_version__: { get_param: docker_version }
497 __cloud_env__: { get_param: cloud_env }
498 __external_dns__: { get_param: external_dns }
502 # Create configuration files
504 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
505 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
506 echo "__nexus_username__" > /opt/config/nexus_username.txt
507 echo "__nexus_password__" > /opt/config/nexus_password.txt
508 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
509 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
510 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
511 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
512 echo "__docker_version__" > /opt/config/docker_version.txt
513 echo "__cloud_env__" > /opt/config/cloud_env.txt
514 echo "__external_dns__" > /opt/config/external_dns.txt
516 # Download and run install script
517 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
519 chmod +x aai_install.sh
525 type: OS::Neutron::Port
527 network: { get_resource: oam_ecomp }
528 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mso_ip_addr }}]
531 type: OS::Neutron::FloatingIP
533 floating_network_id: { get_param: public_net_id }
534 port_id: { get_resource: mso_private_port }
535 floating_ip_address: { get_param: mso_float_ip }
538 type: OS::Nova::Server
540 image: { get_param: ubuntu_1604_image }
541 flavor: { get_param: flavor_large }
546 base: { get_param: vm_base_name }
547 key_name: { get_resource: vm_key }
549 - port: { get_resource: mso_private_port }
550 user_data_format: RAW
554 __nexus_repo__: { get_param: nexus_repo }
555 __nexus_docker_repo__: { get_param: nexus_docker_repo }
556 __nexus_username__: { get_param: nexus_username }
557 __nexus_password__: { get_param: nexus_password }
558 __openstack_username__: { get_param: openstack_username }
559 __openstack_tenant_id__: { get_param: openstack_tenant_id }
560 __openstack_api_key__: { get_param: openstack_api_key }
561 __openstack_region__: { get_param: openstack_region }
562 __keystone_url__: { get_param: keystone_url }
563 __dmaap_topic__: { get_param: dmaap_topic }
564 __artifacts_version__: { get_param: artifacts_version }
565 __dns_ip_addr__: { get_param: dns_ip_addr }
566 __docker_version__: { get_param: docker_version }
567 __gerrit_branch__: { get_param: gerrit_branch }
568 __cloud_env__: { get_param: cloud_env }
569 __external_dns__: { get_param: external_dns }
573 # Create configuration files
575 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
576 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
577 echo "__nexus_username__" > /opt/config/nexus_username.txt
578 echo "__nexus_password__" > /opt/config/nexus_password.txt
579 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
580 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
581 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
582 echo "__openstack_username__" > /opt/config/openstack_username.txt
583 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
584 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
585 echo "__openstack_region__" > /opt/config/openstack_region.txt
586 echo "__keystone_url__" > /opt/config/keystone.txt
587 echo "__docker_version__" > /opt/config/docker_version.txt
588 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
589 echo "__cloud_env__" > /opt/config/cloud_env.txt
590 echo "__external_dns__" > /opt/config/external_dns.txt
592 # Download and run install script
593 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
595 chmod +x mso_install.sh
599 # Message Router instantiation
600 mrouter_private_port:
601 type: OS::Neutron::Port
603 network: { get_resource: oam_ecomp }
604 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mr_ip_addr }}]
607 type: OS::Neutron::FloatingIP
609 floating_network_id: { get_param: public_net_id }
610 port_id: { get_resource: mrouter_private_port }
611 floating_ip_address: { get_param: mr_float_ip }
614 type: OS::Nova::Server
616 image: { get_param: ubuntu_1404_image }
617 flavor: { get_param: flavor_large }
620 template: base-message-router
622 base: { get_param: vm_base_name }
623 key_name: { get_resource: vm_key }
625 - port: { get_resource: mrouter_private_port }
626 user_data_format: RAW
630 __nexus_repo__: { get_param: nexus_repo }
631 __nexus_docker_repo__: { get_param: nexus_docker_repo }
632 __nexus_username__: { get_param: nexus_username }
633 __nexus_password__: { get_param: nexus_password }
634 __artifacts_version__: { get_param: artifacts_version }
635 __dns_ip_addr__: { get_param: dns_ip_addr }
636 __gerrit_branch__: { get_param: gerrit_branch }
637 __cloud_env__: { get_param: cloud_env }
638 __external_dns__: { get_param: external_dns }
642 # Create configuration files
644 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
645 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
646 echo "__nexus_username__" > /opt/config/nexus_username.txt
647 echo "__nexus_password__" > /opt/config/nexus_password.txt
648 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
649 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
650 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
651 echo "__cloud_env__" > /opt/config/cloud_env.txt
652 echo "__external_dns__" > /opt/config/external_dns.txt
654 # Download and run install script
655 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
657 chmod +x mr_install.sh
661 # Robot Framework instantiation
663 type: OS::Neutron::Port
665 network: { get_resource: oam_ecomp }
666 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: robot_ip_addr }}]
669 type: OS::Neutron::FloatingIP
671 floating_network_id: { get_param: public_net_id }
672 port_id: { get_resource: robot_private_port }
673 floating_ip_address: { get_param: robot_float_ip }
676 type: OS::Nova::Server
678 image: { get_param: ubuntu_1604_image }
679 flavor: { get_param: flavor_small }
684 base: { get_param: vm_base_name }
685 key_name: { get_resource: vm_key }
687 - port: { get_resource: robot_private_port }
688 user_data_format: RAW
692 __nexus_repo__: { get_param: nexus_repo }
693 __nexus_docker_repo__: { get_param: nexus_docker_repo }
694 __nexus_username__: { get_param: nexus_username }
695 __nexus_password__: { get_param: nexus_password }
696 __network_name__: { get_attr: [oam_ecomp, name] }
697 __openstack_username__: { get_param: openstack_username }
698 __openstack_api_key__: { get_param : openstack_api_key }
699 __artifacts_version__: { get_param: artifacts_version }
700 __openstack_region__: { get_param: openstack_region }
701 __dns_ip_addr__: { get_param: dns_ip_addr }
702 __docker_version__: { get_param: docker_version }
703 __gerrit_branch__: { get_param: gerrit_branch }
704 __cloud_env__: { get_param: cloud_env }
705 __external_dns__: { get_param: external_dns }
709 # Create configuration files
711 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
712 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
713 echo "__nexus_username__" > /opt/config/nexus_username.txt
714 echo "__nexus_password__" > /opt/config/nexus_password.txt
715 echo "__network_name__" > /opt/config/network.txt
716 echo "__openstack_username__" > /opt/config/openstack_username.txt
717 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
718 echo "__openstack_region__" > /opt/config/region.txt
719 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
720 echo "__docker_version__" > /opt/config/docker_version.txt
721 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
722 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
723 echo "__cloud_env__" > /opt/config/cloud_env.txt
724 echo "__external_dns__" > /opt/config/external_dns.txt
726 # Download and run install script
727 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
729 chmod +x robot_install.sh
735 type: OS::Neutron::Port
737 network: { get_resource: oam_ecomp }
738 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: vid_ip_addr }}]
741 type: OS::Neutron::FloatingIP
743 floating_network_id: { get_param: public_net_id }
744 port_id: { get_resource: vid_private_port }
745 floating_ip_address: { get_param: vid_float_ip }
748 type: OS::Nova::Server
750 image: { get_param: ubuntu_1404_image }
751 flavor: { get_param: flavor_medium }
756 base: { get_param: vm_base_name }
757 key_name: { get_resource: vm_key }
759 - port: { get_resource: vid_private_port }
760 user_data_format: RAW
764 __nexus_repo__: { get_param: nexus_repo }
765 __nexus_docker_repo__: { get_param: nexus_docker_repo }
766 __nexus_username__: { get_param: nexus_username }
767 __nexus_password__: { get_param: nexus_password }
768 __artifacts_version__: { get_param: artifacts_version }
769 __dns_ip_addr__: { get_param: dns_ip_addr }
770 __docker_version__: { get_param: docker_version }
771 __gerrit_branch__: { get_param: gerrit_branch }
772 __cloud_env__: { get_param: cloud_env }
773 __external_dns__: { get_param: external_dns }
777 # Create configuration files
779 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
780 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
781 echo "__nexus_username__" > /opt/config/nexus_username.txt
782 echo "__nexus_password__" > /opt/config/nexus_password.txt
783 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
784 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
785 echo "__docker_version__" > /opt/config/docker_version.txt
786 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
787 echo "__cloud_env__" > /opt/config/cloud_env.txt
788 echo "__external_dns__" > /opt/config/external_dns.txt
790 # Download and run install script
791 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
793 chmod +x vid_install.sh
797 # SDN-C instantiation
799 type: OS::Neutron::Port
801 network: { get_resource: oam_ecomp }
802 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
805 type: OS::Neutron::FloatingIP
807 floating_network_id: { get_param: public_net_id }
808 port_id: { get_resource: sdnc_private_port }
809 floating_ip_address: { get_param: sdnc_float_ip }
812 type: OS::Nova::Server
814 image: { get_param: ubuntu_1404_image }
815 flavor: { get_param: flavor_large }
820 base: { get_param: vm_base_name }
821 key_name: { get_resource: vm_key }
823 - port: { get_resource: sdnc_private_port }
824 user_data_format: RAW
828 __nexus_repo__: { get_param: nexus_repo }
829 __nexus_docker_repo__: { get_param: nexus_docker_repo }
830 __nexus_username__: { get_param: nexus_username }
831 __nexus_password__: { get_param: nexus_password }
832 __artifacts_version__: { get_param: artifacts_version }
833 __dns_ip_addr__: { get_param: dns_ip_addr }
834 __docker_version__: { get_param: docker_version }
835 __gerrit_branch__: { get_param: gerrit_branch }
836 __cloud_env__: { get_param: cloud_env }
837 __external_dns__: { get_param: external_dns }
841 # Create configuration files
843 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
844 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
845 echo "__nexus_username__" > /opt/config/nexus_username.txt
846 echo "__nexus_password__" > /opt/config/nexus_password.txt
847 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
848 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
849 echo "__docker_version__" > /opt/config/docker_version.txt
850 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
851 echo "__cloud_env__" > /opt/config/cloud_env.txt
852 echo "__external_dns__" > /opt/config/external_dns.txt
854 # Download and run install script
855 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
857 chmod +x sdnc_install.sh
863 type: OS::Neutron::Port
865 network: { get_resource: oam_ecomp }
866 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
869 type: OS::Neutron::FloatingIP
871 floating_network_id: { get_param: public_net_id }
872 port_id: { get_resource: sdc_private_port }
873 floating_ip_address: { get_param: sdc_float_ip }
876 type: OS::Cinder::Volume
882 type: OS::Nova::Server
884 image: { get_param: ubuntu_1604_image }
885 flavor: { get_param: flavor_xlarge }
890 base: { get_param: vm_base_name }
891 key_name: { get_resource: vm_key }
893 - port: { get_resource: sdc_private_port }
894 block_device_mapping:
895 - device_name: /dev/vdb
896 volume_id: {get_resource: sdc_volume_data}
897 user_data_format: RAW
901 __nexus_repo__: { get_param: nexus_repo }
902 __nexus_docker_repo__: { get_param: nexus_docker_repo }
903 __nexus_username__: { get_param: nexus_username }
904 __nexus_password__: { get_param: nexus_password }
905 __env_name__: { get_param: dmaap_topic }
906 __artifacts_version__: { get_param: artifacts_version }
907 __dns_ip_addr__: { get_param: dns_ip_addr }
908 __mr_ip_addr__: { get_param: mr_ip_addr }
909 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
910 __docker_version__: { get_param: docker_version }
911 __gerrit_branch__: { get_param: gerrit_branch }
912 __cloud_env__: { get_param: cloud_env }
913 __external_dns__: { get_param: external_dns }
917 # Create configuration files
919 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
920 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
921 echo "__nexus_username__" > /opt/config/nexus_username.txt
922 echo "__nexus_password__" > /opt/config/nexus_password.txt
923 echo "__env_name__" > /opt/config/env_name.txt
924 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
925 echo "__public_ip__" > /opt/config/public_ip.txt
926 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
927 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
928 echo "__docker_version__" > /opt/config/docker_version.txt
929 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
930 echo "__cloud_env__" > /opt/config/cloud_env.txt
931 echo "__external_dns__" > /opt/config/external_dns.txt
933 # Download and run install script
934 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
936 chmod +x asdc_install.sh
940 # PORTAL instantiation
942 type: OS::Neutron::Port
944 network: { get_resource: oam_ecomp }
945 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: portal_ip_addr }}]
948 type: OS::Neutron::FloatingIP
950 floating_network_id: { get_param: public_net_id }
951 port_id: { get_resource: portal_private_port }
952 floating_ip_address: { get_param: portal_float_ip }
955 type: OS::Nova::Server
957 image: { get_param: ubuntu_1404_image }
958 flavor: { get_param: flavor_large }
961 template: base-portal
963 base: { get_param: vm_base_name }
964 key_name: { get_resource: vm_key }
966 - port: { get_resource: portal_private_port }
967 user_data_format: RAW
971 __nexus_repo__: { get_param: nexus_repo }
972 __nexus_docker_repo__: { get_param: nexus_docker_repo }
973 __nexus_username__: { get_param: nexus_username }
974 __nexus_password__: { get_param: nexus_password }
975 __artifacts_version__: { get_param: artifacts_version }
976 __dns_ip_addr__: { get_param: dns_ip_addr }
977 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
978 __docker_version__: { get_param: docker_version }
979 __gerrit_branch__: { get_param: gerrit_branch }
980 __cloud_env__: { get_param: cloud_env }
981 __external_dns__: { get_param: external_dns }
985 # Create configuration files
987 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
988 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
989 echo "__nexus_username__" > /opt/config/nexus_username.txt
990 echo "__nexus_password__" > /opt/config/nexus_password.txt
991 echo "__public_ip__" > /opt/config/public_ip.txt
992 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
993 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
994 echo "__docker_version__" > /opt/config/docker_version.txt
995 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
996 echo "__cloud_env__" > /opt/config/cloud_env.txt
997 echo "__external_dns__" > /opt/config/external_dns.txt
999 # Download and run install script
1000 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1002 chmod +x portal_install.sh
1006 # DCAE Controller instantiation
1007 dcae_c_private_port:
1008 type: OS::Neutron::Port
1010 network: { get_resource: oam_ecomp }
1011 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1014 type: OS::Neutron::FloatingIP
1016 floating_network_id: { get_param: public_net_id }
1017 port_id: { get_resource: dcae_c_private_port }
1018 floating_ip_address: { get_param: dcae_float_ip }
1021 type: OS::Nova::Server
1023 image: { get_param: ubuntu_1404_image }
1024 flavor: { get_param: flavor_medium }
1027 template: base-dcae-controller
1029 base: { get_param: vm_base_name }
1030 key_name: { get_resource: vm_key }
1032 - port: { get_resource: dcae_c_private_port }
1033 user_data_format: RAW
1037 __nexus_repo__: { get_param: nexus_repo }
1038 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1039 __nexus_username__: { get_param: nexus_username }
1040 __nexus_password__: { get_param: nexus_password }
1041 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1042 __gitlab_branch__: { get_param: gitlab_branch }
1043 __dns_ip_addr__: { get_param: dns_ip_addr }
1044 __dcae_zone__: { get_param: dcae_zone }
1045 __dcae_state__: { get_param: dcae_state }
1046 __artifacts_version__: { get_param: artifacts_version }
1047 __tenant_id__: { get_param: openstack_tenant_id }
1048 __openstack_private_network_name__: { get_attr: [oam_ecomp, name] }
1049 __openstack_user__: { get_param: openstack_username }
1050 __openstack_password__: { get_param: openstack_api_key }
1051 __openstack_auth_method__: { get_param: openstack_auth_method }
1052 __key_name__: { get_param: key_name }
1053 __rand_str__: { get_resource: random-str }
1054 __pub_key__: { get_param: pub_key }
1055 __nexus_repo_root__: { get_param: nexus_repo_root }
1056 __openstack_region__: { get_param: openstack_region }
1057 __horizon_url__: { get_param: horizon_url }
1058 __keystone_url__: { get_param: keystone_url }
1059 __docker_version__: { get_param: docker_version }
1060 __gerrit_branch__: { get_param: gerrit_branch }
1061 __dcae_code_version__: { get_param: dcae_code_version }
1062 __cloud_env__: { get_param: cloud_env }
1063 __public_net_id__: { get_param: public_net_id }
1064 __dcae_base_environment__: { get_param: dcae_base_environment }
1065 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1066 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1067 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1068 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1069 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1070 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1071 __dcae_float_ip__: { get_param: dcae_float_ip }
1072 __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1073 __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1074 __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1075 __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1076 __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1077 __external_dns__: { get_param: external_dns }
1078 __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1079 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1080 __flavor_small__: { get_param: flavor_small }
1081 __flavor_medium__: { get_param: flavor_medium }
1082 __flavor_large__: { get_param: flavor_large }
1083 __flavor_xlarge__: { get_param: flavor_xlarge }
1087 # Create configuration files
1088 mkdir -p /opt/config
1089 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1090 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1091 echo "__nexus_username__" > /opt/config/nexus_username.txt
1092 echo "__nexus_password__" > /opt/config/nexus_password.txt
1093 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1094 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1095 echo "__docker_version__" > /opt/config/docker_version.txt
1096 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1097 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1098 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1099 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1100 echo "__dcae_state__" > /opt/config/dcae_state.txt
1101 echo "__tenant_id__" > /opt/config/tenant_id.txt
1102 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1103 echo "__openstack_user__" > /opt/config/openstack_user.txt
1104 echo "__openstack_password__" > /opt/config/openstack_password.txt
1105 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1106 echo "__key_name__" > /opt/config/key_name.txt
1107 echo "__rand_str__" > /opt/config/rand_str.txt
1108 echo "__pub_key__" > /opt/config/pub_key.txt
1109 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1110 echo "__openstack_region__" > /opt/config/openstack_region.txt
1111 echo "__horizon_url__" > /opt/config/horizon_url.txt
1112 echo "__keystone_url__" > /opt/config/keystone_url.txt
1113 echo "__cloud_env__" > /opt/config/cloud_env.txt
1114 echo "__public_net_id__" > /opt/config/public_net_id.txt
1115 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1116 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1117 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1118 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1119 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1120 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1121 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1122 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1123 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1124 echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1125 echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1126 echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1127 echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1128 echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1129 echo "__external_dns__" > /opt/config/external_dns.txt
1130 echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1131 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1132 echo "__flavor_small__" > /opt/config/flavor_small.txt
1133 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1134 echo "__flavor_large__" > /opt/config/flavor_large.txt
1135 echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1137 # Download and run install script
1138 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1140 chmod +x dcae_install.sh
1144 # Policy Engine instantiation
1145 policy_private_port:
1146 type: OS::Neutron::Port
1148 network: { get_resource: oam_ecomp }
1149 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1152 type: OS::Neutron::FloatingIP
1154 floating_network_id: { get_param: public_net_id }
1155 port_id: { get_resource: policy_private_port }
1156 floating_ip_address: { get_param: policy_float_ip }
1159 type: OS::Nova::Server
1161 image: { get_param: ubuntu_1404_image }
1162 flavor: { get_param: flavor_xlarge }
1165 template: base-policy
1167 base: { get_param: vm_base_name }
1168 key_name: { get_resource: vm_key }
1170 - port: { get_resource: policy_private_port }
1171 user_data_format: RAW
1175 __nexus_repo__: { get_param: nexus_repo }
1176 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1177 __nexus_username__: { get_param: nexus_username }
1178 __nexus_password__: { get_param: nexus_password }
1179 __artifacts_version__: { get_param: artifacts_version }
1180 __dns_ip_addr__: { get_param: dns_ip_addr }
1181 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1182 __docker_version__: { get_param: docker_version }
1183 __gerrit_branch__: { get_param: gerrit_branch }
1184 __cloud_env__: { get_param: cloud_env }
1185 __external_dns__: { get_param: external_dns }
1189 # Create configuration files
1190 mkdir -p /opt/config
1191 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1192 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1193 echo "__nexus_username__" > /opt/config/nexus_username.txt
1194 echo "__nexus_password__" > /opt/config/nexus_password.txt
1195 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1196 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1197 echo "__public_ip__" > /opt/config/public_ip.txt
1198 echo "__docker_version__" > /opt/config/docker_version.txt
1199 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1200 echo "__cloud_env__" > /opt/config/cloud_env.txt
1201 echo "__external_dns__" > /opt/config/external_dns.txt
1203 # Download and run install script
1204 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1206 chmod +x policy_install.sh
1210 # APP-C instantiation
1212 type: OS::Neutron::Port
1214 network: { get_resource: oam_ecomp }
1215 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1218 type: OS::Neutron::FloatingIP
1220 floating_network_id: { get_param: public_net_id }
1221 port_id: { get_resource: appc_private_port }
1222 floating_ip_address: { get_param: appc_float_ip }
1225 type: OS::Nova::Server
1227 image: { get_param: ubuntu_1404_image }
1228 flavor: { get_param: flavor_large }
1233 base: { get_param: vm_base_name }
1234 key_name: { get_resource: vm_key }
1236 - port: { get_resource: appc_private_port }
1237 user_data_format: RAW
1241 __nexus_repo__: { get_param: nexus_repo }
1242 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1243 __nexus_username__: { get_param: nexus_username }
1244 __nexus_password__: { get_param: nexus_password }
1245 __dmaap_topic__: { get_param: dmaap_topic }
1246 __artifacts_version__: { get_param: artifacts_version }
1247 __dns_ip_addr__: { get_param: dns_ip_addr }
1248 __docker_version__: { get_param: docker_version }
1249 __gerrit_branch__: { get_param: gerrit_branch }
1250 __cloud_env__: { get_param: cloud_env }
1251 __external_dns__: { get_param: external_dns }
1255 # Create configuration files
1256 mkdir -p /opt/config
1257 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1258 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1259 echo "__nexus_username__" > /opt/config/nexus_username.txt
1260 echo "__nexus_password__" > /opt/config/nexus_password.txt
1261 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1262 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1263 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1264 echo "__docker_version__" > /opt/config/docker_version.txt
1265 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1266 echo "__cloud_env__" > /opt/config/cloud_env.txt
1267 echo "__external_dns__" > /opt/config/external_dns.txt
1269 # Download and run install script
1270 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1272 chmod +x appc_install.sh