1 heat_template_version: 2015-10-15
3 description: Heat template to install ONAP components
13 ##############################################
15 # Parameters used across all ONAP components #
17 ##############################################
21 description: Public network for floating IP address allocation
25 description: Name of the Ubuntu 14.04 image
29 description: Name of the Ubuntu 16.04 image
33 description: Name of the Small Flavor supported by the cloud provider
37 description: Name of the Medium Flavor supported by the cloud provider
41 description: Name of the Large Flavor supported by the cloud provider
45 description: Name of the Extra Large Flavor supported by the cloud provider
49 description: Base name of ONAP VMs
53 description: Public/Private key pair name
57 description: Public key to be installed on the compute instance
61 description: Complete URL for the Nexus repository.
65 description: Complete URL for the Nexus repository for docker images.
69 description: Nexus Repository username
73 description: Nexus Repository Password
77 description: Artifacts version of ONAP components
81 label: Version number of ONAP docker images
85 label: Gerrit code branch
86 description: Gerrit branch where to download the code from
90 description: DMaaP Topic name
94 description: Openstack tenant ID
98 description: Openstack username
100 openstack_auth_method:
102 description: Openstack authentication method (password VS. api-key)
106 description: Openstack API Key
110 description: URL of Openstack Horizon
114 description: URL of Openstack Keystone
118 description: Cloud Provider Name
120 ######################
122 # Network parameters #
124 ######################
127 type: comma_delimited_list
128 description: List of External DNS for OAM ONAP network
132 description: First element of the dns_list for ONAP network
134 ### Floating IP addresses ###
137 description: AAI Floating IP Address
141 description: APP-C Floating IP Address
145 description: DCAE Floating IP Address
149 description: DCAE Collector Floating IP Address
153 description: DCAE Collector Database Floating IP Address
157 description: Hadoop VM1 Floating IP Address
161 description: Hadoop VM2 Floating IP Address
165 description: Hadoop VM3 Floating IP Address
169 description: DNS Floating IP Address
173 description: MSO Floating IP Address
177 description: Message Router Floating IP Address
181 description: Policy Engine Floating IP Address
185 description: Portal Floating IP Address
189 description: Robot Framework Floating IP Address
193 description: SDC Floating IP Address
197 description: SDN-C Floating IP Address
201 description: VID Floating IP Address
203 ### Private IP addresses ###
206 description: CIDR of the OAM ONAP network
210 description: AAI IP Address
214 description: APP-C IP Address
218 description: DCAE IP Address
222 description: DCAE Collector IP Address
226 description: DCAE Database IP Address
230 description: Hadoop VM1 IP Address
234 description: Hadoop VM2 IP Address
238 description: Hadoop VM3 IP Address
242 description: DNS IP Address
246 description: MSO IP Address
250 description: Message Router IP Address
254 description: Policy Engine IP Address
258 description: Portal IP Address
262 description: Robot Framework IP Address
266 description: SDC IP Address
270 description: SDN-C IP Address
274 description: VID IP Address
277 ###########################
279 # Parameters used by DCAE #
281 ###########################
283 dcae_base_environment:
285 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
289 description: DCAE Zone to use in VM names created by DCAE controller
293 description: DCAE State to use in VM names created by DCAE controller
297 description: Root URL of Nexus repository
301 description: Snapshot of Maven repository for DCAE deployment
305 description: Region where the DCAE controller will spin the VMs
309 description: Branch of the Gitlab repository
313 description: DCAE Code Version Number
324 type: OS::Heat::RandomString
329 # Public key used to access ONAP components
331 type: OS::Nova::KeyPair
337 base: { get_param: key_name }
338 rand: { get_resource: random-str }
339 public_key: { get_param: pub_key }
340 save_private_key: false
343 # ONAP management private network
345 type: OS::Neutron::Net
349 template: oam_ecomp_rand
351 rand: { get_resource: random-str }
354 type: OS::Neutron::Subnet
358 template: oam_ecomp_rand
360 rand: { get_resource: random-str }
361 network_id: { get_resource: oam_ecomp }
362 cidr: { get_param: oam_network_cidr }
363 dns_nameservers: { get_param: dns_list }
366 type: OS::Neutron::Router
368 external_gateway_info:
369 network: { get_param: public_net_id }
372 type: OS::Neutron::RouterInterface
374 router_id: { get_resource: router }
375 subnet_id: { get_resource: oam_ecomp_subnet }
378 # DNS Server instantiation
380 type: OS::Neutron::Port
382 network: { get_resource: oam_ecomp }
383 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dns_ip_addr }}]
386 type: OS::Neutron::FloatingIP
388 floating_network_id: { get_param: public_net_id }
389 port_id: { get_resource: dns_private_port }
390 floating_ip_address: { get_param: dns_float_ip }
393 type: OS::Nova::Server
395 image: { get_param: ubuntu_1404_image }
396 flavor: { get_param: flavor_small }
399 template: base-dns-server
401 base: { get_param: vm_base_name }
402 key_name: { get_resource: vm_key }
404 - port: { get_resource: dns_private_port }
405 user_data_format: RAW
409 __nexus_repo__: { get_param: nexus_repo }
410 __artifacts_version__: { get_param: artifacts_version }
411 __oam_network_cidr__: { get_attr: [oam_ecomp_subnet, cidr] }
412 __dns_ip_addr__: { get_param: dns_ip_addr }
413 __aai_ip_addr__: { get_param: aai_ip_addr }
414 __appc_ip_addr__: { get_param: appc_ip_addr }
415 __dcae_ip_addr__: { get_param: dcae_ip_addr }
416 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
417 __mso_ip_addr__: { get_param: mso_ip_addr }
418 __mr_ip_addr__: { get_param: mr_ip_addr }
419 __policy_ip_addr__: { get_param: policy_ip_addr }
420 __portal_ip_addr__: { get_param: portal_ip_addr }
421 __robot_ip_addr__: { get_param: robot_ip_addr }
422 __sdc_ip_addr__: { get_param: sdc_ip_addr }
423 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
424 __vid_ip_addr__: { get_param: vid_ip_addr }
425 __cloud_env__: { get_param: cloud_env }
430 # Create configuration files
432 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
433 echo "__cloud_env__" > /opt/config/cloud_env.txt
434 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
435 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
436 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
437 echo "__aai_ip_addr__" > /opt/config/aai_ip_addr.txt
438 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
439 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
440 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
441 echo "__mso_ip_addr__" > /opt/config/mso_ip_addr.txt
442 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
443 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
444 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
445 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
446 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
447 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
448 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
450 # Download and run install script
451 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
453 chmod +x dns_install.sh
459 type: OS::Neutron::Port
461 network: { get_resource: oam_ecomp }
462 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: aai_ip_addr }}]
465 type: OS::Neutron::FloatingIP
467 floating_network_id: { get_param: public_net_id }
468 port_id: { get_resource: aai_private_port }
469 floating_ip_address: { get_param: aai_float_ip }
472 type: OS::Nova::Server
474 image: { get_param: ubuntu_1404_image }
475 flavor: { get_param: flavor_xlarge }
480 base: { get_param: vm_base_name }
481 key_name: { get_resource: vm_key }
483 - port: { get_resource: aai_private_port }
484 user_data_format: RAW
488 __nexus_repo__: { get_param: nexus_repo }
489 __nexus_docker_repo__: { get_param: nexus_docker_repo }
490 __nexus_username__: { get_param: nexus_username }
491 __nexus_password__: { get_param: nexus_password }
492 __dmaap_topic__: { get_param: dmaap_topic }
493 __artifacts_version__: { get_param: artifacts_version }
494 __dns_ip_addr__: { get_param: dns_ip_addr }
495 __sdc_ip_addr__: { get_param: sdc_ip_addr }
496 __docker_version__: { get_param: docker_version }
497 __cloud_env__: { get_param: cloud_env }
498 __external_dns__: { get_param: external_dns }
502 # Create configuration files
504 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
505 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
506 echo "__nexus_username__" > /opt/config/nexus_username.txt
507 echo "__nexus_password__" > /opt/config/nexus_password.txt
508 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
509 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
510 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
511 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
512 echo "__docker_version__" > /opt/config/docker_version.txt
513 echo "__cloud_env__" > /opt/config/cloud_env.txt
514 echo "__external_dns__" > /opt/config/external_dns.txt
516 # Download and run install script
517 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
519 chmod +x aai_install.sh
525 type: OS::Neutron::Port
527 network: { get_resource: oam_ecomp }
528 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mso_ip_addr }}]
531 type: OS::Neutron::FloatingIP
533 floating_network_id: { get_param: public_net_id }
534 port_id: { get_resource: mso_private_port }
535 floating_ip_address: { get_param: mso_float_ip }
538 type: OS::Nova::Server
540 image: { get_param: ubuntu_1604_image }
541 flavor: { get_param: flavor_large }
546 base: { get_param: vm_base_name }
547 key_name: { get_resource: vm_key }
549 - port: { get_resource: mso_private_port }
550 user_data_format: RAW
554 __nexus_repo__: { get_param: nexus_repo }
555 __nexus_docker_repo__: { get_param: nexus_docker_repo }
556 __nexus_username__: { get_param: nexus_username }
557 __nexus_password__: { get_param: nexus_password }
558 __openstack_username__: { get_param: openstack_username }
559 __openstack_tenant_id__: { get_param: openstack_tenant_id }
560 __openstack_api_key__: { get_param: openstack_api_key }
561 __keystone_url__: { get_param: keystone_url }
562 __dmaap_topic__: { get_param: dmaap_topic }
563 __artifacts_version__: { get_param: artifacts_version }
564 __dns_ip_addr__: { get_param: dns_ip_addr }
565 __docker_version__: { get_param: docker_version }
566 __gerrit_branch__: { get_param: gerrit_branch }
567 __cloud_env__: { get_param: cloud_env }
568 __external_dns__: { get_param: external_dns }
572 # Create configuration files
574 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
575 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
576 echo "__nexus_username__" > /opt/config/nexus_username.txt
577 echo "__nexus_password__" > /opt/config/nexus_password.txt
578 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
579 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
580 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
581 echo "__openstack_username__" > /opt/config/openstack_username.txt
582 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
583 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
584 echo "__keystone_url__" > /opt/config/keystone.txt
585 echo "__docker_version__" > /opt/config/docker_version.txt
586 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
587 echo "__cloud_env__" > /opt/config/cloud_env.txt
588 echo "__external_dns__" > /opt/config/external_dns.txt
590 # Download and run install script
591 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
593 chmod +x mso_install.sh
597 # Message Router instantiation
598 mrouter_private_port:
599 type: OS::Neutron::Port
601 network: { get_resource: oam_ecomp }
602 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mr_ip_addr }}]
605 type: OS::Neutron::FloatingIP
607 floating_network_id: { get_param: public_net_id }
608 port_id: { get_resource: mrouter_private_port }
609 floating_ip_address: { get_param: mr_float_ip }
612 type: OS::Nova::Server
614 image: { get_param: ubuntu_1404_image }
615 flavor: { get_param: flavor_large }
618 template: base-message-router
620 base: { get_param: vm_base_name }
621 key_name: { get_resource: vm_key }
623 - port: { get_resource: mrouter_private_port }
624 user_data_format: RAW
628 __nexus_repo__: { get_param: nexus_repo }
629 __nexus_docker_repo__: { get_param: nexus_docker_repo }
630 __nexus_username__: { get_param: nexus_username }
631 __nexus_password__: { get_param: nexus_password }
632 __artifacts_version__: { get_param: artifacts_version }
633 __dns_ip_addr__: { get_param: dns_ip_addr }
634 __gerrit_branch__: { get_param: gerrit_branch }
635 __cloud_env__: { get_param: cloud_env }
636 __external_dns__: { get_param: external_dns }
640 # Create configuration files
642 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
643 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
644 echo "__nexus_username__" > /opt/config/nexus_username.txt
645 echo "__nexus_password__" > /opt/config/nexus_password.txt
646 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
647 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
648 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
649 echo "__cloud_env__" > /opt/config/cloud_env.txt
650 echo "__external_dns__" > /opt/config/external_dns.txt
652 # Download and run install script
653 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
655 chmod +x mr_install.sh
659 # Robot Framework instantiation
661 type: OS::Neutron::Port
663 network: { get_resource: oam_ecomp }
664 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: robot_ip_addr }}]
667 type: OS::Neutron::FloatingIP
669 floating_network_id: { get_param: public_net_id }
670 port_id: { get_resource: robot_private_port }
671 floating_ip_address: { get_param: robot_float_ip }
674 type: OS::Nova::Server
676 image: { get_param: ubuntu_1604_image }
677 flavor: { get_param: flavor_small }
682 base: { get_param: vm_base_name }
683 key_name: { get_resource: vm_key }
685 - port: { get_resource: robot_private_port }
686 user_data_format: RAW
690 __nexus_repo__: { get_param: nexus_repo }
691 __nexus_docker_repo__: { get_param: nexus_docker_repo }
692 __nexus_username__: { get_param: nexus_username }
693 __nexus_password__: { get_param: nexus_password }
694 __network_name__: { get_attr: [oam_ecomp, name] }
695 __openstack_username__: { get_param: openstack_username }
696 __openstack_api_key__: { get_param : openstack_api_key }
697 __artifacts_version__: { get_param: artifacts_version }
698 __openstack_region__: { get_param: openstack_region }
699 __dns_ip_addr__: { get_param: dns_ip_addr }
700 __docker_version__: { get_param: docker_version }
701 __gerrit_branch__: { get_param: gerrit_branch }
702 __cloud_env__: { get_param: cloud_env }
703 __external_dns__: { get_param: external_dns }
707 # Create configuration files
709 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
710 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
711 echo "__nexus_username__" > /opt/config/nexus_username.txt
712 echo "__nexus_password__" > /opt/config/nexus_password.txt
713 echo "__network_name__" > /opt/config/network.txt
714 echo "__openstack_username__" > /opt/config/openstack_username.txt
715 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
716 echo "__openstack_region__" > /opt/config/region.txt
717 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
718 echo "__docker_version__" > /opt/config/docker_version.txt
719 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
720 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
721 echo "__cloud_env__" > /opt/config/cloud_env.txt
722 echo "__external_dns__" > /opt/config/external_dns.txt
724 # Download and run install script
725 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
727 chmod +x robot_install.sh
733 type: OS::Neutron::Port
735 network: { get_resource: oam_ecomp }
736 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: vid_ip_addr }}]
739 type: OS::Neutron::FloatingIP
741 floating_network_id: { get_param: public_net_id }
742 port_id: { get_resource: vid_private_port }
743 floating_ip_address: { get_param: vid_float_ip }
746 type: OS::Nova::Server
748 image: { get_param: ubuntu_1404_image }
749 flavor: { get_param: flavor_medium }
754 base: { get_param: vm_base_name }
755 key_name: { get_resource: vm_key }
757 - port: { get_resource: vid_private_port }
758 user_data_format: RAW
762 __nexus_repo__: { get_param: nexus_repo }
763 __nexus_docker_repo__: { get_param: nexus_docker_repo }
764 __nexus_username__: { get_param: nexus_username }
765 __nexus_password__: { get_param: nexus_password }
766 __artifacts_version__: { get_param: artifacts_version }
767 __dns_ip_addr__: { get_param: dns_ip_addr }
768 __docker_version__: { get_param: docker_version }
769 __gerrit_branch__: { get_param: gerrit_branch }
770 __cloud_env__: { get_param: cloud_env }
771 __external_dns__: { get_param: external_dns }
775 # Create configuration files
777 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
778 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
779 echo "__nexus_username__" > /opt/config/nexus_username.txt
780 echo "__nexus_password__" > /opt/config/nexus_password.txt
781 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
782 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
783 echo "__docker_version__" > /opt/config/docker_version.txt
784 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
785 echo "__cloud_env__" > /opt/config/cloud_env.txt
786 echo "__external_dns__" > /opt/config/external_dns.txt
788 # Download and run install script
789 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
791 chmod +x vid_install.sh
795 # SDN-C instantiation
797 type: OS::Neutron::Port
799 network: { get_resource: oam_ecomp }
800 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
803 type: OS::Neutron::FloatingIP
805 floating_network_id: { get_param: public_net_id }
806 port_id: { get_resource: sdnc_private_port }
807 floating_ip_address: { get_param: sdnc_float_ip }
810 type: OS::Nova::Server
812 image: { get_param: ubuntu_1404_image }
813 flavor: { get_param: flavor_large }
818 base: { get_param: vm_base_name }
819 key_name: { get_resource: vm_key }
821 - port: { get_resource: sdnc_private_port }
822 user_data_format: RAW
826 __nexus_repo__: { get_param: nexus_repo }
827 __nexus_docker_repo__: { get_param: nexus_docker_repo }
828 __nexus_username__: { get_param: nexus_username }
829 __nexus_password__: { get_param: nexus_password }
830 __artifacts_version__: { get_param: artifacts_version }
831 __dns_ip_addr__: { get_param: dns_ip_addr }
832 __docker_version__: { get_param: docker_version }
833 __gerrit_branch__: { get_param: gerrit_branch }
834 __cloud_env__: { get_param: cloud_env }
835 __external_dns__: { get_param: external_dns }
839 # Create configuration files
841 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
842 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
843 echo "__nexus_username__" > /opt/config/nexus_username.txt
844 echo "__nexus_password__" > /opt/config/nexus_password.txt
845 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
846 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
847 echo "__docker_version__" > /opt/config/docker_version.txt
848 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
849 echo "__cloud_env__" > /opt/config/cloud_env.txt
850 echo "__external_dns__" > /opt/config/external_dns.txt
852 # Download and run install script
853 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
855 chmod +x sdnc_install.sh
861 type: OS::Neutron::Port
863 network: { get_resource: oam_ecomp }
864 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
867 type: OS::Neutron::FloatingIP
869 floating_network_id: { get_param: public_net_id }
870 port_id: { get_resource: sdc_private_port }
871 floating_ip_address: { get_param: sdc_float_ip }
874 type: OS::Cinder::Volume
880 type: OS::Nova::Server
882 image: { get_param: ubuntu_1604_image }
883 flavor: { get_param: flavor_xlarge }
888 base: { get_param: vm_base_name }
889 key_name: { get_resource: vm_key }
891 - port: { get_resource: sdc_private_port }
892 block_device_mapping:
893 - device_name: /dev/vdb
894 volume_id: {get_resource: sdc_volume_data}
895 user_data_format: RAW
899 __nexus_repo__: { get_param: nexus_repo }
900 __nexus_docker_repo__: { get_param: nexus_docker_repo }
901 __nexus_username__: { get_param: nexus_username }
902 __nexus_password__: { get_param: nexus_password }
903 __env_name__: { get_param: dmaap_topic }
904 __artifacts_version__: { get_param: artifacts_version }
905 __dns_ip_addr__: { get_param: dns_ip_addr }
906 __mr_ip_addr__: { get_param: mr_ip_addr }
907 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
908 __docker_version__: { get_param: docker_version }
909 __gerrit_branch__: { get_param: gerrit_branch }
910 __cloud_env__: { get_param: cloud_env }
911 __external_dns__: { get_param: external_dns }
915 # Create configuration files
917 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
918 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
919 echo "__nexus_username__" > /opt/config/nexus_username.txt
920 echo "__nexus_password__" > /opt/config/nexus_password.txt
921 echo "__env_name__" > /opt/config/env_name.txt
922 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
923 echo "__public_ip__" > /opt/config/public_ip.txt
924 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
925 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
926 echo "__docker_version__" > /opt/config/docker_version.txt
927 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
928 echo "__cloud_env__" > /opt/config/cloud_env.txt
929 echo "__external_dns__" > /opt/config/external_dns.txt
931 # Download and run install script
932 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
934 chmod +x asdc_install.sh
938 # PORTAL instantiation
940 type: OS::Neutron::Port
942 network: { get_resource: oam_ecomp }
943 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: portal_ip_addr }}]
946 type: OS::Neutron::FloatingIP
948 floating_network_id: { get_param: public_net_id }
949 port_id: { get_resource: portal_private_port }
950 floating_ip_address: { get_param: portal_float_ip }
953 type: OS::Nova::Server
955 image: { get_param: ubuntu_1404_image }
956 flavor: { get_param: flavor_large }
959 template: base-portal
961 base: { get_param: vm_base_name }
962 key_name: { get_resource: vm_key }
964 - port: { get_resource: portal_private_port }
965 user_data_format: RAW
969 __nexus_repo__: { get_param: nexus_repo }
970 __nexus_docker_repo__: { get_param: nexus_docker_repo }
971 __nexus_username__: { get_param: nexus_username }
972 __nexus_password__: { get_param: nexus_password }
973 __artifacts_version__: { get_param: artifacts_version }
974 __dns_ip_addr__: { get_param: dns_ip_addr }
975 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
976 __docker_version__: { get_param: docker_version }
977 __gerrit_branch__: { get_param: gerrit_branch }
978 __cloud_env__: { get_param: cloud_env }
979 __external_dns__: { get_param: external_dns }
983 # Create configuration files
985 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
986 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
987 echo "__nexus_username__" > /opt/config/nexus_username.txt
988 echo "__nexus_password__" > /opt/config/nexus_password.txt
989 echo "__public_ip__" > /opt/config/public_ip.txt
990 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
991 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
992 echo "__docker_version__" > /opt/config/docker_version.txt
993 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
994 echo "__cloud_env__" > /opt/config/cloud_env.txt
995 echo "__external_dns__" > /opt/config/external_dns.txt
997 # Download and run install script
998 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1000 chmod +x portal_install.sh
1004 # DCAE Controller instantiation
1005 dcae_c_private_port:
1006 type: OS::Neutron::Port
1008 network: { get_resource: oam_ecomp }
1009 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1012 type: OS::Neutron::FloatingIP
1014 floating_network_id: { get_param: public_net_id }
1015 port_id: { get_resource: dcae_c_private_port }
1016 floating_ip_address: { get_param: dcae_float_ip }
1019 type: OS::Nova::Server
1021 image: { get_param: ubuntu_1404_image }
1022 flavor: { get_param: flavor_medium }
1025 template: base-dcae-controller
1027 base: { get_param: vm_base_name }
1028 key_name: { get_resource: vm_key }
1030 - port: { get_resource: dcae_c_private_port }
1031 user_data_format: RAW
1035 __nexus_repo__: { get_param: nexus_repo }
1036 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1037 __nexus_username__: { get_param: nexus_username }
1038 __nexus_password__: { get_param: nexus_password }
1039 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1040 __gitlab_branch__: { get_param: gitlab_branch }
1041 __dns_ip_addr__: { get_param: dns_ip_addr }
1042 __dcae_zone__: { get_param: dcae_zone }
1043 __dcae_state__: { get_param: dcae_state }
1044 __artifacts_version__: { get_param: artifacts_version }
1045 __tenant_id__: { get_param: openstack_tenant_id }
1046 __openstack_private_network_name__: { get_attr: [oam_ecomp, name] }
1047 __openstack_user__: { get_param: openstack_username }
1048 __openstack_password__: { get_param: openstack_api_key }
1049 __openstack_auth_method__: { get_param: openstack_auth_method }
1050 __key_name__: { get_param: key_name }
1051 __rand_str__: { get_resource: random-str }
1052 __pub_key__: { get_param: pub_key }
1053 __nexus_repo_root__: { get_param: nexus_repo_root }
1054 __openstack_region__: { get_param: openstack_region }
1055 __horizon_url__: { get_param: horizon_url }
1056 __keystone_url__: { get_param: keystone_url }
1057 __docker_version__: { get_param: docker_version }
1058 __gerrit_branch__: { get_param: gerrit_branch }
1059 __dcae_code_version__: { get_param: dcae_code_version }
1060 __cloud_env__: { get_param: cloud_env }
1061 __public_net_id__: { get_param: public_net_id }
1062 __dcae_base_environment__: { get_param: dcae_base_environment }
1063 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1064 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1065 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1066 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1067 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1068 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1069 __dcae_float_ip__: { get_param: dcae_float_ip }
1070 __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1071 __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1072 __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1073 __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1074 __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1075 __external_dns__: { get_param: external_dns }
1076 __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1077 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1078 __flavor_small__: { get_param: flavor_small }
1079 __flavor_medium__: { get_param: flavor_medium }
1080 __flavor_large__: { get_param: flavor_large }
1081 __flavor_xlarge__: { get_param: flavor_xlarge }
1085 # Create configuration files
1086 mkdir -p /opt/config
1087 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1088 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1089 echo "__nexus_username__" > /opt/config/nexus_username.txt
1090 echo "__nexus_password__" > /opt/config/nexus_password.txt
1091 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1092 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1093 echo "__docker_version__" > /opt/config/docker_version.txt
1094 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1095 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1096 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1097 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1098 echo "__dcae_state__" > /opt/config/dcae_state.txt
1099 echo "__tenant_id__" > /opt/config/tenant_id.txt
1100 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1101 echo "__openstack_user__" > /opt/config/openstack_user.txt
1102 echo "__openstack_password__" > /opt/config/openstack_password.txt
1103 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1104 echo "__key_name__" > /opt/config/key_name.txt
1105 echo "__rand_str__" > /opt/config/rand_str.txt
1106 echo "__pub_key__" > /opt/config/pub_key.txt
1107 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1108 echo "__openstack_region__" > /opt/config/openstack_region.txt
1109 echo "__horizon_url__" > /opt/config/horizon_url.txt
1110 echo "__keystone_url__" > /opt/config/keystone_url.txt
1111 echo "__cloud_env__" > /opt/config/cloud_env.txt
1112 echo "__public_net_id__" > /opt/config/public_net_id.txt
1113 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1114 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1115 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1116 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1117 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1118 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1119 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1120 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1121 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1122 echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1123 echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1124 echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1125 echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1126 echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1127 echo "__external_dns__" > /opt/config/external_dns.txt
1128 echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1129 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1130 echo "__flavor_small__" > /opt/config/flavor_small.txt
1131 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1132 echo "__flavor_large__" > /opt/config/flavor_large.txt
1133 echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1135 # Download and run install script
1136 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1138 chmod +x dcae_install.sh
1142 # Policy Engine instantiation
1143 policy_private_port:
1144 type: OS::Neutron::Port
1146 network: { get_resource: oam_ecomp }
1147 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1150 type: OS::Neutron::FloatingIP
1152 floating_network_id: { get_param: public_net_id }
1153 port_id: { get_resource: policy_private_port }
1154 floating_ip_address: { get_param: policy_float_ip }
1157 type: OS::Nova::Server
1159 image: { get_param: ubuntu_1404_image }
1160 flavor: { get_param: flavor_xlarge }
1163 template: base-policy
1165 base: { get_param: vm_base_name }
1166 key_name: { get_resource: vm_key }
1168 - port: { get_resource: policy_private_port }
1169 user_data_format: RAW
1173 __nexus_repo__: { get_param: nexus_repo }
1174 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1175 __nexus_username__: { get_param: nexus_username }
1176 __nexus_password__: { get_param: nexus_password }
1177 __artifacts_version__: { get_param: artifacts_version }
1178 __dns_ip_addr__: { get_param: dns_ip_addr }
1179 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1180 __docker_version__: { get_param: docker_version }
1181 __gerrit_branch__: { get_param: gerrit_branch }
1182 __cloud_env__: { get_param: cloud_env }
1183 __external_dns__: { get_param: external_dns }
1187 # Create configuration files
1188 mkdir -p /opt/config
1189 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1190 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1191 echo "__nexus_username__" > /opt/config/nexus_username.txt
1192 echo "__nexus_password__" > /opt/config/nexus_password.txt
1193 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1194 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1195 echo "__public_ip__" > /opt/config/public_ip.txt
1196 echo "__docker_version__" > /opt/config/docker_version.txt
1197 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1198 echo "__cloud_env__" > /opt/config/cloud_env.txt
1199 echo "__external_dns__" > /opt/config/external_dns.txt
1201 # Download and run install script
1202 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1204 chmod +x policy_install.sh
1208 # APP-C instantiation
1210 type: OS::Neutron::Port
1212 network: { get_resource: oam_ecomp }
1213 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1216 type: OS::Neutron::FloatingIP
1218 floating_network_id: { get_param: public_net_id }
1219 port_id: { get_resource: appc_private_port }
1220 floating_ip_address: { get_param: appc_float_ip }
1223 type: OS::Nova::Server
1225 image: { get_param: ubuntu_1404_image }
1226 flavor: { get_param: flavor_large }
1231 base: { get_param: vm_base_name }
1232 key_name: { get_resource: vm_key }
1234 - port: { get_resource: appc_private_port }
1235 user_data_format: RAW
1239 __nexus_repo__: { get_param: nexus_repo }
1240 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1241 __nexus_username__: { get_param: nexus_username }
1242 __nexus_password__: { get_param: nexus_password }
1243 __dmaap_topic__: { get_param: dmaap_topic }
1244 __artifacts_version__: { get_param: artifacts_version }
1245 __dns_ip_addr__: { get_param: dns_ip_addr }
1246 __docker_version__: { get_param: docker_version }
1247 __gerrit_branch__: { get_param: gerrit_branch }
1248 __cloud_env__: { get_param: cloud_env }
1249 __external_dns__: { get_param: external_dns }
1253 # Create configuration files
1254 mkdir -p /opt/config
1255 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1256 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1257 echo "__nexus_username__" > /opt/config/nexus_username.txt
1258 echo "__nexus_password__" > /opt/config/nexus_password.txt
1259 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1260 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1261 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1262 echo "__docker_version__" > /opt/config/docker_version.txt
1263 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1264 echo "__cloud_env__" > /opt/config/cloud_env.txt
1265 echo "__external_dns__" > /opt/config/external_dns.txt
1267 # Download and run install script
1268 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1270 chmod +x appc_install.sh