1 ##########################################################################
3 #==================LICENSE_START==========================================
6 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 #==================LICENSE_END============================================
21 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 ##########################################################################
25 heat_template_version: 2015-10-15
27 description: Heat template to install ONAP components
37 ##############################################
39 # Parameters used across all ONAP components #
41 ##############################################
45 description: Public network for floating IP address allocation
49 description: Name of the Ubuntu 14.04 image
53 description: Name of the Ubuntu 16.04 image
57 description: Name of the Small Flavor supported by the cloud provider
61 description: Name of the Medium Flavor supported by the cloud provider
65 description: Name of the Large Flavor supported by the cloud provider
69 description: Name of the Extra Large Flavor supported by the cloud provider
73 description: Name of the Extra Extra Large Flavor supported by the cloud provider
77 description: Base name of ONAP VMs
81 description: Public/Private key pair name
85 description: Public key to be installed on the compute instance
89 description: Complete URL for the Nexus repository.
93 description: Complete URL for the Nexus repository for docker images.
97 description: Nexus Repository username
101 description: Nexus Repository Password
105 description: Artifacts version of ONAP components
109 description: DMaaP Topic name
113 description: Openstack tenant ID
117 description: Openstack username
119 openstack_auth_method:
121 description: Openstack authentication method (password VS. api-key)
125 description: Openstack password or API Key
129 description: URL of Openstack Horizon
133 description: URL of Openstack Keystone
137 description: Cloud Provider Name
141 description: Region where the DCAE controller will spin the VMs
143 ######################
145 # Network parameters #
147 ######################
150 type: comma_delimited_list
151 description: List of External DNS for OAM ONAP network
155 description: First element of the dns_list for ONAP network
159 description: CIDR of the OAM ONAP network
161 ### Private IP addresses ###
202 # dcae_coll_float_ip:
206 # dcae_hdp1_float_ip:
208 # dcae_hdp2_float_ip:
210 # dcae_hdp3_float_ip:
213 ###########################
215 # Parameters used by DCAE #
217 ###########################
221 description: the cloud flavor of the OpenStack instance where DCAE is deployed
225 description: the keystone URL of the OpenStack instance where DCAE is deployed
227 dcaeos_openstack_region:
229 description: the region of the OpenStack instance where DCAE is deployed
231 dcaeos_openstack_tenant_id:
233 description: the keystone URL of the OpenStack instance where DCAE is deployed
235 dcaeos_openstack_username:
237 description: the username of the identity API of the OpenStack instance where DCAE is deployed
239 dcaeos_openstack_password:
241 description: the password of the identity API of the OpenStack instance where DCAE is deployed
243 dcaeos_dcae_key_name:
245 description: the key-pair name uploaded to the OpenStack instance where DCAE is deployed
249 description: the public key of the key-pair uploaded to the OpenStack instance where DCAE is deployed
253 description: the private key of the key-pair uploaded to the OpenStack instance where DCAE is deployed
255 dcaeos_openstack_private_network_name:
257 description: the name/id of the network used as DCAE internal network in the OpenStack instance where DCAE is deployed
259 dcaeos_public_net_id:
261 description: the name/id of the network where DCAE gets floating IPs from in the OpenStack instance where DCAE is deployed
263 dcaeos_ubuntu_1604_image:
265 description: the name/id of the Ubuntu1604 VM image in the OpenStack instance where DCAE is deployed
267 dcaeos_centos_7_image:
269 description: the name/id of the CentOS7 VM image in the OpenStack instance where DCAE is deployed
271 dcaeos_security_group:
273 description: the name/id of the security group to be used by DCAE VMs in the OpenStack instance where DCAE is deployed
277 description: the name/id of the VM flavor to be used by DCAE VMs in the OpenStack instance where DCAE is deployed
279 # dcae_base_environment:
281 # description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
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
295 # nexus_url_snapshot:
297 # description: Snapshot of Maven repository for DCAE deployment
301 # description: Branch of the Gitlab repository
305 # description: DCAE Code Version Number
307 #####################
309 # ONAP repositories #
311 #####################
340 ################################
342 # Docker versions and branches #
344 ################################
421 type: OS::Heat::RandomString
426 # Public key used to access ONAP components
428 type: OS::Nova::KeyPair
434 base: { get_param: key_name }
435 rand: { get_resource: random-str }
436 public_key: { get_param: pub_key }
437 save_private_key: false
439 # ONAP management private network
441 type: OS::Neutron::Net
445 template: oam_onap_rand
447 rand: { get_resource: random-str }
450 type: OS::Neutron::Subnet
454 template: oam_onap_rand
456 rand: { get_resource: random-str }
457 network_id: { get_resource: oam_onap }
458 cidr: { get_param: oam_network_cidr }
459 dns_nameservers: { get_param: dns_list }
462 type: OS::Neutron::Router
464 external_gateway_info:
465 network: { get_param: public_net_id }
468 type: OS::Neutron::RouterInterface
470 router_id: { get_resource: router }
471 subnet_id: { get_resource: oam_onap_subnet }
474 # DNS Server instantiation
476 type: OS::Neutron::Port
478 network: { get_resource: oam_onap }
479 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
482 type: OS::Neutron::FloatingIP
484 floating_network_id: { get_param: public_net_id }
485 port_id: { get_resource: dns_private_port }
488 type: OS::Nova::Server
490 image: { get_param: ubuntu_1404_image }
491 flavor: { get_param: flavor_small }
494 template: base-dns-server
496 base: { get_param: vm_base_name }
497 key_name: { get_resource: vm_key }
499 - port: { get_resource: dns_private_port }
500 user_data_format: RAW
504 __nexus_repo__: { get_param: nexus_repo }
505 __artifacts_version__: { get_param: artifacts_version }
506 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
507 __dns_ip_addr__: { get_param: dns_ip_addr }
508 __aai1_ip_addr__: { get_param: aai1_ip_addr }
509 __aai2_ip_addr__: { get_param: aai2_ip_addr }
510 __appc_ip_addr__: { get_param: appc_ip_addr }
511 __dcae_ip_addr__: { get_param: dcae_ip_addr }
512 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
513 __so_ip_addr__: { get_param: so_ip_addr }
514 __mr_ip_addr__: { get_param: mr_ip_addr }
515 __policy_ip_addr__: { get_param: policy_ip_addr }
516 __portal_ip_addr__: { get_param: portal_ip_addr }
517 __robot_ip_addr__: { get_param: robot_ip_addr }
518 __sdc_ip_addr__: { get_param: sdc_ip_addr }
519 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
520 __vid_ip_addr__: { get_param: vid_ip_addr }
521 __clamp_ip_addr__: { get_param: clamp_ip_addr }
522 __openo_ip_addr__: { get_param: openo_ip_addr }
523 __cloud_env__: { get_param: cloud_env }
524 __external_dns__: { get_param: external_dns }
528 # Create configuration files
530 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
531 echo "__cloud_env__" > /opt/config/cloud_env.txt
532 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
533 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
534 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
535 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
536 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
537 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
538 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
539 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
540 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
541 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
542 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
543 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
544 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
545 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
546 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
547 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
548 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
549 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
550 echo "__external_dns__" > /opt/config/external_dns.txt
552 # Download and run install script
553 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
555 chmod +x dns_install.sh
559 # A&AI instantiation (2 VMs)
561 type: OS::Neutron::Port
563 network: { get_resource: oam_onap }
564 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
567 type: OS::Neutron::FloatingIP
569 floating_network_id: { get_param: public_net_id }
570 port_id: { get_resource: aai1_private_port }
573 type: OS::Nova::Server
576 image: { get_param: ubuntu_1404_image }
577 flavor: { get_param: flavor_xlarge }
580 template: base-aai-inst1
582 base: { get_param: vm_base_name }
583 key_name: { get_resource: vm_key }
585 - port: { get_resource: aai1_private_port }
586 user_data_format: RAW
590 __nexus_repo__: { get_param: nexus_repo }
591 __nexus_docker_repo__: { get_param: nexus_docker_repo }
592 __nexus_username__: { get_param: nexus_username }
593 __nexus_password__: { get_param: nexus_password }
594 __dmaap_topic__: { get_param: dmaap_topic }
595 __artifacts_version__: { get_param: artifacts_version }
596 __dns_ip_addr__: { get_param: dns_ip_addr }
597 __docker_version__: { get_param: aai_docker }
598 __gerrit_branch__: { get_param: aai_branch }
599 __cloud_env__: { get_param: cloud_env }
600 __external_dns__: { get_param: external_dns }
601 __aai_repo__: { get_param: aai_repo }
605 # Create configuration files
607 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
608 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
609 echo "__nexus_username__" > /opt/config/nexus_username.txt
610 echo "__nexus_password__" > /opt/config/nexus_password.txt
611 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
612 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
613 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
614 echo "__docker_version__" > /opt/config/docker_version.txt
615 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
616 echo "aai_instance_1" > /opt/config/aai_instance.txt
617 echo "__cloud_env__" > /opt/config/cloud_env.txt
618 echo "__external_dns__" > /opt/config/external_dns.txt
619 echo "__aai_repo__" > /opt/config/remote_repo.txt
621 # Download and run install script
622 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
624 chmod +x aai_install.sh
629 type: OS::Neutron::Port
631 network: { get_resource: oam_onap }
632 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
635 type: OS::Neutron::FloatingIP
637 floating_network_id: { get_param: public_net_id }
638 port_id: { get_resource: aai2_private_port }
641 type: OS::Nova::Server
643 image: { get_param: ubuntu_1404_image }
644 flavor: { get_param: flavor_xlarge }
647 template: base-aai-inst2
649 base: { get_param: vm_base_name }
650 key_name: { get_resource: vm_key }
652 - port: { get_resource: aai2_private_port }
653 user_data_format: RAW
657 __nexus_repo__: { get_param: nexus_repo }
658 __nexus_docker_repo__: { get_param: nexus_docker_repo }
659 __nexus_username__: { get_param: nexus_username }
660 __nexus_password__: { get_param: nexus_password }
661 __dmaap_topic__: { get_param: dmaap_topic }
662 __artifacts_version__: { get_param: artifacts_version }
663 __dns_ip_addr__: { get_param: dns_ip_addr }
664 __docker_version__: { get_param: aai_docker }
665 __gerrit_branch__: { get_param: aai_branch }
666 __cloud_env__: { get_param: cloud_env }
667 __external_dns__: { get_param: external_dns }
668 __aai_repo__: { get_param: aai_repo }
672 # Create configuration files
674 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
675 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
676 echo "__nexus_username__" > /opt/config/nexus_username.txt
677 echo "__nexus_password__" > /opt/config/nexus_password.txt
678 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
679 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
680 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
681 echo "__docker_version__" > /opt/config/docker_version.txt
682 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
683 echo "aai_instance_2" > /opt/config/aai_instance.txt
684 echo "__cloud_env__" > /opt/config/cloud_env.txt
685 echo "__external_dns__" > /opt/config/external_dns.txt
686 echo "__aai_repo__" > /opt/config/remote_repo.txt
688 # Download and run install script
689 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
691 chmod +x aai_install.sh
697 type: OS::Neutron::Port
699 network: { get_resource: oam_onap }
700 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
703 type: OS::Neutron::FloatingIP
705 floating_network_id: { get_param: public_net_id }
706 port_id: { get_resource: so_private_port }
709 type: OS::Nova::Server
711 image: { get_param: ubuntu_1604_image }
712 flavor: { get_param: flavor_large }
717 base: { get_param: vm_base_name }
718 key_name: { get_resource: vm_key }
720 - port: { get_resource: so_private_port }
721 user_data_format: RAW
725 __nexus_repo__: { get_param: nexus_repo }
726 __nexus_docker_repo__: { get_param: nexus_docker_repo }
727 __nexus_username__: { get_param: nexus_username }
728 __nexus_password__: { get_param: nexus_password }
729 __openstack_username__: { get_param: openstack_username }
730 __openstack_tenant_id__: { get_param: openstack_tenant_id }
731 __openstack_api_key__: { get_param: openstack_api_key }
732 __openstack_region__: { get_param: openstack_region }
733 __keystone_url__: { get_param: keystone_url }
734 __dmaap_topic__: { get_param: dmaap_topic }
735 __artifacts_version__: { get_param: artifacts_version }
736 __dns_ip_addr__: { get_param: dns_ip_addr }
737 __openo_ip__: { get_param: openo_ip_addr }
738 __docker_version__: { get_param: so_docker }
739 __gerrit_branch__: { get_param: so_branch }
740 __cloud_env__: { get_param: cloud_env }
741 __external_dns__: { get_param: external_dns }
742 __so_repo__: { get_param: so_repo }
746 # Create configuration files
748 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
749 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
750 echo "__nexus_username__" > /opt/config/nexus_username.txt
751 echo "__nexus_password__" > /opt/config/nexus_password.txt
752 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
753 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
754 echo "__openo_ip__" > /opt/config/openo_ip.txt
755 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
756 echo "__openstack_username__" > /opt/config/openstack_username.txt
757 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
758 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
759 echo "__openstack_region__" > /opt/config/openstack_region.txt
760 echo "__keystone_url__" > /opt/config/keystone.txt
761 echo "__docker_version__" > /opt/config/docker_version.txt
762 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
763 echo "__cloud_env__" > /opt/config/cloud_env.txt
764 echo "__external_dns__" > /opt/config/external_dns.txt
765 echo "__so_repo__" > /opt/config/remote_repo.txt
767 # Download and run install script
768 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
770 chmod +x so_install.sh
774 # Message Router instantiation
775 mrouter_private_port:
776 type: OS::Neutron::Port
778 network: { get_resource: oam_onap }
779 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
782 type: OS::Neutron::FloatingIP
784 floating_network_id: { get_param: public_net_id }
785 port_id: { get_resource: mrouter_private_port }
788 type: OS::Nova::Server
790 image: { get_param: ubuntu_1404_image }
791 flavor: { get_param: flavor_large }
794 template: base-message-router
796 base: { get_param: vm_base_name }
797 key_name: { get_resource: vm_key }
799 - port: { get_resource: mrouter_private_port }
800 user_data_format: RAW
804 __nexus_repo__: { get_param: nexus_repo }
805 __nexus_docker_repo__: { get_param: nexus_docker_repo }
806 __nexus_username__: { get_param: nexus_username }
807 __nexus_password__: { get_param: nexus_password }
808 __artifacts_version__: { get_param: artifacts_version }
809 __dns_ip_addr__: { get_param: dns_ip_addr }
810 __gerrit_branch__: { get_param: mr_branch }
811 __cloud_env__: { get_param: cloud_env }
812 __external_dns__: { get_param: external_dns }
813 __mr_repo__: { get_param: mr_repo }
817 # Create configuration files
819 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
820 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
821 echo "__nexus_username__" > /opt/config/nexus_username.txt
822 echo "__nexus_password__" > /opt/config/nexus_password.txt
823 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
824 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
825 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
826 echo "__cloud_env__" > /opt/config/cloud_env.txt
827 echo "__external_dns__" > /opt/config/external_dns.txt
828 echo "__mr_repo__" > /opt/config/remote_repo.txt
830 # Download and run install script
831 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
833 chmod +x mr_install.sh
837 # Robot Framework instantiation
839 type: OS::Neutron::Port
841 network: { get_resource: oam_onap }
842 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
845 type: OS::Neutron::FloatingIP
847 floating_network_id: { get_param: public_net_id }
848 port_id: { get_resource: robot_private_port }
851 type: OS::Nova::Server
853 image: { get_param: ubuntu_1604_image }
854 flavor: { get_param: flavor_medium }
859 base: { get_param: vm_base_name }
860 key_name: { get_resource: vm_key }
862 - port: { get_resource: robot_private_port }
863 user_data_format: RAW
867 __nexus_repo__: { get_param: nexus_repo }
868 __nexus_docker_repo__: { get_param: nexus_docker_repo }
869 __nexus_username__: { get_param: nexus_username }
870 __nexus_password__: { get_param: nexus_password }
871 __network_name__: { get_attr: [oam_onap, name] }
872 __openstack_username__: { get_param: openstack_username }
873 __openstack_api_key__: { get_param : openstack_api_key }
874 __openstack_tenant_id__: { get_param: openstack_tenant_id }
875 __artifacts_version__: { get_param: artifacts_version }
876 __openstack_region__: { get_param: openstack_region }
877 __dns_ip_addr__: { get_param: dns_ip_addr }
878 __docker_version__: { get_param: mr_docker }
879 __gerrit_branch__: { get_param: mr_branch }
880 __cloud_env__: { get_param: cloud_env }
881 __keystone_url__: { get_param: keystone_url }
882 __aai1_ip_addr__: { get_param: aai1_ip_addr }
883 __aai2_ip_addr__: { get_param: aai2_ip_addr }
884 __appc_ip_addr__: { get_param: appc_ip_addr }
885 __dcae_ip_addr__: { get_param: dcae_ip_addr }
886 __so_ip_addr__: { get_param: so_ip_addr }
887 __mr_ip_addr__: { get_param: mr_ip_addr }
888 __policy_ip_addr__: { get_param: policy_ip_addr }
889 __portal_ip_addr__: { get_param: portal_ip_addr }
890 __sdc_ip_addr__: { get_param: sdc_ip_addr }
891 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
892 __vid_ip_addr__: { get_param: vid_ip_addr }
893 __clamp_ip_addr__: { get_param: clamp_ip_addr }
894 __openo_ip_addr__: { get_param: openo_ip_addr }
895 __external_dns__: { get_param: external_dns }
896 __vm_image_name__: { get_param: ubuntu_1404_image }
897 __vm_flavor__: { get_param: flavor_medium }
898 __public_net_id__: { get_param: public_net_id }
899 __script_version__: { get_param: artifacts_version }
900 __robot_repo__: { get_param: robot_repo }
904 # Create configuration files
906 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
907 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
908 echo "__nexus_username__" > /opt/config/nexus_username.txt
909 echo "__nexus_password__" > /opt/config/nexus_password.txt
910 echo "__network_name__" > /opt/config/network.txt
911 echo "__openstack_username__" > /opt/config/openstack_username.txt
912 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
913 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
914 echo "__openstack_region__" > /opt/config/region.txt
915 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
916 echo "__docker_version__" > /opt/config/docker_version.txt
917 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
918 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
919 echo "__keystone_url__" > /opt/config/keystone.txt
920 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
921 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
922 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
923 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
924 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
925 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
926 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
927 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
928 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
929 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
930 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
931 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
932 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
933 echo "__cloud_env__" > /opt/config/cloud_env.txt
934 echo "__external_dns__" > /opt/config/external_dns.txt
935 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
936 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
937 echo "__script_version__" > /opt/config/script_version.txt
938 echo "__public_net_id__" > /opt/config/public_net_id.txt
939 echo "__robot_repo__" > /opt/config/remote_repo.txt
941 # Download and run install script
942 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
944 chmod +x robot_install.sh
950 type: OS::Neutron::Port
952 network: { get_resource: oam_onap }
953 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
956 type: OS::Neutron::FloatingIP
958 floating_network_id: { get_param: public_net_id }
959 port_id: { get_resource: vid_private_port }
962 type: OS::Nova::Server
964 image: { get_param: ubuntu_1404_image }
965 flavor: { get_param: flavor_medium }
970 base: { get_param: vm_base_name }
971 key_name: { get_resource: vm_key }
973 - port: { get_resource: vid_private_port }
974 user_data_format: RAW
978 __nexus_repo__: { get_param: nexus_repo }
979 __nexus_docker_repo__: { get_param: nexus_docker_repo }
980 __nexus_username__: { get_param: nexus_username }
981 __nexus_password__: { get_param: nexus_password }
982 __artifacts_version__: { get_param: artifacts_version }
983 __dns_ip_addr__: { get_param: dns_ip_addr }
984 __docker_version__: { get_param: vid_docker }
985 __gerrit_branch__: { get_param: vid_branch }
986 __cloud_env__: { get_param: cloud_env }
987 __external_dns__: { get_param: external_dns }
988 __vid_repo__: { get_param: vid_repo }
992 # Create configuration files
994 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
995 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
996 echo "__nexus_username__" > /opt/config/nexus_username.txt
997 echo "__nexus_password__" > /opt/config/nexus_password.txt
998 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
999 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1000 echo "__docker_version__" > /opt/config/docker_version.txt
1001 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1002 echo "__cloud_env__" > /opt/config/cloud_env.txt
1003 echo "__external_dns__" > /opt/config/external_dns.txt
1004 echo "__vid_repo__" > /opt/config/remote_repo.txt
1006 # Download and run install script
1007 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
1009 chmod +x vid_install.sh
1013 # SDN-C instantiation
1015 type: OS::Neutron::Port
1017 network: { get_resource: oam_onap }
1018 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
1021 type: OS::Neutron::FloatingIP
1023 floating_network_id: { get_param: public_net_id }
1024 port_id: { get_resource: sdnc_private_port }
1027 type: OS::Nova::Server
1029 image: { get_param: ubuntu_1404_image }
1030 flavor: { get_param: flavor_large }
1035 base: { get_param: vm_base_name }
1036 key_name: { get_resource: vm_key }
1038 - port: { get_resource: sdnc_private_port }
1039 user_data_format: RAW
1043 __nexus_repo__: { get_param: nexus_repo }
1044 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1045 __nexus_username__: { get_param: nexus_username }
1046 __nexus_password__: { get_param: nexus_password }
1047 __artifacts_version__: { get_param: artifacts_version }
1048 __dns_ip_addr__: { get_param: dns_ip_addr }
1049 __docker_version__: { get_param: sdnc_docker }
1050 __gerrit_branch__: { get_param: sdnc_branch }
1051 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1052 __cloud_env__: { get_param: cloud_env }
1053 __external_dns__: { get_param: external_dns }
1054 __sdnc_repo__: { get_param: sdnc_repo }
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 "__artifacts_version__" > /opt/config/artifacts_version.txt
1065 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1066 echo "__docker_version__" > /opt/config/docker_version.txt
1067 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1068 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1069 echo "__cloud_env__" > /opt/config/cloud_env.txt
1070 echo "__external_dns__" > /opt/config/external_dns.txt
1071 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1073 # Download and run install script
1074 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1076 chmod +x sdnc_install.sh
1082 type: OS::Neutron::Port
1084 network: { get_resource: oam_onap }
1085 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1088 type: OS::Neutron::FloatingIP
1090 floating_network_id: { get_param: public_net_id }
1091 port_id: { get_resource: sdc_private_port }
1094 type: OS::Cinder::Volume
1100 type: OS::Nova::Server
1102 image: { get_param: ubuntu_1604_image }
1103 flavor: { get_param: flavor_xlarge }
1108 base: { get_param: vm_base_name }
1109 key_name: { get_resource: vm_key }
1111 - port: { get_resource: sdc_private_port }
1112 block_device_mapping:
1113 - device_name: /dev/vdb
1114 volume_id: {get_resource: sdc_volume_data}
1115 user_data_format: RAW
1119 __nexus_repo__: { get_param: nexus_repo }
1120 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1121 __nexus_username__: { get_param: nexus_username }
1122 __nexus_password__: { get_param: nexus_password }
1123 __env_name__: { get_param: dmaap_topic }
1124 __artifacts_version__: { get_param: artifacts_version }
1125 __dns_ip_addr__: { get_param: dns_ip_addr }
1126 __mr_ip_addr__: { get_param: mr_ip_addr }
1127 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1128 __docker_version__: { get_param: sdc_docker }
1129 __gerrit_branch__: { get_param: sdc_branch }
1130 __cloud_env__: { get_param: cloud_env }
1131 __external_dns__: { get_param: external_dns }
1132 __sdc_repo__: { get_param: sdc_repo }
1136 # Create configuration files
1137 mkdir -p /opt/config
1138 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1139 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1140 echo "__nexus_username__" > /opt/config/nexus_username.txt
1141 echo "__nexus_password__" > /opt/config/nexus_password.txt
1142 echo "__env_name__" > /opt/config/env_name.txt
1143 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1144 echo "__public_ip__" > /opt/config/public_ip.txt
1145 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1146 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1147 echo "__docker_version__" > /opt/config/docker_version.txt
1148 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1149 echo "__cloud_env__" > /opt/config/cloud_env.txt
1150 echo "__external_dns__" > /opt/config/external_dns.txt
1151 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1153 # Download and run install script
1154 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1156 chmod +x sdc_install.sh
1160 # PORTAL instantiation
1161 portal_private_port:
1162 type: OS::Neutron::Port
1164 network: { get_resource: oam_onap }
1165 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1168 type: OS::Neutron::FloatingIP
1170 floating_network_id: { get_param: public_net_id }
1171 port_id: { get_resource: portal_private_port }
1174 type: OS::Nova::Server
1176 image: { get_param: ubuntu_1404_image }
1177 flavor: { get_param: flavor_large }
1180 template: base-portal
1182 base: { get_param: vm_base_name }
1183 key_name: { get_resource: vm_key }
1185 - port: { get_resource: portal_private_port }
1186 user_data_format: RAW
1190 __nexus_repo__: { get_param: nexus_repo }
1191 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1192 __nexus_username__: { get_param: nexus_username }
1193 __nexus_password__: { get_param: nexus_password }
1194 __artifacts_version__: { get_param: artifacts_version }
1195 __dns_ip_addr__: { get_param: dns_ip_addr }
1196 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1197 __docker_version__: { get_param: portal_docker }
1198 __gerrit_branch__: { get_param: portal_branch }
1199 __cli_docker__: { get_param: cli_docker }
1200 __cloud_env__: { get_param: cloud_env }
1201 __external_dns__: { get_param: external_dns }
1202 __portal_repo__: { get_param: portal_repo }
1206 # Create configuration files
1207 mkdir -p /opt/config
1208 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1209 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1210 echo "__nexus_username__" > /opt/config/nexus_username.txt
1211 echo "__nexus_password__" > /opt/config/nexus_password.txt
1212 echo "__public_ip__" > /opt/config/public_ip.txt
1213 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1214 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1215 echo "__docker_version__" > /opt/config/docker_version.txt
1216 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1217 echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1218 echo "__cloud_env__" > /opt/config/cloud_env.txt
1219 echo "__external_dns__" > /opt/config/external_dns.txt
1220 echo "__portal_repo__" > /opt/config/remote_repo.txt
1222 # Download and run install script
1223 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1225 chmod +x portal_install.sh
1229 # DCAE Controller instantiation
1230 # dcae_c_private_port:
1231 # type: OS::Neutron::Port
1233 # network: { get_resource: oam_onap }
1234 # fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1236 # dcae_c_floating_ip:
1237 # type: OS::Neutron::FloatingIP
1239 # floating_network_id: { get_param: public_net_id }
1240 # port_id: { get_resource: dcae_c_private_port }
1243 # type: OS::Nova::Server
1245 # image: { get_param: ubuntu_1404_image }
1246 # flavor: { get_param: flavor_medium }
1249 # template: base-dcae-controller
1251 # base: { get_param: vm_base_name }
1252 # key_name: { get_resource: vm_key }
1254 # - port: { get_resource: dcae_c_private_port }
1255 # user_data_format: RAW
1259 # __nexus_repo__: { get_param: nexus_repo }
1260 # __nexus_docker_repo__: { get_param: nexus_docker_repo }
1261 # __nexus_username__: { get_param: nexus_username }
1262 # __nexus_password__: { get_param: nexus_password }
1263 # __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1264 # __gitlab_branch__: { get_param: gitlab_branch }
1265 # __dns_ip_addr__: { get_param: dns_ip_addr }
1266 # __dcae_zone__: { get_param: dcae_zone }
1267 # __dcae_state__: { get_param: dcae_state }
1268 # __artifacts_version__: { get_param: artifacts_version }
1269 # __tenant_id__: { get_param: openstack_tenant_id }
1270 # __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1271 # __openstack_user__: { get_param: openstack_username }
1272 # __openstack_password__: { get_param: openstack_api_key }
1273 # __openstack_auth_method__: { get_param: openstack_auth_method }
1274 # __key_name__: { get_param: key_name }
1275 # __rand_str__: { get_resource: random-str }
1276 # __pub_key__: { get_param: pub_key }
1277 # __nexus_repo_root__: { get_param: nexus_repo_root }
1278 # __openstack_region__: { get_param: openstack_region }
1279 # __horizon_url__: { get_param: horizon_url }
1280 # __keystone_url__: { get_param: keystone_url }
1281 # __docker_version__: { get_param: dcae_docker }
1282 # __gerrit_branch__: { get_param: dcae_branch }
1283 # __dcae_code_version__: { get_param: dcae_code_version }
1284 # __cloud_env__: { get_param: cloud_env }
1285 # __public_net_id__: { get_param: public_net_id }
1286 # __dcae_base_environment__: { get_param: dcae_base_environment }
1287 # __dcae_ip_addr__: { get_param: dcae_ip_addr }
1288 # __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1289 # __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1290 # __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1291 # __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1292 # __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1293 # __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1294 # __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1295 # __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1296 # __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1297 # __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1298 # __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1299 # __external_dns__: { get_param: external_dns }
1300 # __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1301 # __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1302 # __flavor_small__: { get_param: flavor_small }
1303 # __flavor_medium__: { get_param: flavor_medium }
1304 # __flavor_large__: { get_param: flavor_large }
1305 # __flavor_xlarge__: { get_param: flavor_xlarge }
1306 # __dcae_repo__: { get_param: dcae_repo }
1307 # __mr_repo__: { get_param: mr_repo }
1311 # Create configuration files
1312 # mkdir -p /opt/config
1313 # echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1314 # echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1315 # echo "__nexus_username__" > /opt/config/nexus_username.txt
1316 # echo "__nexus_password__" > /opt/config/nexus_password.txt
1317 # echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1318 # echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1319 # echo "__docker_version__" > /opt/config/docker_version.txt
1320 # echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1321 # echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1322 # echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1323 # echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1324 # echo "__dcae_state__" > /opt/config/dcae_state.txt
1325 # echo "__tenant_id__" > /opt/config/tenant_id.txt
1326 # echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1327 # echo "__openstack_user__" > /opt/config/openstack_user.txt
1328 # echo "__openstack_password__" > /opt/config/openstack_password.txt
1329 # echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1330 # echo "__key_name__" > /opt/config/key_name.txt
1331 # echo "__rand_str__" > /opt/config/rand_str.txt
1332 # echo "__pub_key__" > /opt/config/pub_key.txt
1333 # echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1334 # echo "__openstack_region__" > /opt/config/openstack_region.txt
1335 # echo "__horizon_url__" > /opt/config/horizon_url.txt
1336 # echo "__keystone_url__" > /opt/config/keystone_url.txt
1337 # echo "__cloud_env__" > /opt/config/cloud_env.txt
1338 # echo "__public_net_id__" > /opt/config/public_net_id.txt
1339 # echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1340 # echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1341 # echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1342 # echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1343 # echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1344 # echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1345 # echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1346 # echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1347 # echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1348 # echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1349 # echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1350 # echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1351 # echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1352 # echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1353 # echo "__external_dns__" > /opt/config/external_dns.txt
1354 # echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1355 # echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1356 # echo "__flavor_small__" > /opt/config/flavor_small.txt
1357 # echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1358 # echo "__flavor_large__" > /opt/config/flavor_large.txt
1359 # echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1360 # echo "__dcae_repo__" > /opt/config/remote_repo.txt
1361 # echo "__mr_repo__" > /opt/config/mr_repo.txt
1363 # Download and run install script
1364 # curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1366 # chmod +x dcae_install.sh
1370 # Policy Engine instantiation
1371 policy_private_port:
1372 type: OS::Neutron::Port
1374 network: { get_resource: oam_onap }
1375 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1378 type: OS::Neutron::FloatingIP
1380 floating_network_id: { get_param: public_net_id }
1381 port_id: { get_resource: policy_private_port }
1384 type: OS::Nova::Server
1386 image: { get_param: ubuntu_1404_image }
1387 flavor: { get_param: flavor_xlarge }
1390 template: base-policy
1392 base: { get_param: vm_base_name }
1393 key_name: { get_resource: vm_key }
1395 - port: { get_resource: policy_private_port }
1396 user_data_format: RAW
1400 __nexus_repo__: { get_param: nexus_repo }
1401 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1402 __nexus_username__: { get_param: nexus_username }
1403 __nexus_password__: { get_param: nexus_password }
1404 __artifacts_version__: { get_param: artifacts_version }
1405 __dns_ip_addr__: { get_param: dns_ip_addr }
1406 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1407 __docker_version__: { get_param: policy_docker }
1408 __gerrit_branch__: { get_param: policy_branch }
1409 __cloud_env__: { get_param: cloud_env }
1410 __external_dns__: { get_param: external_dns }
1411 __policy_repo__: { get_param: policy_repo }
1415 # Create configuration files
1416 mkdir -p /opt/config
1417 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1418 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1419 echo "__nexus_username__" > /opt/config/nexus_username.txt
1420 echo "__nexus_password__" > /opt/config/nexus_password.txt
1421 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1422 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1423 echo "__public_ip__" > /opt/config/public_ip.txt
1424 echo "__docker_version__" > /opt/config/docker_version.txt
1425 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1426 echo "__cloud_env__" > /opt/config/cloud_env.txt
1427 echo "__external_dns__" > /opt/config/external_dns.txt
1428 echo "__policy_repo__" > /opt/config/remote_repo.txt
1430 # Download and run install script
1431 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1433 chmod +x policy_install.sh
1437 # APP-C instantiation
1439 type: OS::Neutron::Port
1441 network: { get_resource: oam_onap }
1442 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1445 type: OS::Neutron::FloatingIP
1447 floating_network_id: { get_param: public_net_id }
1448 port_id: { get_resource: appc_private_port }
1451 type: OS::Nova::Server
1453 image: { get_param: ubuntu_1404_image }
1454 flavor: { get_param: flavor_large }
1459 base: { get_param: vm_base_name }
1460 key_name: { get_resource: vm_key }
1462 - port: { get_resource: appc_private_port }
1463 user_data_format: RAW
1467 __nexus_repo__: { get_param: nexus_repo }
1468 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1469 __nexus_username__: { get_param: nexus_username }
1470 __nexus_password__: { get_param: nexus_password }
1471 __dmaap_topic__: { get_param: dmaap_topic }
1472 __artifacts_version__: { get_param: artifacts_version }
1473 __dns_ip_addr__: { get_param: dns_ip_addr }
1474 __docker_version__: { get_param: appc_docker }
1475 __gerrit_branch__: { get_param: appc_branch }
1476 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1477 __cloud_env__: { get_param: cloud_env }
1478 __external_dns__: { get_param: external_dns }
1479 __appc_repo__: { get_param: appc_repo }
1483 # Create configuration files
1484 mkdir -p /opt/config
1485 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1486 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1487 echo "__nexus_username__" > /opt/config/nexus_username.txt
1488 echo "__nexus_password__" > /opt/config/nexus_password.txt
1489 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1490 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1491 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1492 echo "__docker_version__" > /opt/config/docker_version.txt
1493 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1494 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1495 echo "__cloud_env__" > /opt/config/cloud_env.txt
1496 echo "__external_dns__" > /opt/config/external_dns.txt
1497 echo "__appc_repo__" > /opt/config/remote_repo.txt
1499 # Download and run install script
1500 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1502 chmod +x appc_install.sh
1506 # CLAMP instantiation
1508 type: OS::Neutron::Port
1510 network: { get_resource: oam_onap }
1511 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1514 type: OS::Neutron::FloatingIP
1516 floating_network_id: { get_param: public_net_id }
1517 port_id: { get_resource: clamp_private_port }
1520 type: OS::Nova::Server
1522 image: { get_param: ubuntu_1604_image }
1523 flavor: { get_param: flavor_medium }
1526 template: base-clamp
1528 base: { get_param: vm_base_name }
1529 key_name: { get_resource: vm_key }
1531 - port: { get_resource: clamp_private_port }
1532 user_data_format: RAW
1536 __nexus_repo__: { get_param: nexus_repo }
1537 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1538 __nexus_username__: { get_param: nexus_username }
1539 __nexus_password__: { get_param: nexus_password }
1540 __openstack_username__: { get_param: openstack_username }
1541 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1542 __openstack_api_key__: { get_param: openstack_api_key }
1543 __openstack_region__: { get_param: openstack_region }
1544 __keystone_url__: { get_param: keystone_url }
1545 __dmaap_topic__: { get_param: dmaap_topic }
1546 __artifacts_version__: { get_param: artifacts_version }
1547 __dns_ip_addr__: { get_param: dns_ip_addr }
1548 __docker_version__: { get_param: clamp_docker }
1549 __gerrit_branch__: { get_param: clamp_branch }
1550 __cloud_env__: { get_param: cloud_env }
1551 __external_dns__: { get_param: external_dns }
1552 __clamp_repo__: { get_param: clamp_repo }
1556 # Create configuration files
1557 mkdir -p /opt/config
1558 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1559 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1560 echo "__nexus_username__" > /opt/config/nexus_username.txt
1561 echo "__nexus_password__" > /opt/config/nexus_password.txt
1562 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1563 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1564 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1565 echo "__openstack_username__" > /opt/config/openstack_username.txt
1566 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1567 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1568 echo "__openstack_region__" > /opt/config/openstack_region.txt
1569 echo "__keystone_url__" > /opt/config/keystone.txt
1570 echo "__docker_version__" > /opt/config/docker_version.txt
1571 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1572 echo "__cloud_env__" > /opt/config/cloud_env.txt
1573 echo "__external_dns__" > /opt/config/external_dns.txt
1574 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1576 # Download and run install script
1577 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1579 chmod +x clamp_install.sh
1583 # OPEN-O VM instantiation
1585 type: OS::Neutron::Port
1587 network: { get_resource: oam_onap }
1588 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1591 type: OS::Neutron::FloatingIP
1593 floating_network_id: { get_param: public_net_id }
1594 port_id: { get_resource: openo_private_port }
1597 type: OS::Nova::Server
1599 image: { get_param: ubuntu_1604_image }
1600 flavor: { get_param: flavor_xxlarge }
1603 template: base-multi-service
1605 base: { get_param: vm_base_name }
1606 key_name: { get_resource: vm_key }
1608 - port: { get_resource: openo_private_port }
1609 user_data_format: RAW
1613 __nexus_repo__: { get_param: nexus_repo }
1614 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1615 __nexus_username__: { get_param: nexus_username }
1616 __nexus_password__: { get_param: nexus_password }
1617 __artifacts_version__: { get_param: artifacts_version }
1618 __dns_ip_addr__: { get_param: dns_ip_addr }
1619 __oam_network_cidr__: { get_param: oam_network_cidr }
1620 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1621 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1622 __appc_ip_addr__: { get_param: appc_ip_addr }
1623 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1624 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1625 __so_ip_addr__: { get_param: so_ip_addr }
1626 __mr_ip_addr__: { get_param: mr_ip_addr }
1627 __policy_ip_addr__: { get_param: policy_ip_addr }
1628 __portal_ip_addr__: { get_param: portal_ip_addr }
1629 __robot_ip_addr__: { get_param: robot_ip_addr }
1630 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1631 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1632 __vid_ip_addr__: { get_param: vid_ip_addr }
1633 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1634 __openo_ip_addr__: { get_param: openo_ip_addr }
1635 __cloud_env__: { get_param: cloud_env }
1636 __external_dns__: { get_param: external_dns }
1637 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1638 __msb_docker__: { get_param: msb_docker }
1639 __mvim_docker__: { get_param: mvim_docker }
1640 __vfc_docker__: { get_param: vfc_docker }
1641 __uui_docker__: { get_param: uui_docker }
1642 __esr_docker__: { get_param: esr_docker }
1643 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1647 # Create configuration files
1648 mkdir -p /opt/config
1649 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1650 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1651 echo "__nexus_username__" > /opt/config/nexus_username.txt
1652 echo "__nexus_password__" > /opt/config/nexus_password.txt
1653 echo "__cloud_env__" > /opt/config/cloud_env.txt
1654 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1655 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1656 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1657 echo "__external_dns__" > /opt/config/external_dns.txt
1658 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1659 echo "__msb_docker__" > /opt/config/msb_docker.txt
1660 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1661 echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1662 echo "__uui_docker__" > /opt/config/uui_docker.txt
1663 echo "__esr_docker__" > /opt/config/esr_docker.txt
1664 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1666 # Create env file with the IP address of all ONAP components
1667 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1668 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1669 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1670 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1671 echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1672 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1673 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1674 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1675 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1676 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1677 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1678 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1679 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1680 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1681 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1683 # Download and run install script
1684 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1686 chmod +x openo_install.sh
1690 # DCAE GEN 2 Controller instantiation
1691 dcae_c_private_port:
1692 type: OS::Neutron::Port
1694 network: { get_resource: oam_onap }
1695 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1698 type: OS::Neutron::FloatingIP
1700 floating_network_id: { get_param: public_net_id }
1701 port_id: { get_resource: dcae_c_private_port }
1704 type: OS::Nova::Server
1706 image: { get_param: ubuntu_1604_image }
1707 flavor: { get_param: flavor_medium }
1710 template: base-dcae-bootstrap
1712 base: { get_param: vm_base_name }
1713 key_name: { get_resource: vm_key }
1715 - port: { get_resource: dcae_c_private_port }
1716 user_data_format: RAW
1720 __dcae_zone__: { get_param: dcae_zone }
1721 __rand_str__: { get_resource: random-str }
1723 __artifacts_version__: { get_param: artifacts_version }
1724 __docker_version__: { get_param: dcae_docker }
1725 __nexus_repo__: { get_param: nexus_repo }
1726 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1727 __nexus_username__: { get_param: nexus_username }
1728 __nexus_password__: { get_param: nexus_password }
1729 __dcae_repo__: { get_param: dcae_repo }
1730 __gerrit_branch__: { get_param: dcae_branch }
1731 # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1732 __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1733 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1734 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1735 __dns_ip_addr__: { get_param: dns_ip_addr }
1736 __external_dns__: { get_param: external_dns }
1737 # conf for the OpensStack env where DCAE is deployed
1738 __dcaeos_cloud_env__: { get_param: dcaeos_cloud_env }
1739 __dcaeos_keystone_url__: { get_param: dcaeos_keystone_url }
1740 __dcaeos_openstack_region__: { get_param: dcaeos_openstack_region }
1741 __dcaeos_tenant_id__: { get_param: dcaeos_openstack_tenant_id }
1742 __dcaeos_openstack_user__: { get_param: dcaeos_openstack_username }
1743 __dcaeos_openstack_password__: { get_param: dcaeos_openstack_password }
1744 __dcaeos_key_name__: { get_param: dcaeos_dcae_key_name }
1745 __dcaeos_pub_key__: { get_param: dcaeos_dcae_pub_key }
1746 __dcaeos_private_key__: { get_param: dcaeos_private_key }
1747 __dcaeos_openstack_private_network_name__: { get_param: dcaeos_openstack_private_network_name }
1748 __dcaeos_public_net_id__: { get_param: dcaeos_public_net_id }
1749 __dcaeos_ubuntu_1604_image__: { get_param: dcaeos_ubuntu_1604_image }
1750 __dcaeos_centos_7_image__: { get_param: dcaeos_centos_7_image }
1751 __dcaeos_security_group__ : { get_param: dcaeos_security_group }
1752 __dcaeos_flavor_id__: { get_param: dcaeos_flavor_id }
1754 __mr_ip_addr__: { get_param: mr_ip_addr }
1755 __policy_ip_addr__: { get_param: policy_ip_addr }
1756 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1758 __dns_floating_ip_addr__: { get_attr: [dns_floating_ip, floating_ip_address] }
1759 __aai1_floating_ip_addr__: { get_attr: [aai1_floating_ip, floating_ip_address] }
1760 __aai2_floating_ip_addr__: { get_attr: [aai2_floating_ip, floating_ip_address] }
1761 __so_floating_ip_addr__: { get_attr: [so_floating_ip, floating_ip_address] }
1762 __mrouter_floating_ip_addr__: { get_attr: [mrouter_floating_ip, floating_ip_address] }
1763 __robot_floating_ip_addr__: { get_attr: [robot_floating_ip, floating_ip_address] }
1764 __vid_floating_ip_addr__: { get_attr: [vid_floating_ip, floating_ip_address] }
1765 __sdnc_floating_ip_addr__: { get_attr: [sdnc_floating_ip, floating_ip_address] }
1766 __sdc_floating_ip_addr__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1767 __portal_floating_ip_addr__: { get_attr: [portal_floating_ip, floating_ip_address] }
1768 __policy_floating_ip_addr__: { get_attr: [policy_floating_ip, floating_ip_address] }
1769 __appc_floating_ip_addr__: { get_attr: [appc_floating_ip, floating_ip_address] }
1770 __clamp_floating_ip_addr__: { get_attr: [clamp_floating_ip, floating_ip_address] }
1771 __openo_floating_ip_addr__: { get_attr: [openo_floating_ip, floating_ip_address] }
1772 __dcae_c_floating_ip_addr__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1777 # Create configuration files
1778 mkdir -p /opt/config
1779 echo "__rand_str__" > /opt/config/dcae_zone.txt
1780 echo "__rand_str__" > /opt/config/rand_str.txt
1782 echo "__docker_version__" > /opt/config/docker_version.txt
1783 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1784 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1785 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1786 echo "__nexus_username__" > /opt/config/nexus_username.txt
1787 echo "__nexus_password__" > /opt/config/nexus_password.txt
1788 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1789 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1790 # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1791 echo "__mac_addr__" > /opt/config/mac_addr.txt
1792 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1793 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1794 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1795 echo "__external_dns__" > /opt/config/external_dns.txt
1796 # conf for the OpensStack env where DCAE is deployed
1797 echo "__dcaeos_cloud_env__" > /opt/config/cloud_env.txt
1798 echo "__dcaeos_keystone_url__" > /opt/config/keystone_url.txt
1799 echo "__dcaeos_openstack_region__" > /opt/config/openstack_region.txt
1800 echo "__dcaeos_tenant_id__" > /opt/config/tenant_id.txt
1801 echo "__dcaeos_tenant_id__" > /opt/config/tenant_name.txt
1802 echo "__dcaeos_openstack_user__" > /opt/config/openstack_user.txt
1803 echo "__dcaeos_openstack_password__" > /opt/config/openstack_password.txt
1804 echo "__dcaeos_key_name__" > /opt/config/key_name.txt
1805 echo "__dcaeos_pub_key__" > /opt/config/pub_key.txt
1806 echo "__dcaeos_private_key__" > /opt/config/priv_key
1807 echo "__dcaeos_openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1808 echo "__dcaeos_public_net_id__" > /opt/config/public_net_id.txt
1809 echo "__dcaeos_ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1810 echo "__dcaeos_centos_7_image__" > /opt/config/centos_7_image.txt
1811 echo "__dcaeos_security_group__" > /opt/config/security_group.txt
1812 echo "__dcaeos_flavor_id__" > /opt/config/flavor_id.txt
1813 # fixed private IP addresses of other ONAP components
1814 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1815 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
1816 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
1818 echo "__dns_floating_ip_addr__" > /opt/config/dns_floating_ip_addr.txt
1819 echo "__aai1_floating_ip_addr__" > /opt/config/aai1_floating_ip_addr.txt
1820 echo "__aai2_floating_ip_addr__" > /opt/config/aai2_floating_ip_addr.txt
1821 echo "__so_floating_ip_addr__" > /opt/config/so_floating_ip_addr.txt
1822 echo "__mrouter_floating_ip_addr__" > /opt/config/mrouter_floating_ip_addr.txt
1823 echo "__robot_floating_ip_addr__" > /opt/config/robot_floating_ip_addr.txt
1824 echo "__vid_floating_ip_addr__" > /opt/config/vid_floating_ip_addr.txt
1825 echo "__sdnc_floating_ip_addr__" > /opt/config/sdnc_floating_ip_addr.txt
1826 echo "__sdc_floating_ip_addr__" > /opt/config/sdc_floating_ip_addr.txt
1827 echo "__portal_floating_ip_addr__" > /opt/config/portal_floating_ip_addr.txt
1828 echo "__policy_floating_ip_addr__" > /opt/config/policy_floating_ip_addr.txt
1829 echo "__appc_floating_ip_addr__" > /opt/config/appc_floating_ip_addr.txt
1830 echo "__clamp_floating_ip_addr__" > /opt/config/clamp_floating_ip_addr.txt
1831 echo "__openo_floating_ip_addr__" > /opt/config/opoeno_floating_ip_addr.txt
1832 echo "__dcae_c_floating_ip_addr__" > /opt/config/dcae_c_floating_ip_addr.txt
1834 # Download and run install script
1835 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1837 chmod +x dcae2_install.sh