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_ip_addr__: { get_param: dcae_coll_ip_addr }
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_ip_addr__" > /opt/config/dcae_coll_ip_addr.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 __sdc_ip_addr__: { get_param: sdc_ip_addr }
492 __docker_version__: { get_param: docker_version }
493 __cloud_env__: { get_param: cloud_env }
497 # Create configuration files
499 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
500 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
501 echo "__nexus_username__" > /opt/config/nexus_username.txt
502 echo "__nexus_password__" > /opt/config/nexus_password.txt
503 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
504 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
505 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
506 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
507 echo "__docker_version__" > /opt/config/docker_version.txt
508 echo "__cloud_env__" > /opt/config/cloud_env.txt
510 # Download and run install script
511 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
513 chmod +x aai_install.sh
519 type: OS::Neutron::Port
521 network: { get_resource: oam_ecomp }
522 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mso_ip_addr }}]
525 type: OS::Neutron::FloatingIP
527 floating_network_id: { get_param: public_net_id }
528 port_id: { get_resource: mso_private_port }
529 floating_ip_address: { get_param: mso_float_ip }
532 type: OS::Nova::Server
534 image: { get_param: ubuntu_1604_image }
535 flavor: { get_param: flavor_large }
540 base: { get_param: vm_base_name }
541 key_name: { get_resource: vm_key }
543 - port: { get_resource: mso_private_port }
544 user_data_format: RAW
548 __nexus_repo__: { get_param: nexus_repo }
549 __nexus_docker_repo__: { get_param: nexus_docker_repo }
550 __nexus_username__: { get_param: nexus_username }
551 __nexus_password__: { get_param: nexus_password }
552 __openstack_username__: { get_param: openstack_username }
553 __openstack_tenant_id__: { get_param: openstack_tenant_id }
554 __openstack_api_key__: { get_param: openstack_api_key }
555 __keystone_url__: { get_param: keystone_url }
556 __dmaap_topic__: { get_param: dmaap_topic }
557 __artifacts_version__: { get_param: artifacts_version }
558 __dns_ip_addr__: { get_param: dns_ip_addr }
559 __docker_version__: { get_param: docker_version }
560 __gerrit_branch__: { get_param: gerrit_branch }
561 __cloud_env__: { get_param: cloud_env }
565 # Create configuration files
567 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
568 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
569 echo "__nexus_username__" > /opt/config/nexus_username.txt
570 echo "__nexus_password__" > /opt/config/nexus_password.txt
571 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
572 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
573 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
574 echo "__openstack_username__" > /opt/config/openstack_username.txt
575 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
576 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
577 echo "__keystone_url__" > /opt/config/keystone.txt
578 echo "__docker_version__" > /opt/config/docker_version.txt
579 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
580 echo "__cloud_env__" > /opt/config/cloud_env.txt
582 # Download and run install script
583 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
585 chmod +x mso_install.sh
589 # Message Router instantiation
590 mrouter_private_port:
591 type: OS::Neutron::Port
593 network: { get_resource: oam_ecomp }
594 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mr_ip_addr }}]
597 type: OS::Neutron::FloatingIP
599 floating_network_id: { get_param: public_net_id }
600 port_id: { get_resource: mrouter_private_port }
601 floating_ip_address: { get_param: mr_float_ip }
604 type: OS::Nova::Server
606 image: { get_param: ubuntu_1404_image }
607 flavor: { get_param: flavor_large }
610 template: base-message-router
612 base: { get_param: vm_base_name }
613 key_name: { get_resource: vm_key }
615 - port: { get_resource: mrouter_private_port }
616 user_data_format: RAW
620 __nexus_repo__: { get_param: nexus_repo }
621 __nexus_docker_repo__: { get_param: nexus_docker_repo }
622 __nexus_username__: { get_param: nexus_username }
623 __nexus_password__: { get_param: nexus_password }
624 __artifacts_version__: { get_param: artifacts_version }
625 __dns_ip_addr__: { get_param: dns_ip_addr }
626 __gerrit_branch__: { get_param: gerrit_branch }
627 __cloud_env__: { get_param: cloud_env }
631 # Create configuration files
633 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
634 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
635 echo "__nexus_username__" > /opt/config/nexus_username.txt
636 echo "__nexus_password__" > /opt/config/nexus_password.txt
637 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
638 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
639 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
640 echo "__cloud_env__" > /opt/config/cloud_env.txt
642 # Download and run install script
643 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
645 chmod +x mr_install.sh
649 # Robot Framework instantiation
651 type: OS::Neutron::Port
653 network: { get_resource: oam_ecomp }
654 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: robot_ip_addr }}]
657 type: OS::Neutron::FloatingIP
659 floating_network_id: { get_param: public_net_id }
660 port_id: { get_resource: robot_private_port }
661 floating_ip_address: { get_param: robot_float_ip }
664 type: OS::Nova::Server
666 image: { get_param: ubuntu_1604_image }
667 flavor: { get_param: flavor_small }
672 base: { get_param: vm_base_name }
673 key_name: { get_resource: vm_key }
675 - port: { get_resource: robot_private_port }
676 user_data_format: RAW
680 __nexus_repo__: { get_param: nexus_repo }
681 __nexus_docker_repo__: { get_param: nexus_docker_repo }
682 __nexus_username__: { get_param: nexus_username }
683 __nexus_password__: { get_param: nexus_password }
684 __network_name__: { get_attr: [oam_ecomp, name] }
685 __openstack_username__: { get_param: openstack_username }
686 __openstack_api_key__: { get_param : openstack_api_key }
687 __artifacts_version__: { get_param: artifacts_version }
688 __openstack_region__: { get_param: openstack_region }
689 __dns_ip_addr__: { get_param: dns_ip_addr }
690 __docker_version__: { get_param: docker_version }
691 __gerrit_branch__: { get_param: gerrit_branch }
692 __cloud_env__: { get_param: cloud_env }
696 # Create configuration files
698 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
699 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
700 echo "__nexus_username__" > /opt/config/nexus_username.txt
701 echo "__nexus_password__" > /opt/config/nexus_password.txt
702 echo "__network_name__" > /opt/config/network.txt
703 echo "__openstack_username__" > /opt/config/openstack_username.txt
704 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
705 echo "__openstack_region__" > /opt/config/region.txt
706 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
707 echo "__docker_version__" > /opt/config/docker_version.txt
708 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
709 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
710 echo "__cloud_env__" > /opt/config/cloud_env.txt
712 # Download and run install script
713 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
715 chmod +x robot_install.sh
721 type: OS::Neutron::Port
723 network: { get_resource: oam_ecomp }
724 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: vid_ip_addr }}]
727 type: OS::Neutron::FloatingIP
729 floating_network_id: { get_param: public_net_id }
730 port_id: { get_resource: vid_private_port }
731 floating_ip_address: { get_param: vid_float_ip }
734 type: OS::Nova::Server
736 image: { get_param: ubuntu_1404_image }
737 flavor: { get_param: flavor_medium }
742 base: { get_param: vm_base_name }
743 key_name: { get_resource: vm_key }
745 - port: { get_resource: vid_private_port }
746 user_data_format: RAW
750 __nexus_repo__: { get_param: nexus_repo }
751 __nexus_docker_repo__: { get_param: nexus_docker_repo }
752 __nexus_username__: { get_param: nexus_username }
753 __nexus_password__: { get_param: nexus_password }
754 __artifacts_version__: { get_param: artifacts_version }
755 __dns_ip_addr__: { get_param: dns_ip_addr }
756 __docker_version__: { get_param: docker_version }
757 __gerrit_branch__: { get_param: gerrit_branch }
758 __cloud_env__: { get_param: cloud_env }
762 # Create configuration files
764 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
765 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
766 echo "__nexus_username__" > /opt/config/nexus_username.txt
767 echo "__nexus_password__" > /opt/config/nexus_password.txt
768 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
769 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
770 echo "__docker_version__" > /opt/config/docker_version.txt
771 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
772 echo "__cloud_env__" > /opt/config/cloud_env.txt
774 # Download and run install script
775 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
777 chmod +x vid_install.sh
781 # SDN-C instantiation
783 type: OS::Neutron::Port
785 network: { get_resource: oam_ecomp }
786 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
789 type: OS::Neutron::FloatingIP
791 floating_network_id: { get_param: public_net_id }
792 port_id: { get_resource: sdnc_private_port }
793 floating_ip_address: { get_param: sdnc_float_ip }
796 type: OS::Nova::Server
798 image: { get_param: ubuntu_1404_image }
799 flavor: { get_param: flavor_large }
804 base: { get_param: vm_base_name }
805 key_name: { get_resource: vm_key }
807 - port: { get_resource: sdnc_private_port }
808 user_data_format: RAW
812 __nexus_repo__: { get_param: nexus_repo }
813 __nexus_docker_repo__: { get_param: nexus_docker_repo }
814 __nexus_username__: { get_param: nexus_username }
815 __nexus_password__: { get_param: nexus_password }
816 __artifacts_version__: { get_param: artifacts_version }
817 __dns_ip_addr__: { get_param: dns_ip_addr }
818 __docker_version__: { get_param: docker_version }
819 __gerrit_branch__: { get_param: gerrit_branch }
820 __cloud_env__: { get_param: cloud_env }
824 # Create configuration files
826 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
827 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
828 echo "__nexus_username__" > /opt/config/nexus_username.txt
829 echo "__nexus_password__" > /opt/config/nexus_password.txt
830 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
831 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
832 echo "__docker_version__" > /opt/config/docker_version.txt
833 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
834 echo "__cloud_env__" > /opt/config/cloud_env.txt
836 # Download and run install script
837 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
839 chmod +x sdnc_install.sh
845 type: OS::Neutron::Port
847 network: { get_resource: oam_ecomp }
848 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
851 type: OS::Neutron::FloatingIP
853 floating_network_id: { get_param: public_net_id }
854 port_id: { get_resource: sdc_private_port }
855 floating_ip_address: { get_param: sdc_float_ip }
858 type: OS::Cinder::Volume
864 type: OS::Nova::Server
866 image: { get_param: ubuntu_1604_image }
867 flavor: { get_param: flavor_xlarge }
872 base: { get_param: vm_base_name }
873 key_name: { get_resource: vm_key }
875 - port: { get_resource: sdc_private_port }
876 block_device_mapping:
877 - device_name: /dev/vdb
878 volume_id: {get_resource: sdc_volume_data}
879 user_data_format: RAW
883 __nexus_repo__: { get_param: nexus_repo }
884 __nexus_docker_repo__: { get_param: nexus_docker_repo }
885 __nexus_username__: { get_param: nexus_username }
886 __nexus_password__: { get_param: nexus_password }
887 __env_name__: { get_param: dmaap_topic }
888 __artifacts_version__: { get_param: artifacts_version }
889 __dns_ip_addr__: { get_param: dns_ip_addr }
890 __mr_ip_addr__: { get_param: mr_ip_addr }
891 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
892 __docker_version__: { get_param: docker_version }
893 __gerrit_branch__: { get_param: gerrit_branch }
894 __cloud_env__: { get_param: cloud_env }
898 # Create configuration files
900 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
901 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
902 echo "__nexus_username__" > /opt/config/nexus_username.txt
903 echo "__nexus_password__" > /opt/config/nexus_password.txt
904 echo "__env_name__" > /opt/config/env_name.txt
905 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
906 echo "__public_ip__" > /opt/config/public_ip.txt
907 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
908 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
909 echo "__docker_version__" > /opt/config/docker_version.txt
910 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
911 echo "__cloud_env__" > /opt/config/cloud_env.txt
913 # Download and run install script
914 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
916 chmod +x asdc_install.sh
920 # PORTAL instantiation
922 type: OS::Neutron::Port
924 network: { get_resource: oam_ecomp }
925 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: portal_ip_addr }}]
928 type: OS::Neutron::FloatingIP
930 floating_network_id: { get_param: public_net_id }
931 port_id: { get_resource: portal_private_port }
932 floating_ip_address: { get_param: portal_float_ip }
935 type: OS::Nova::Server
937 image: { get_param: ubuntu_1404_image }
938 flavor: { get_param: flavor_large }
941 template: base-portal
943 base: { get_param: vm_base_name }
944 key_name: { get_resource: vm_key }
946 - port: { get_resource: portal_private_port }
947 user_data_format: RAW
951 __nexus_repo__: { get_param: nexus_repo }
952 __nexus_docker_repo__: { get_param: nexus_docker_repo }
953 __nexus_username__: { get_param: nexus_username }
954 __nexus_password__: { get_param: nexus_password }
955 __artifacts_version__: { get_param: artifacts_version }
956 __dns_ip_addr__: { get_param: dns_ip_addr }
957 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
958 __docker_version__: { get_param: docker_version }
959 __gerrit_branch__: { get_param: gerrit_branch }
960 __cloud_env__: { get_param: cloud_env }
964 # Create configuration files
966 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
967 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
968 echo "__nexus_username__" > /opt/config/nexus_username.txt
969 echo "__nexus_password__" > /opt/config/nexus_password.txt
970 echo "__public_ip__" > /opt/config/public_ip.txt
971 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
972 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
973 echo "__docker_version__" > /opt/config/docker_version.txt
974 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
975 echo "__cloud_env__" > /opt/config/cloud_env.txt
977 # Download and run install script
978 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
980 chmod +x portal_install.sh
984 # DCAE Controller instantiation
986 type: OS::Neutron::Port
988 network: { get_resource: oam_ecomp }
989 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
992 type: OS::Neutron::FloatingIP
994 floating_network_id: { get_param: public_net_id }
995 port_id: { get_resource: dcae_c_private_port }
996 floating_ip_address: { get_param: dcae_float_ip }
999 type: OS::Nova::Server
1001 image: { get_param: ubuntu_1404_image }
1002 flavor: { get_param: flavor_medium }
1005 template: base-dcae-controller
1007 base: { get_param: vm_base_name }
1008 key_name: { get_resource: vm_key }
1010 - port: { get_resource: dcae_c_private_port }
1011 user_data_format: RAW
1015 __nexus_repo__: { get_param: nexus_repo }
1016 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1017 __nexus_username__: { get_param: nexus_username }
1018 __nexus_password__: { get_param: nexus_password }
1019 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1020 __gitlab_branch__: { get_param: gitlab_branch }
1021 __dns_ip_addr__: { get_param: dns_ip_addr }
1022 __dcae_zone__: { get_param: dcae_zone }
1023 __dcae_state__: { get_param: dcae_state }
1024 __artifacts_version__: { get_param: artifacts_version }
1025 __tenant_id__: { get_param: openstack_tenant_id }
1026 __openstack_private_network_name__: { get_attr: [oam_ecomp, name] }
1027 __openstack_user__: { get_param: openstack_username }
1028 __openstack_password__: { get_param: openstack_api_key }
1029 __openstack_auth_method__: { get_param: openstack_auth_method }
1030 __key_name__: { get_param: key_name }
1031 __rand_str__: { get_resource: random-str }
1032 __pub_key__: { get_param: pub_key }
1033 __nexus_repo_root__: { get_param: nexus_repo_root }
1034 __openstack_region__: { get_param: openstack_region }
1035 __horizon_url__: { get_param: horizon_url }
1036 __keystone_url__: { get_param: keystone_url }
1037 __docker_version__: { get_param: docker_version }
1038 __gerrit_branch__: { get_param: gerrit_branch }
1039 __dcae_code_version__: { get_param: dcae_code_version }
1040 __cloud_env__: { get_param: cloud_env }
1041 __public_net_id__: { get_param: public_net_id }
1042 __dcae_base_environment__: { get_param: dcae_base_environment }
1043 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1044 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1045 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1046 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1047 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1048 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1049 __dcae_float_ip__: { get_param: dcae_float_ip }
1050 __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1051 __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1052 __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1053 __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1054 __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1058 # Create configuration files
1059 mkdir -p /opt/config
1060 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1061 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1062 echo "__nexus_username__" > /opt/config/nexus_username.txt
1063 echo "__nexus_password__" > /opt/config/nexus_password.txt
1064 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1065 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1066 echo "__docker_version__" > /opt/config/docker_version.txt
1067 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1068 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1069 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1070 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1071 echo "__dcae_state__" > /opt/config/dcae_state.txt
1072 echo "__tenant_id__" > /opt/config/tenant_id.txt
1073 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1074 echo "__openstack_user__" > /opt/config/openstack_user.txt
1075 echo "__openstack_password__" > /opt/config/openstack_password.txt
1076 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1077 echo "__key_name__" > /opt/config/key_name.txt
1078 echo "__rand_str__" > /opt/config/rand_str.txt
1079 echo "__pub_key__" > /opt/config/pub_key.txt
1080 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1081 echo "__openstack_region__" > /opt/config/openstack_region.txt
1082 echo "__horizon_url__" > /opt/config/horizon_url.txt
1083 echo "__keystone_url__" > /opt/config/keystone_url.txt
1084 echo "__cloud_env__" > /opt/config/cloud_env.txt
1085 echo "__public_net_id__" > /opt/config/public_net_id.txt
1086 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1087 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1088 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1089 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1090 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1091 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1092 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1093 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1094 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1095 echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1096 echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1097 echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1098 echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1099 echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1101 # Download and run install script
1102 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1104 chmod +x dcae_install.sh
1108 # Policy Engine instantiation
1109 policy_private_port:
1110 type: OS::Neutron::Port
1112 network: { get_resource: oam_ecomp }
1113 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1116 type: OS::Neutron::FloatingIP
1118 floating_network_id: { get_param: public_net_id }
1119 port_id: { get_resource: policy_private_port }
1120 floating_ip_address: { get_param: policy_float_ip }
1123 type: OS::Nova::Server
1125 image: { get_param: ubuntu_1404_image }
1126 flavor: { get_param: flavor_xlarge }
1129 template: base-policy
1131 base: { get_param: vm_base_name }
1132 key_name: { get_resource: vm_key }
1134 - port: { get_resource: policy_private_port }
1135 user_data_format: RAW
1139 __nexus_repo__: { get_param: nexus_repo }
1140 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1141 __nexus_username__: { get_param: nexus_username }
1142 __nexus_password__: { get_param: nexus_password }
1143 __artifacts_version__: { get_param: artifacts_version }
1144 __dns_ip_addr__: { get_param: dns_ip_addr }
1145 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1146 __docker_version__: { get_param: docker_version }
1147 __gerrit_branch__: { get_param: gerrit_branch }
1148 __cloud_env__: { get_param: cloud_env }
1152 # Create configuration files
1153 mkdir -p /opt/config
1154 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1155 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1156 echo "__nexus_username__" > /opt/config/nexus_username.txt
1157 echo "__nexus_password__" > /opt/config/nexus_password.txt
1158 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1159 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1160 echo "__public_ip__" > /opt/config/public_ip.txt
1161 echo "__docker_version__" > /opt/config/docker_version.txt
1162 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1163 echo "__cloud_env__" > /opt/config/cloud_env.txt
1165 # Download and run install script
1166 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1168 chmod +x policy_install.sh
1172 # APP-C instantiation
1174 type: OS::Neutron::Port
1176 network: { get_resource: oam_ecomp }
1177 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1180 type: OS::Neutron::FloatingIP
1182 floating_network_id: { get_param: public_net_id }
1183 port_id: { get_resource: appc_private_port }
1184 floating_ip_address: { get_param: appc_float_ip }
1187 type: OS::Nova::Server
1189 image: { get_param: ubuntu_1404_image }
1190 flavor: { get_param: flavor_large }
1195 base: { get_param: vm_base_name }
1196 key_name: { get_resource: vm_key }
1198 - port: { get_resource: appc_private_port }
1199 user_data_format: RAW
1203 __nexus_repo__: { get_param: nexus_repo }
1204 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1205 __nexus_username__: { get_param: nexus_username }
1206 __nexus_password__: { get_param: nexus_password }
1207 __dmaap_topic__: { get_param: dmaap_topic }
1208 __artifacts_version__: { get_param: artifacts_version }
1209 __dns_ip_addr__: { get_param: dns_ip_addr }
1210 __docker_version__: { get_param: docker_version }
1211 __gerrit_branch__: { get_param: gerrit_branch }
1212 __cloud_env__: { get_param: cloud_env }
1216 # Create configuration files
1217 mkdir -p /opt/config
1218 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1219 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1220 echo "__nexus_username__" > /opt/config/nexus_username.txt
1221 echo "__nexus_password__" > /opt/config/nexus_password.txt
1222 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1223 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1224 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1225 echo "__docker_version__" > /opt/config/docker_version.txt
1226 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1227 echo "__cloud_env__" > /opt/config/cloud_env.txt
1229 # Download and run install script
1230 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1232 chmod +x appc_install.sh