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: External DNS for OAM ONAP network
130 ### Floating IP addresses ###
133 description: AAI Floating IP Address
137 description: APP-C Floating IP Address
141 description: DCAE Floating IP Address
145 description: DCAE Collector Floating IP Address
149 description: DCAE Collector Database Floating IP Address
153 description: Hadoop VM1 Floating IP Address
157 description: Hadoop VM2 Floating IP Address
161 description: Hadoop VM3 Floating IP Address
165 description: DNS Floating IP Address
169 description: MSO Floating IP Address
173 description: Message Router Floating IP Address
177 description: Policy Engine Floating IP Address
181 description: Portal Floating IP Address
185 description: Robot Framework Floating IP Address
189 description: SDC Floating IP Address
193 description: SDN-C Floating IP Address
197 description: VID Floating IP Address
199 ### Private IP addresses ###
202 description: CIDR of the OAM ONAP network
206 description: AAI IP Address
210 description: APP-C IP Address
214 description: DCAE IP Address
218 description: DCAE Collector IP Address
222 description: DCAE Database IP Address
226 description: Hadoop VM1 IP Address
230 description: Hadoop VM2 IP Address
234 description: Hadoop VM3 IP Address
238 description: DNS IP Address
242 description: MSO IP Address
246 description: Message Router IP Address
250 description: Policy Engine IP Address
254 description: Portal IP Address
258 description: Robot Framework IP Address
262 description: SDC IP Address
266 description: SDN-C IP Address
270 description: VID IP Address
273 ###########################
275 # Parameters used by DCAE #
277 ###########################
279 dcae_base_environment:
281 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/...)
285 description: DCAE Zone to use in VM names created by DCAE controller
289 description: DCAE State to use in VM names created by DCAE controller
293 description: Root URL of Nexus repository
297 description: Snapshot of Maven repository for DCAE deployment
301 description: Region where the DCAE controller will spin the VMs
305 description: Branch of the Gitlab repository
309 description: DCAE Code Version Number
320 type: OS::Heat::RandomString
325 # Public key used to access ONAP components
327 type: OS::Nova::KeyPair
333 base: { get_param: key_name }
334 rand: { get_resource: random-str }
335 public_key: { get_param: pub_key }
336 save_private_key: false
339 # ONAP management private network
341 type: OS::Neutron::Net
345 template: oam_ecomp_rand
347 rand: { get_resource: random-str }
350 type: OS::Neutron::Subnet
354 template: oam_ecomp_rand
356 rand: { get_resource: random-str }
357 network_id: { get_resource: oam_ecomp }
358 cidr: { get_param: oam_network_cidr }
359 dns_nameservers: { get_param: external_dns }
362 type: OS::Neutron::Router
364 external_gateway_info:
365 network: { get_param: public_net_id }
368 type: OS::Neutron::RouterInterface
370 router_id: { get_resource: router }
371 subnet_id: { get_resource: oam_ecomp_subnet }
374 # DNS Server instantiation
376 type: OS::Neutron::Port
378 network: { get_resource: oam_ecomp }
379 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dns_ip_addr }}]
382 type: OS::Neutron::FloatingIP
384 floating_network_id: { get_param: public_net_id }
385 port_id: { get_resource: dns_private_port }
386 floating_ip_address: { get_param: dns_float_ip }
389 type: OS::Nova::Server
391 image: { get_param: ubuntu_1404_image }
392 flavor: { get_param: flavor_small }
395 template: base-dns-server
397 base: { get_param: vm_base_name }
398 key_name: { get_resource: vm_key }
400 - port: { get_resource: dns_private_port }
401 user_data_format: RAW
405 __nexus_repo__: { get_param: nexus_repo }
406 __artifacts_version__: { get_param: artifacts_version }
407 __oam_network_cidr__: { get_attr: [oam_ecomp_subnet, cidr] }
408 __dns_ip_addr__: { get_param: dns_ip_addr }
409 __aai_ip_addr__: { get_param: aai_ip_addr }
410 __appc_ip_addr__: { get_param: appc_ip_addr }
411 __dcae_ip_addr__: { get_param: dcae_ip_addr }
412 __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
413 __mso_ip_addr__: { get_param: mso_ip_addr }
414 __mr_ip_addr__: { get_param: mr_ip_addr }
415 __policy_ip_addr__: { get_param: policy_ip_addr }
416 __portal_ip_addr__: { get_param: portal_ip_addr }
417 __robot_ip_addr__: { get_param: robot_ip_addr }
418 __sdc_ip_addr__: { get_param: sdc_ip_addr }
419 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
420 __vid_ip_addr__: { get_param: vid_ip_addr }
421 __cloud_env__: { get_param: cloud_env }
426 # Create configuration files
428 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
429 echo "__cloud_env__" > /opt/config/cloud_env.txt
430 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
431 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
432 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
433 echo "__aai_ip_addr__" > /opt/config/aai_ip_addr.txt
434 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
435 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
436 echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
437 echo "__mso_ip_addr__" > /opt/config/mso_ip_addr.txt
438 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
439 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
440 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
441 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
442 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
443 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
444 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
446 # Download and run install script
447 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
449 chmod +x dns_install.sh
455 type: OS::Neutron::Port
457 network: { get_resource: oam_ecomp }
458 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: aai_ip_addr }}]
461 type: OS::Neutron::FloatingIP
463 floating_network_id: { get_param: public_net_id }
464 port_id: { get_resource: aai_private_port }
465 floating_ip_address: { get_param: aai_float_ip }
468 type: OS::Nova::Server
470 image: { get_param: ubuntu_1404_image }
471 flavor: { get_param: flavor_xlarge }
476 base: { get_param: vm_base_name }
477 key_name: { get_resource: vm_key }
479 - port: { get_resource: aai_private_port }
480 user_data_format: RAW
484 __nexus_repo__: { get_param: nexus_repo }
485 __nexus_docker_repo__: { get_param: nexus_docker_repo }
486 __nexus_username__: { get_param: nexus_username }
487 __nexus_password__: { get_param: nexus_password }
488 __dmaap_topic__: { get_param: dmaap_topic }
489 __artifacts_version__: { get_param: artifacts_version }
490 __dns_ip_addr__: { get_param: dns_ip_addr }
491 __docker_version__: { get_param: docker_version }
492 __cloud_env__: { get_param: cloud_env }
496 # Create configuration files
498 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
499 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
500 echo "__nexus_username__" > /opt/config/nexus_username.txt
501 echo "__nexus_password__" > /opt/config/nexus_password.txt
502 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
503 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
504 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
505 echo "__docker_version__" > /opt/config/docker_version.txt
506 echo "__cloud_env__" > /opt/config/cloud_env.txt
508 # Download and run install script
509 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
511 chmod +x aai_install.sh
517 type: OS::Neutron::Port
519 network: { get_resource: oam_ecomp }
520 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mso_ip_addr }}]
523 type: OS::Neutron::FloatingIP
525 floating_network_id: { get_param: public_net_id }
526 port_id: { get_resource: mso_private_port }
527 floating_ip_address: { get_param: mso_float_ip }
530 type: OS::Nova::Server
532 image: { get_param: ubuntu_1604_image }
533 flavor: { get_param: flavor_large }
538 base: { get_param: vm_base_name }
539 key_name: { get_resource: vm_key }
541 - port: { get_resource: mso_private_port }
542 user_data_format: RAW
546 __nexus_repo__: { get_param: nexus_repo }
547 __nexus_docker_repo__: { get_param: nexus_docker_repo }
548 __nexus_username__: { get_param: nexus_username }
549 __nexus_password__: { get_param: nexus_password }
550 __openstack_username__: { get_param: openstack_username }
551 __openstack_tenant_id__: { get_param: openstack_tenant_id }
552 __openstack_api_key__: { get_param: openstack_api_key }
553 __keystone_url__: { get_param: keystone_url }
554 __dmaap_topic__: { get_param: dmaap_topic }
555 __artifacts_version__: { get_param: artifacts_version }
556 __dns_ip_addr__: { get_param: dns_ip_addr }
557 __docker_version__: { get_param: docker_version }
558 __gerrit_branch__: { get_param: gerrit_branch }
559 __cloud_env__: { get_param: cloud_env }
563 # Create configuration files
565 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
566 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
567 echo "__nexus_username__" > /opt/config/nexus_username.txt
568 echo "__nexus_password__" > /opt/config/nexus_password.txt
569 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
570 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
571 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
572 echo "__openstack_username__" > /opt/config/openstack_username.txt
573 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
574 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
575 echo "__keystone_url__" > /opt/config/keystone.txt
576 echo "__docker_version__" > /opt/config/docker_version.txt
577 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
578 echo "__cloud_env__" > /opt/config/cloud_env.txt
580 # Download and run install script
581 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
583 chmod +x mso_install.sh
587 # Message Router instantiation
588 mrouter_private_port:
589 type: OS::Neutron::Port
591 network: { get_resource: oam_ecomp }
592 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mr_ip_addr }}]
595 type: OS::Neutron::FloatingIP
597 floating_network_id: { get_param: public_net_id }
598 port_id: { get_resource: mrouter_private_port }
599 floating_ip_address: { get_param: mr_float_ip }
602 type: OS::Nova::Server
604 image: { get_param: ubuntu_1404_image }
605 flavor: { get_param: flavor_large }
608 template: base-message-router
610 base: { get_param: vm_base_name }
611 key_name: { get_resource: vm_key }
613 - port: { get_resource: mrouter_private_port }
614 user_data_format: RAW
618 __nexus_repo__: { get_param: nexus_repo }
619 __nexus_docker_repo__: { get_param: nexus_docker_repo }
620 __nexus_username__: { get_param: nexus_username }
621 __nexus_password__: { get_param: nexus_password }
622 __artifacts_version__: { get_param: artifacts_version }
623 __dns_ip_addr__: { get_param: dns_ip_addr }
624 __gerrit_branch__: { get_param: gerrit_branch }
625 __cloud_env__: { get_param: cloud_env }
629 # Create configuration files
631 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
632 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
633 echo "__nexus_username__" > /opt/config/nexus_username.txt
634 echo "__nexus_password__" > /opt/config/nexus_password.txt
635 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
636 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
637 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
638 echo "__cloud_env__" > /opt/config/cloud_env.txt
640 # Download and run install script
641 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
643 chmod +x mr_install.sh
647 # Robot Framework instantiation
649 type: OS::Neutron::Port
651 network: { get_resource: oam_ecomp }
652 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: robot_ip_addr }}]
655 type: OS::Neutron::FloatingIP
657 floating_network_id: { get_param: public_net_id }
658 port_id: { get_resource: robot_private_port }
659 floating_ip_address: { get_param: robot_float_ip }
662 type: OS::Nova::Server
664 image: { get_param: ubuntu_1604_image }
665 flavor: { get_param: flavor_small }
670 base: { get_param: vm_base_name }
671 key_name: { get_resource: vm_key }
673 - port: { get_resource: robot_private_port }
674 user_data_format: RAW
678 __nexus_repo__: { get_param: nexus_repo }
679 __nexus_docker_repo__: { get_param: nexus_docker_repo }
680 __nexus_username__: { get_param: nexus_username }
681 __nexus_password__: { get_param: nexus_password }
682 __network_name__: { get_attr: [oam_ecomp, name] }
683 __openstack_username__: { get_param: openstack_username }
684 __openstack_api_key__: { get_param : openstack_api_key }
685 __artifacts_version__: { get_param: artifacts_version }
686 __openstack_region__: { get_param: openstack_region }
687 __dns_ip_addr__: { get_param: dns_ip_addr }
688 __docker_version__: { get_param: docker_version }
689 __gerrit_branch__: { get_param: gerrit_branch }
690 __cloud_env__: { get_param: cloud_env }
694 # Create configuration files
696 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
697 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
698 echo "__nexus_username__" > /opt/config/nexus_username.txt
699 echo "__nexus_password__" > /opt/config/nexus_password.txt
700 echo "__network_name__" > /opt/config/network.txt
701 echo "__openstack_username__" > /opt/config/openstack_username.txt
702 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
703 echo "__openstack_region__" > /opt/config/region.txt
704 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
705 echo "__docker_version__" > /opt/config/docker_version.txt
706 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
707 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
708 echo "__cloud_env__" > /opt/config/cloud_env.txt
710 # Download and run install script
711 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
713 chmod +x robot_install.sh
719 type: OS::Neutron::Port
721 network: { get_resource: oam_ecomp }
722 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: vid_ip_addr }}]
725 type: OS::Neutron::FloatingIP
727 floating_network_id: { get_param: public_net_id }
728 port_id: { get_resource: vid_private_port }
729 floating_ip_address: { get_param: vid_float_ip }
732 type: OS::Nova::Server
734 image: { get_param: ubuntu_1404_image }
735 flavor: { get_param: flavor_medium }
740 base: { get_param: vm_base_name }
741 key_name: { get_resource: vm_key }
743 - port: { get_resource: vid_private_port }
744 user_data_format: RAW
748 __nexus_repo__: { get_param: nexus_repo }
749 __nexus_docker_repo__: { get_param: nexus_docker_repo }
750 __nexus_username__: { get_param: nexus_username }
751 __nexus_password__: { get_param: nexus_password }
752 __artifacts_version__: { get_param: artifacts_version }
753 __dns_ip_addr__: { get_param: dns_ip_addr }
754 __docker_version__: { get_param: docker_version }
755 __gerrit_branch__: { get_param: gerrit_branch }
756 __cloud_env__: { get_param: cloud_env }
760 # Create configuration files
762 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
763 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
764 echo "__nexus_username__" > /opt/config/nexus_username.txt
765 echo "__nexus_password__" > /opt/config/nexus_password.txt
766 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
767 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
768 echo "__docker_version__" > /opt/config/docker_version.txt
769 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
770 echo "__cloud_env__" > /opt/config/cloud_env.txt
772 # Download and run install script
773 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
775 chmod +x vid_install.sh
779 # SDN-C instantiation
781 type: OS::Neutron::Port
783 network: { get_resource: oam_ecomp }
784 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
787 type: OS::Neutron::FloatingIP
789 floating_network_id: { get_param: public_net_id }
790 port_id: { get_resource: sdnc_private_port }
791 floating_ip_address: { get_param: sdnc_float_ip }
794 type: OS::Nova::Server
796 image: { get_param: ubuntu_1404_image }
797 flavor: { get_param: flavor_large }
802 base: { get_param: vm_base_name }
803 key_name: { get_resource: vm_key }
805 - port: { get_resource: sdnc_private_port }
806 user_data_format: RAW
810 __nexus_repo__: { get_param: nexus_repo }
811 __nexus_docker_repo__: { get_param: nexus_docker_repo }
812 __nexus_username__: { get_param: nexus_username }
813 __nexus_password__: { get_param: nexus_password }
814 __artifacts_version__: { get_param: artifacts_version }
815 __dns_ip_addr__: { get_param: dns_ip_addr }
816 __docker_version__: { get_param: docker_version }
817 __gerrit_branch__: { get_param: gerrit_branch }
818 __cloud_env__: { get_param: cloud_env }
822 # Create configuration files
824 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
825 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
826 echo "__nexus_username__" > /opt/config/nexus_username.txt
827 echo "__nexus_password__" > /opt/config/nexus_password.txt
828 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
829 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
830 echo "__docker_version__" > /opt/config/docker_version.txt
831 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
832 echo "__cloud_env__" > /opt/config/cloud_env.txt
834 # Download and run install script
835 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
837 chmod +x sdnc_install.sh
843 type: OS::Neutron::Port
845 network: { get_resource: oam_ecomp }
846 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
849 type: OS::Neutron::FloatingIP
851 floating_network_id: { get_param: public_net_id }
852 port_id: { get_resource: sdc_private_port }
853 floating_ip_address: { get_param: sdc_float_ip }
856 type: OS::Cinder::Volume
861 sdc_volume_attachment:
862 type: OS::Cinder::VolumeAttachment
864 volume_id: { get_resource: sdc_volume_data }
865 instance_uuid: { get_resource: sdc_vm }
869 type: OS::Nova::Server
871 image: { get_param: ubuntu_1604_image }
872 flavor: { get_param: flavor_xlarge }
877 base: { get_param: vm_base_name }
878 key_name: { get_resource: vm_key }
880 - port: { get_resource: sdc_private_port }
881 user_data_format: RAW
885 __nexus_repo__: { get_param: nexus_repo }
886 __nexus_docker_repo__: { get_param: nexus_docker_repo }
887 __nexus_username__: { get_param: nexus_username }
888 __nexus_password__: { get_param: nexus_password }
889 __env_name__: { get_param: dmaap_topic }
890 __artifacts_version__: { get_param: artifacts_version }
891 __dns_ip_addr__: { get_param: dns_ip_addr }
892 __mr_ip_addr__: { get_param: mr_ip_addr }
893 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
894 __docker_version__: { get_param: docker_version }
895 __gerrit_branch__: { get_param: gerrit_branch }
896 __cloud_env__: { get_param: cloud_env }
900 # Create configuration files
902 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
903 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
904 echo "__nexus_username__" > /opt/config/nexus_username.txt
905 echo "__nexus_password__" > /opt/config/nexus_password.txt
906 echo "__env_name__" > /opt/config/env_name.txt
907 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
908 echo "__public_ip__" > /opt/config/public_ip.txt
909 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
910 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
911 echo "__docker_version__" > /opt/config/docker_version.txt
912 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
913 echo "__cloud_env__" > /opt/config/cloud_env.txt
915 # Download and run install script
916 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
918 chmod +x asdc_install.sh
922 # PORTAL instantiation
924 type: OS::Neutron::Port
926 network: { get_resource: oam_ecomp }
927 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: portal_ip_addr }}]
930 type: OS::Neutron::FloatingIP
932 floating_network_id: { get_param: public_net_id }
933 port_id: { get_resource: portal_private_port }
934 floating_ip_address: { get_param: portal_float_ip }
937 type: OS::Nova::Server
939 image: { get_param: ubuntu_1404_image }
940 flavor: { get_param: flavor_large }
943 template: base-portal
945 base: { get_param: vm_base_name }
946 key_name: { get_resource: vm_key }
948 - port: { get_resource: portal_private_port }
949 user_data_format: RAW
953 __nexus_repo__: { get_param: nexus_repo }
954 __nexus_docker_repo__: { get_param: nexus_docker_repo }
955 __nexus_username__: { get_param: nexus_username }
956 __nexus_password__: { get_param: nexus_password }
957 __artifacts_version__: { get_param: artifacts_version }
958 __dns_ip_addr__: { get_param: dns_ip_addr }
959 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
960 __docker_version__: { get_param: docker_version }
961 __gerrit_branch__: { get_param: gerrit_branch }
962 __cloud_env__: { get_param: cloud_env }
966 # Create configuration files
968 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
969 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
970 echo "__nexus_username__" > /opt/config/nexus_username.txt
971 echo "__nexus_password__" > /opt/config/nexus_password.txt
972 echo "__public_ip__" > /opt/config/public_ip.txt
973 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
974 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
975 echo "__docker_version__" > /opt/config/docker_version.txt
976 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
977 echo "__cloud_env__" > /opt/config/cloud_env.txt
979 # Download and run install script
980 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
982 chmod +x portal_install.sh
986 # DCAE Controller instantiation
988 type: OS::Neutron::Port
990 network: { get_resource: oam_ecomp }
991 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
994 type: OS::Neutron::FloatingIP
996 floating_network_id: { get_param: public_net_id }
997 port_id: { get_resource: dcae_c_private_port }
998 floating_ip_address: { get_param: dcae_float_ip }
1001 type: OS::Nova::Server
1003 image: { get_param: ubuntu_1404_image }
1004 flavor: { get_param: flavor_medium }
1007 template: base-dcae-controller
1009 base: { get_param: vm_base_name }
1010 key_name: { get_resource: vm_key }
1012 - port: { get_resource: dcae_c_private_port }
1013 user_data_format: RAW
1017 __nexus_repo__: { get_param: nexus_repo }
1018 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1019 __nexus_username__: { get_param: nexus_username }
1020 __nexus_password__: { get_param: nexus_password }
1021 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1022 __gitlab_branch__: { get_param: gitlab_branch }
1023 __dns_ip_addr__: { get_param: dns_ip_addr }
1024 __dcae_zone__: { get_param: dcae_zone }
1025 __dcae_state__: { get_param: dcae_state }
1026 __artifacts_version__: { get_param: artifacts_version }
1027 __tenant_id__: { get_param: openstack_tenant_id }
1028 __openstack_private_network_name__: { get_attr: [oam_ecomp, name] }
1029 __openstack_user__: { get_param: openstack_username }
1030 __openstack_password__: { get_param: openstack_api_key }
1031 __openstack_auth_method__: { get_param: openstack_auth_method }
1032 __key_name__: { get_param: key_name }
1033 __rand_str__: { get_resource: random-str }
1034 __pub_key__: { get_param: pub_key }
1035 __nexus_repo_root__: { get_param: nexus_repo_root }
1036 __openstack_region__: { get_param: openstack_region }
1037 __horizon_url__: { get_param: horizon_url }
1038 __keystone_url__: { get_param: keystone_url }
1039 __docker_version__: { get_param: docker_version }
1040 __gerrit_branch__: { get_param: gerrit_branch }
1041 __dcae_code_version__: { get_param: dcae_code_version }
1042 __cloud_env__: { get_param: cloud_env }
1043 __public_net_id__: { get_param: public_net_id }
1044 __dcae_base_environment__: { get_param: dcae_base_environment }
1045 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1046 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1047 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1048 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1049 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1050 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1051 __dcae_float_ip__: { get_param: dcae_float_ip }
1052 __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1053 __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1054 __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1055 __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1056 __dcae_hdp3_float_ip__: { get_param: dcae_hdp2_float_ip }
1060 # Create configuration files
1061 mkdir -p /opt/config
1062 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1063 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1064 echo "__nexus_username__" > /opt/config/nexus_username.txt
1065 echo "__nexus_password__" > /opt/config/nexus_password.txt
1066 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1067 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1068 echo "__docker_version__" > /opt/config/docker_version.txt
1069 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1070 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1071 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1072 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1073 echo "__dcae_state__" > /opt/config/dcae_state.txt
1074 echo "__tenant_id__" > /opt/config/tenant_id.txt
1075 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1076 echo "__openstack_user__" > /opt/config/openstack_user.txt
1077 echo "__openstack_password__" > /opt/config/openstack_password.txt
1078 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1079 echo "__key_name__" > /opt/config/key_name.txt
1080 echo "__rand_str__" > /opt/config/rand_str.txt
1081 echo "__pub_key__" > /opt/config/pub_key.txt
1082 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1083 echo "__openstack_region__" > /opt/config/openstack_region.txt
1084 echo "__horizon_url__" > /opt/config/horizon_url.txt
1085 echo "__keystone_url__" > /opt/config/keystone_url.txt
1086 echo "__cloud_env__" > /opt/config/cloud_env.txt
1087 echo "__public_net_id__" > /opt/config/public_net_id.txt
1088 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1089 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1090 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1091 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1092 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1093 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1094 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1095 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1096 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1097 echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1098 echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1099 echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1100 echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1101 echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1103 # Download and run install script
1104 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1106 chmod +x dcae_install.sh
1110 # Policy Engine instantiation
1111 policy_private_port:
1112 type: OS::Neutron::Port
1114 network: { get_resource: oam_ecomp }
1115 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1118 type: OS::Neutron::FloatingIP
1120 floating_network_id: { get_param: public_net_id }
1121 port_id: { get_resource: policy_private_port }
1122 floating_ip_address: { get_param: policy_float_ip }
1125 type: OS::Nova::Server
1127 image: { get_param: ubuntu_1404_image }
1128 flavor: { get_param: flavor_xlarge }
1131 template: base-policy
1133 base: { get_param: vm_base_name }
1134 key_name: { get_resource: vm_key }
1136 - port: { get_resource: policy_private_port }
1137 user_data_format: RAW
1141 __nexus_repo__: { get_param: nexus_repo }
1142 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1143 __nexus_username__: { get_param: nexus_username }
1144 __nexus_password__: { get_param: nexus_password }
1145 __artifacts_version__: { get_param: artifacts_version }
1146 __dns_ip_addr__: { get_param: dns_ip_addr }
1147 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1148 __docker_version__: { get_param: docker_version }
1149 __gerrit_branch__: { get_param: gerrit_branch }
1150 __cloud_env__: { get_param: cloud_env }
1154 # Create configuration files
1155 mkdir -p /opt/config
1156 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1157 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1158 echo "__nexus_username__" > /opt/config/nexus_username.txt
1159 echo "__nexus_password__" > /opt/config/nexus_password.txt
1160 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1161 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1162 echo "__public_ip__" > /opt/config/public_ip.txt
1163 echo "__docker_version__" > /opt/config/docker_version.txt
1164 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1165 echo "__cloud_env__" > /opt/config/cloud_env.txt
1167 # Download and run install script
1168 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1170 chmod +x policy_install.sh
1174 # APP-C instantiation
1176 type: OS::Neutron::Port
1178 network: { get_resource: oam_ecomp }
1179 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1182 type: OS::Neutron::FloatingIP
1184 floating_network_id: { get_param: public_net_id }
1185 port_id: { get_resource: appc_private_port }
1186 floating_ip_address: { get_param: appc_float_ip }
1189 type: OS::Nova::Server
1191 image: { get_param: ubuntu_1404_image }
1192 flavor: { get_param: flavor_large }
1197 base: { get_param: vm_base_name }
1198 key_name: { get_resource: vm_key }
1200 - port: { get_resource: appc_private_port }
1201 user_data_format: RAW
1205 __nexus_repo__: { get_param: nexus_repo }
1206 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1207 __nexus_username__: { get_param: nexus_username }
1208 __nexus_password__: { get_param: nexus_password }
1209 __dmaap_topic__: { get_param: dmaap_topic }
1210 __artifacts_version__: { get_param: artifacts_version }
1211 __dns_ip_addr__: { get_param: dns_ip_addr }
1212 __docker_version__: { get_param: docker_version }
1213 __gerrit_branch__: { get_param: gerrit_branch }
1214 __cloud_env__: { get_param: cloud_env }
1218 # Create configuration files
1219 mkdir -p /opt/config
1220 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1221 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1222 echo "__nexus_username__" > /opt/config/nexus_username.txt
1223 echo "__nexus_password__" > /opt/config/nexus_password.txt
1224 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1225 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1226 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1227 echo "__docker_version__" > /opt/config/docker_version.txt
1228 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1229 echo "__cloud_env__" > /opt/config/cloud_env.txt
1231 # Download and run install script
1232 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1234 chmod +x appc_install.sh