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 }
494 __external_dns__: { get_param: external_dns }
498 # Create configuration files
500 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
501 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
502 echo "__nexus_username__" > /opt/config/nexus_username.txt
503 echo "__nexus_password__" > /opt/config/nexus_password.txt
504 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
505 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
506 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
507 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
508 echo "__docker_version__" > /opt/config/docker_version.txt
509 echo "__cloud_env__" > /opt/config/cloud_env.txt
510 echo "__external_dns__" > /opt/config/external_dns.txt
512 # Download and run install script
513 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
515 chmod +x aai_install.sh
521 type: OS::Neutron::Port
523 network: { get_resource: oam_ecomp }
524 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mso_ip_addr }}]
527 type: OS::Neutron::FloatingIP
529 floating_network_id: { get_param: public_net_id }
530 port_id: { get_resource: mso_private_port }
531 floating_ip_address: { get_param: mso_float_ip }
534 type: OS::Nova::Server
536 image: { get_param: ubuntu_1604_image }
537 flavor: { get_param: flavor_large }
542 base: { get_param: vm_base_name }
543 key_name: { get_resource: vm_key }
545 - port: { get_resource: mso_private_port }
546 user_data_format: RAW
550 __nexus_repo__: { get_param: nexus_repo }
551 __nexus_docker_repo__: { get_param: nexus_docker_repo }
552 __nexus_username__: { get_param: nexus_username }
553 __nexus_password__: { get_param: nexus_password }
554 __openstack_username__: { get_param: openstack_username }
555 __openstack_tenant_id__: { get_param: openstack_tenant_id }
556 __openstack_api_key__: { get_param: openstack_api_key }
557 __keystone_url__: { get_param: keystone_url }
558 __dmaap_topic__: { get_param: dmaap_topic }
559 __artifacts_version__: { get_param: artifacts_version }
560 __dns_ip_addr__: { get_param: dns_ip_addr }
561 __docker_version__: { get_param: docker_version }
562 __gerrit_branch__: { get_param: gerrit_branch }
563 __cloud_env__: { get_param: cloud_env }
564 __external_dns__: { get_param: external_dns }
568 # Create configuration files
570 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
571 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
572 echo "__nexus_username__" > /opt/config/nexus_username.txt
573 echo "__nexus_password__" > /opt/config/nexus_password.txt
574 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
575 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
576 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
577 echo "__openstack_username__" > /opt/config/openstack_username.txt
578 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
579 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
580 echo "__keystone_url__" > /opt/config/keystone.txt
581 echo "__docker_version__" > /opt/config/docker_version.txt
582 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
583 echo "__cloud_env__" > /opt/config/cloud_env.txt
584 echo "__external_dns__" > /opt/config/external_dns.txt
586 # Download and run install script
587 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
589 chmod +x mso_install.sh
593 # Message Router instantiation
594 mrouter_private_port:
595 type: OS::Neutron::Port
597 network: { get_resource: oam_ecomp }
598 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mr_ip_addr }}]
601 type: OS::Neutron::FloatingIP
603 floating_network_id: { get_param: public_net_id }
604 port_id: { get_resource: mrouter_private_port }
605 floating_ip_address: { get_param: mr_float_ip }
608 type: OS::Nova::Server
610 image: { get_param: ubuntu_1404_image }
611 flavor: { get_param: flavor_large }
614 template: base-message-router
616 base: { get_param: vm_base_name }
617 key_name: { get_resource: vm_key }
619 - port: { get_resource: mrouter_private_port }
620 user_data_format: RAW
624 __nexus_repo__: { get_param: nexus_repo }
625 __nexus_docker_repo__: { get_param: nexus_docker_repo }
626 __nexus_username__: { get_param: nexus_username }
627 __nexus_password__: { get_param: nexus_password }
628 __artifacts_version__: { get_param: artifacts_version }
629 __dns_ip_addr__: { get_param: dns_ip_addr }
630 __gerrit_branch__: { get_param: gerrit_branch }
631 __cloud_env__: { get_param: cloud_env }
632 __external_dns__: { get_param: external_dns }
636 # Create configuration files
638 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
639 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
640 echo "__nexus_username__" > /opt/config/nexus_username.txt
641 echo "__nexus_password__" > /opt/config/nexus_password.txt
642 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
643 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
644 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
645 echo "__cloud_env__" > /opt/config/cloud_env.txt
646 echo "__external_dns__" > /opt/config/external_dns.txt
648 # Download and run install script
649 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
651 chmod +x mr_install.sh
655 # Robot Framework instantiation
657 type: OS::Neutron::Port
659 network: { get_resource: oam_ecomp }
660 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: robot_ip_addr }}]
663 type: OS::Neutron::FloatingIP
665 floating_network_id: { get_param: public_net_id }
666 port_id: { get_resource: robot_private_port }
667 floating_ip_address: { get_param: robot_float_ip }
670 type: OS::Nova::Server
672 image: { get_param: ubuntu_1604_image }
673 flavor: { get_param: flavor_small }
678 base: { get_param: vm_base_name }
679 key_name: { get_resource: vm_key }
681 - port: { get_resource: robot_private_port }
682 user_data_format: RAW
686 __nexus_repo__: { get_param: nexus_repo }
687 __nexus_docker_repo__: { get_param: nexus_docker_repo }
688 __nexus_username__: { get_param: nexus_username }
689 __nexus_password__: { get_param: nexus_password }
690 __network_name__: { get_attr: [oam_ecomp, name] }
691 __openstack_username__: { get_param: openstack_username }
692 __openstack_api_key__: { get_param : openstack_api_key }
693 __artifacts_version__: { get_param: artifacts_version }
694 __openstack_region__: { get_param: openstack_region }
695 __dns_ip_addr__: { get_param: dns_ip_addr }
696 __docker_version__: { get_param: docker_version }
697 __gerrit_branch__: { get_param: gerrit_branch }
698 __cloud_env__: { get_param: cloud_env }
699 __external_dns__: { get_param: external_dns }
703 # Create configuration files
705 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
706 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
707 echo "__nexus_username__" > /opt/config/nexus_username.txt
708 echo "__nexus_password__" > /opt/config/nexus_password.txt
709 echo "__network_name__" > /opt/config/network.txt
710 echo "__openstack_username__" > /opt/config/openstack_username.txt
711 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
712 echo "__openstack_region__" > /opt/config/region.txt
713 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
714 echo "__docker_version__" > /opt/config/docker_version.txt
715 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
716 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
717 echo "__cloud_env__" > /opt/config/cloud_env.txt
718 echo "__external_dns__" > /opt/config/external_dns.txt
720 # Download and run install script
721 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
723 chmod +x robot_install.sh
729 type: OS::Neutron::Port
731 network: { get_resource: oam_ecomp }
732 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: vid_ip_addr }}]
735 type: OS::Neutron::FloatingIP
737 floating_network_id: { get_param: public_net_id }
738 port_id: { get_resource: vid_private_port }
739 floating_ip_address: { get_param: vid_float_ip }
742 type: OS::Nova::Server
744 image: { get_param: ubuntu_1404_image }
745 flavor: { get_param: flavor_medium }
750 base: { get_param: vm_base_name }
751 key_name: { get_resource: vm_key }
753 - port: { get_resource: vid_private_port }
754 user_data_format: RAW
758 __nexus_repo__: { get_param: nexus_repo }
759 __nexus_docker_repo__: { get_param: nexus_docker_repo }
760 __nexus_username__: { get_param: nexus_username }
761 __nexus_password__: { get_param: nexus_password }
762 __artifacts_version__: { get_param: artifacts_version }
763 __dns_ip_addr__: { get_param: dns_ip_addr }
764 __docker_version__: { get_param: docker_version }
765 __gerrit_branch__: { get_param: gerrit_branch }
766 __cloud_env__: { get_param: cloud_env }
767 __external_dns__: { get_param: external_dns }
771 # Create configuration files
773 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
774 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
775 echo "__nexus_username__" > /opt/config/nexus_username.txt
776 echo "__nexus_password__" > /opt/config/nexus_password.txt
777 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
778 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
779 echo "__docker_version__" > /opt/config/docker_version.txt
780 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
781 echo "__cloud_env__" > /opt/config/cloud_env.txt
782 echo "__external_dns__" > /opt/config/external_dns.txt
784 # Download and run install script
785 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
787 chmod +x vid_install.sh
791 # SDN-C instantiation
793 type: OS::Neutron::Port
795 network: { get_resource: oam_ecomp }
796 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
799 type: OS::Neutron::FloatingIP
801 floating_network_id: { get_param: public_net_id }
802 port_id: { get_resource: sdnc_private_port }
803 floating_ip_address: { get_param: sdnc_float_ip }
806 type: OS::Nova::Server
808 image: { get_param: ubuntu_1404_image }
809 flavor: { get_param: flavor_large }
814 base: { get_param: vm_base_name }
815 key_name: { get_resource: vm_key }
817 - port: { get_resource: sdnc_private_port }
818 user_data_format: RAW
822 __nexus_repo__: { get_param: nexus_repo }
823 __nexus_docker_repo__: { get_param: nexus_docker_repo }
824 __nexus_username__: { get_param: nexus_username }
825 __nexus_password__: { get_param: nexus_password }
826 __artifacts_version__: { get_param: artifacts_version }
827 __dns_ip_addr__: { get_param: dns_ip_addr }
828 __docker_version__: { get_param: docker_version }
829 __gerrit_branch__: { get_param: gerrit_branch }
830 __cloud_env__: { get_param: cloud_env }
831 __external_dns__: { get_param: external_dns }
835 # Create configuration files
837 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
838 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
839 echo "__nexus_username__" > /opt/config/nexus_username.txt
840 echo "__nexus_password__" > /opt/config/nexus_password.txt
841 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
842 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
843 echo "__docker_version__" > /opt/config/docker_version.txt
844 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
845 echo "__cloud_env__" > /opt/config/cloud_env.txt
846 echo "__external_dns__" > /opt/config/external_dns.txt
848 # Download and run install script
849 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
851 chmod +x sdnc_install.sh
857 type: OS::Neutron::Port
859 network: { get_resource: oam_ecomp }
860 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
863 type: OS::Neutron::FloatingIP
865 floating_network_id: { get_param: public_net_id }
866 port_id: { get_resource: sdc_private_port }
867 floating_ip_address: { get_param: sdc_float_ip }
870 type: OS::Cinder::Volume
876 type: OS::Nova::Server
878 image: { get_param: ubuntu_1604_image }
879 flavor: { get_param: flavor_xlarge }
884 base: { get_param: vm_base_name }
885 key_name: { get_resource: vm_key }
887 - port: { get_resource: sdc_private_port }
888 block_device_mapping:
889 - device_name: /dev/vdb
890 volume_id: {get_resource: sdc_volume_data}
891 user_data_format: RAW
895 __nexus_repo__: { get_param: nexus_repo }
896 __nexus_docker_repo__: { get_param: nexus_docker_repo }
897 __nexus_username__: { get_param: nexus_username }
898 __nexus_password__: { get_param: nexus_password }
899 __env_name__: { get_param: dmaap_topic }
900 __artifacts_version__: { get_param: artifacts_version }
901 __dns_ip_addr__: { get_param: dns_ip_addr }
902 __mr_ip_addr__: { get_param: mr_ip_addr }
903 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
904 __docker_version__: { get_param: docker_version }
905 __gerrit_branch__: { get_param: gerrit_branch }
906 __cloud_env__: { get_param: cloud_env }
907 __external_dns__: { get_param: external_dns }
911 # Create configuration files
913 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
914 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
915 echo "__nexus_username__" > /opt/config/nexus_username.txt
916 echo "__nexus_password__" > /opt/config/nexus_password.txt
917 echo "__env_name__" > /opt/config/env_name.txt
918 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
919 echo "__public_ip__" > /opt/config/public_ip.txt
920 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
921 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
922 echo "__docker_version__" > /opt/config/docker_version.txt
923 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
924 echo "__cloud_env__" > /opt/config/cloud_env.txt
925 echo "__external_dns__" > /opt/config/external_dns.txt
927 # Download and run install script
928 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
930 chmod +x asdc_install.sh
934 # PORTAL instantiation
936 type: OS::Neutron::Port
938 network: { get_resource: oam_ecomp }
939 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: portal_ip_addr }}]
942 type: OS::Neutron::FloatingIP
944 floating_network_id: { get_param: public_net_id }
945 port_id: { get_resource: portal_private_port }
946 floating_ip_address: { get_param: portal_float_ip }
949 type: OS::Nova::Server
951 image: { get_param: ubuntu_1404_image }
952 flavor: { get_param: flavor_large }
955 template: base-portal
957 base: { get_param: vm_base_name }
958 key_name: { get_resource: vm_key }
960 - port: { get_resource: portal_private_port }
961 user_data_format: RAW
965 __nexus_repo__: { get_param: nexus_repo }
966 __nexus_docker_repo__: { get_param: nexus_docker_repo }
967 __nexus_username__: { get_param: nexus_username }
968 __nexus_password__: { get_param: nexus_password }
969 __artifacts_version__: { get_param: artifacts_version }
970 __dns_ip_addr__: { get_param: dns_ip_addr }
971 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
972 __docker_version__: { get_param: docker_version }
973 __gerrit_branch__: { get_param: gerrit_branch }
974 __cloud_env__: { get_param: cloud_env }
975 __external_dns__: { get_param: external_dns }
979 # Create configuration files
981 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
982 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
983 echo "__nexus_username__" > /opt/config/nexus_username.txt
984 echo "__nexus_password__" > /opt/config/nexus_password.txt
985 echo "__public_ip__" > /opt/config/public_ip.txt
986 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
987 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
988 echo "__docker_version__" > /opt/config/docker_version.txt
989 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
990 echo "__cloud_env__" > /opt/config/cloud_env.txt
991 echo "__external_dns__" > /opt/config/external_dns.txt
993 # Download and run install script
994 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
996 chmod +x portal_install.sh
1000 # DCAE Controller instantiation
1001 dcae_c_private_port:
1002 type: OS::Neutron::Port
1004 network: { get_resource: oam_ecomp }
1005 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1008 type: OS::Neutron::FloatingIP
1010 floating_network_id: { get_param: public_net_id }
1011 port_id: { get_resource: dcae_c_private_port }
1012 floating_ip_address: { get_param: dcae_float_ip }
1015 type: OS::Nova::Server
1017 image: { get_param: ubuntu_1404_image }
1018 flavor: { get_param: flavor_medium }
1021 template: base-dcae-controller
1023 base: { get_param: vm_base_name }
1024 key_name: { get_resource: vm_key }
1026 - port: { get_resource: dcae_c_private_port }
1027 user_data_format: RAW
1031 __nexus_repo__: { get_param: nexus_repo }
1032 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1033 __nexus_username__: { get_param: nexus_username }
1034 __nexus_password__: { get_param: nexus_password }
1035 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1036 __gitlab_branch__: { get_param: gitlab_branch }
1037 __dns_ip_addr__: { get_param: dns_ip_addr }
1038 __dcae_zone__: { get_param: dcae_zone }
1039 __dcae_state__: { get_param: dcae_state }
1040 __artifacts_version__: { get_param: artifacts_version }
1041 __tenant_id__: { get_param: openstack_tenant_id }
1042 __openstack_private_network_name__: { get_attr: [oam_ecomp, name] }
1043 __openstack_user__: { get_param: openstack_username }
1044 __openstack_password__: { get_param: openstack_api_key }
1045 __openstack_auth_method__: { get_param: openstack_auth_method }
1046 __key_name__: { get_param: key_name }
1047 __rand_str__: { get_resource: random-str }
1048 __pub_key__: { get_param: pub_key }
1049 __nexus_repo_root__: { get_param: nexus_repo_root }
1050 __openstack_region__: { get_param: openstack_region }
1051 __horizon_url__: { get_param: horizon_url }
1052 __keystone_url__: { get_param: keystone_url }
1053 __docker_version__: { get_param: docker_version }
1054 __gerrit_branch__: { get_param: gerrit_branch }
1055 __dcae_code_version__: { get_param: dcae_code_version }
1056 __cloud_env__: { get_param: cloud_env }
1057 __public_net_id__: { get_param: public_net_id }
1058 __dcae_base_environment__: { get_param: dcae_base_environment }
1059 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1060 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1061 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1062 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1063 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1064 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1065 __dcae_float_ip__: { get_param: dcae_float_ip }
1066 __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1067 __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1068 __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1069 __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1070 __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1071 __external_dns__: { get_param: external_dns }
1075 # Create configuration files
1076 mkdir -p /opt/config
1077 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1078 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1079 echo "__nexus_username__" > /opt/config/nexus_username.txt
1080 echo "__nexus_password__" > /opt/config/nexus_password.txt
1081 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1082 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1083 echo "__docker_version__" > /opt/config/docker_version.txt
1084 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1085 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1086 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1087 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1088 echo "__dcae_state__" > /opt/config/dcae_state.txt
1089 echo "__tenant_id__" > /opt/config/tenant_id.txt
1090 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1091 echo "__openstack_user__" > /opt/config/openstack_user.txt
1092 echo "__openstack_password__" > /opt/config/openstack_password.txt
1093 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1094 echo "__key_name__" > /opt/config/key_name.txt
1095 echo "__rand_str__" > /opt/config/rand_str.txt
1096 echo "__pub_key__" > /opt/config/pub_key.txt
1097 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1098 echo "__openstack_region__" > /opt/config/openstack_region.txt
1099 echo "__horizon_url__" > /opt/config/horizon_url.txt
1100 echo "__keystone_url__" > /opt/config/keystone_url.txt
1101 echo "__cloud_env__" > /opt/config/cloud_env.txt
1102 echo "__public_net_id__" > /opt/config/public_net_id.txt
1103 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1104 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1105 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1106 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1107 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1108 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1109 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1110 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1111 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1112 echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1113 echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1114 echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1115 echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1116 echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1117 echo "__external_dns__" > /opt/config/external_dns.txt
1119 # Download and run install script
1120 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1122 chmod +x dcae_install.sh
1126 # Policy Engine instantiation
1127 policy_private_port:
1128 type: OS::Neutron::Port
1130 network: { get_resource: oam_ecomp }
1131 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1134 type: OS::Neutron::FloatingIP
1136 floating_network_id: { get_param: public_net_id }
1137 port_id: { get_resource: policy_private_port }
1138 floating_ip_address: { get_param: policy_float_ip }
1141 type: OS::Nova::Server
1143 image: { get_param: ubuntu_1404_image }
1144 flavor: { get_param: flavor_xlarge }
1147 template: base-policy
1149 base: { get_param: vm_base_name }
1150 key_name: { get_resource: vm_key }
1152 - port: { get_resource: policy_private_port }
1153 user_data_format: RAW
1157 __nexus_repo__: { get_param: nexus_repo }
1158 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1159 __nexus_username__: { get_param: nexus_username }
1160 __nexus_password__: { get_param: nexus_password }
1161 __artifacts_version__: { get_param: artifacts_version }
1162 __dns_ip_addr__: { get_param: dns_ip_addr }
1163 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1164 __docker_version__: { get_param: docker_version }
1165 __gerrit_branch__: { get_param: gerrit_branch }
1166 __cloud_env__: { get_param: cloud_env }
1167 __external_dns__: { get_param: external_dns }
1171 # Create configuration files
1172 mkdir -p /opt/config
1173 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1174 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1175 echo "__nexus_username__" > /opt/config/nexus_username.txt
1176 echo "__nexus_password__" > /opt/config/nexus_password.txt
1177 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1178 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1179 echo "__public_ip__" > /opt/config/public_ip.txt
1180 echo "__docker_version__" > /opt/config/docker_version.txt
1181 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1182 echo "__cloud_env__" > /opt/config/cloud_env.txt
1183 echo "__external_dns__" > /opt/config/external_dns.txt
1185 # Download and run install script
1186 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1188 chmod +x policy_install.sh
1192 # APP-C instantiation
1194 type: OS::Neutron::Port
1196 network: { get_resource: oam_ecomp }
1197 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1200 type: OS::Neutron::FloatingIP
1202 floating_network_id: { get_param: public_net_id }
1203 port_id: { get_resource: appc_private_port }
1204 floating_ip_address: { get_param: appc_float_ip }
1207 type: OS::Nova::Server
1209 image: { get_param: ubuntu_1404_image }
1210 flavor: { get_param: flavor_large }
1215 base: { get_param: vm_base_name }
1216 key_name: { get_resource: vm_key }
1218 - port: { get_resource: appc_private_port }
1219 user_data_format: RAW
1223 __nexus_repo__: { get_param: nexus_repo }
1224 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1225 __nexus_username__: { get_param: nexus_username }
1226 __nexus_password__: { get_param: nexus_password }
1227 __dmaap_topic__: { get_param: dmaap_topic }
1228 __artifacts_version__: { get_param: artifacts_version }
1229 __dns_ip_addr__: { get_param: dns_ip_addr }
1230 __docker_version__: { get_param: docker_version }
1231 __gerrit_branch__: { get_param: gerrit_branch }
1232 __cloud_env__: { get_param: cloud_env }
1233 __external_dns__: { get_param: external_dns }
1237 # Create configuration files
1238 mkdir -p /opt/config
1239 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1240 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1241 echo "__nexus_username__" > /opt/config/nexus_username.txt
1242 echo "__nexus_password__" > /opt/config/nexus_password.txt
1243 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1244 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1245 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1246 echo "__docker_version__" > /opt/config/docker_version.txt
1247 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1248 echo "__cloud_env__" > /opt/config/cloud_env.txt
1249 echo "__external_dns__" > /opt/config/external_dns.txt
1251 # Download and run install script
1252 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1254 chmod +x appc_install.sh