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: The ID of the Public network for floating IP address allocation
49 description: The name of the Public network referred by public_net_id
53 description: Name of the Ubuntu 14.04 image
57 description: Name of the Ubuntu 16.04 image
61 description: Name of the Small Flavor supported by the cloud provider
65 description: Name of the Medium Flavor supported by the cloud provider
69 description: Name of the Large Flavor supported by the cloud provider
73 description: Name of the Extra Large Flavor supported by the cloud provider
77 description: Name of the Extra Extra Large Flavor supported by the cloud provider
81 description: Base name of ONAP VMs
85 description: Public/Private key pair name
89 description: Public key to be installed on the compute instance
93 description: Complete URL for the Nexus repository.
97 description: Complete URL for the Nexus repository for docker images.
101 description: Nexus Repository username
105 description: Nexus Repository Password
109 description: Artifacts version of ONAP components
113 description: DMaaP Topic name
117 description: OpenStack tenant ID
119 openstack_tenant_name:
121 description: OpenStack tenant name (matching with the openstack_tenant_id)
125 description: OpenStack username
127 openstack_auth_method:
129 description: OpenStack authentication method (password VS. api-key)
133 description: OpenStack password or API Key
137 description: URL of OpenStack Horizon
141 description: URL of OpenStack Keystone
145 description: Cloud Provider Name in lower case
149 description: Region where the DCAE controller will spin the VMs
151 ######################
153 # Network parameters #
155 ######################
158 type: comma_delimited_list
159 description: List of External DNS for OAM ONAP network
163 description: Public IP of the external DNS for ONAP network
167 description: the forwarder address for setting up ONAP's private DNS server
171 description: CIDR of the OAM ONAP network
173 ### Private IP addresses ###
205 ###########################
207 # Parameters used by DCAE #
209 ###########################
211 dnsaas_config_enabled:
213 description: whether the DNSaaS configuration section is enabled
217 description: the region of the cloud instance providing the Designate DNS as a Service
221 description: the keystone URL of the cloud instance providing the Designate DNS as a Service
225 description: the username of the cloud instance providing the Designate DNS as a Service
229 description: the password of the cloud instance providing the Designate DNS as a Service
233 description: the name of the tenant in the cloud instance providing the Designate DNS as a Service
237 description: the keystone URL for DCAE to use (via MultiCloud)
241 description: the private key of the key-apir used between the DCAE bootstrap container and DCAE VMs
245 description: the prublic key of the key-apir used between the DCAE bootstrap container and DCAE VMs
249 description: the id/name of the CentOS 7 VM imange
253 description: the top level domain to register DCAE VMs (the zone will be random-str.dcae_domain)
255 #####################
257 # ONAP repositories #
259 #####################
286 ################################
288 # Docker versions and branches #
290 ################################
330 vfc_ztevmanagerdriver_docker:
332 vfc_ztesdncdriver_docker:
340 vfc_resmanagement_docker:
346 vfc_jujudriver_docker:
348 vfc_gvnfmdriver_docker:
350 vfc_emsdriver_docker:
354 vfc_wfengine_mgrservice_docker:
356 vfc_wfengine_activiti_docker:
393 type: OS::Heat::RandomString
397 # Public key used to access ONAP components
399 type: OS::Nova::KeyPair
405 base: { get_param: key_name }
406 rand: { get_resource: random-str }
407 public_key: { get_param: pub_key }
408 save_private_key: false
411 # ONAP security group
413 type: OS::Neutron::SecurityGroup
420 rand: { get_resource: random-str }
421 description: security group used by ONAP
433 port_range_max: 65535
436 port_range_max: 65535
440 # ONAP management private network
442 type: OS::Neutron::Net
446 template: oam_onap_rand
448 rand: { get_resource: random-str }
451 type: OS::Neutron::Subnet
455 template: oam_onap_rand
457 rand: { get_resource: random-str }
458 network_id: { get_resource: oam_onap }
459 cidr: { get_param: oam_network_cidr }
460 dns_nameservers: { get_param: dns_list }
463 type: OS::Neutron::Router
465 external_gateway_info:
466 network: { get_param: public_net_id }
469 type: OS::Neutron::RouterInterface
471 router_id: { get_resource: router }
472 subnet_id: { get_resource: oam_onap_subnet }
475 # DNS Server instantiation
477 type: OS::Neutron::Port
479 network: { get_resource: oam_onap }
480 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
483 type: OS::Neutron::FloatingIP
485 floating_network_id: { get_param: public_net_id }
486 port_id: { get_resource: dns_private_port }
489 type: OS::Nova::Server
491 image: { get_param: ubuntu_1404_image }
492 flavor: { get_param: flavor_small }
495 template: base-dns-server
497 base: { get_param: vm_base_name }
498 key_name: { get_resource: vm_key }
500 - port: { get_resource: dns_private_port }
501 user_data_format: RAW
505 __nexus_repo__: { get_param: nexus_repo }
506 __artifacts_version__: { get_param: artifacts_version }
507 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
508 __dns_ip_addr__: { get_param: dns_ip_addr }
509 __aai1_ip_addr__: { get_param: aai1_ip_addr }
510 __aai2_ip_addr__: { get_param: aai2_ip_addr }
511 __appc_ip_addr__: { get_param: appc_ip_addr }
512 __dcae_ip_addr__: { get_param: dcae_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 }
525 __dns_forwarder__: { get_param: dns_forwarder }
529 # Create configuration files
531 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
532 echo "__cloud_env__" > /opt/config/cloud_env.txt
533 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
534 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
535 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
536 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
537 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
538 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
539 echo "__dcae_ip_addr__" > /opt/config/dcae_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
551 echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
553 # Download and run install script
554 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
556 chmod +x dns_install.sh
560 # A&AI instantiation (2 VMs)
562 type: OS::Neutron::Port
564 network: { get_resource: oam_onap }
565 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
568 type: OS::Neutron::FloatingIP
570 floating_network_id: { get_param: public_net_id }
571 port_id: { get_resource: aai1_private_port }
574 type: OS::Nova::Server
577 image: { get_param: ubuntu_1404_image }
578 flavor: { get_param: flavor_xlarge }
581 template: base-aai-inst1
583 base: { get_param: vm_base_name }
584 key_name: { get_resource: vm_key }
586 - port: { get_resource: aai1_private_port }
587 user_data_format: RAW
591 __nexus_repo__: { get_param: nexus_repo }
592 __nexus_docker_repo__: { get_param: nexus_docker_repo }
593 __nexus_username__: { get_param: nexus_username }
594 __nexus_password__: { get_param: nexus_password }
595 __dmaap_topic__: { get_param: dmaap_topic }
596 __artifacts_version__: { get_param: artifacts_version }
597 __dns_ip_addr__: { get_param: dns_ip_addr }
598 __docker_version__: { get_param: aai_docker }
599 __aai_sparky_docker__ : { get_param: aai_sparky_docker }
600 __gerrit_branch__: { get_param: aai_branch }
601 __cloud_env__: { get_param: cloud_env }
602 __external_dns__: { get_param: external_dns }
603 __aai_repo__: { get_param: aai_repo }
607 # Create configuration files
609 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
610 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
611 echo "__nexus_username__" > /opt/config/nexus_username.txt
612 echo "__nexus_password__" > /opt/config/nexus_password.txt
613 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
614 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
615 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
616 echo "__docker_version__" > /opt/config/docker_version.txt
617 echo "__aai_sparky_docker__" > /opt/config/sparky_version.txt
618 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
619 echo "aai_instance_1" > /opt/config/aai_instance.txt
620 echo "__cloud_env__" > /opt/config/cloud_env.txt
621 echo "__external_dns__" > /opt/config/external_dns.txt
622 echo "__aai_repo__" > /opt/config/remote_repo.txt
624 # Download and run install script
625 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
627 chmod +x aai_install.sh
632 type: OS::Neutron::Port
634 network: { get_resource: oam_onap }
635 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
638 type: OS::Neutron::FloatingIP
640 floating_network_id: { get_param: public_net_id }
641 port_id: { get_resource: aai2_private_port }
644 type: OS::Nova::Server
646 image: { get_param: ubuntu_1404_image }
647 flavor: { get_param: flavor_xlarge }
650 template: base-aai-inst2
652 base: { get_param: vm_base_name }
653 key_name: { get_resource: vm_key }
655 - port: { get_resource: aai2_private_port }
656 user_data_format: RAW
660 __nexus_repo__: { get_param: nexus_repo }
661 __nexus_docker_repo__: { get_param: nexus_docker_repo }
662 __nexus_username__: { get_param: nexus_username }
663 __nexus_password__: { get_param: nexus_password }
664 __dmaap_topic__: { get_param: dmaap_topic }
665 __artifacts_version__: { get_param: artifacts_version }
666 __dns_ip_addr__: { get_param: dns_ip_addr }
667 __docker_version__: { get_param: aai_docker }
668 __gerrit_branch__: { get_param: aai_branch }
669 __cloud_env__: { get_param: cloud_env }
670 __external_dns__: { get_param: external_dns }
671 __aai_repo__: { get_param: aai_repo }
675 # Create configuration files
677 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
678 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
679 echo "__nexus_username__" > /opt/config/nexus_username.txt
680 echo "__nexus_password__" > /opt/config/nexus_password.txt
681 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
682 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
683 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
684 echo "__docker_version__" > /opt/config/docker_version.txt
685 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
686 echo "aai_instance_2" > /opt/config/aai_instance.txt
687 echo "__cloud_env__" > /opt/config/cloud_env.txt
688 echo "__external_dns__" > /opt/config/external_dns.txt
689 echo "__aai_repo__" > /opt/config/remote_repo.txt
691 # Download and run install script
692 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
694 chmod +x aai_install.sh
700 type: OS::Neutron::Port
702 network: { get_resource: oam_onap }
703 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
706 type: OS::Neutron::FloatingIP
708 floating_network_id: { get_param: public_net_id }
709 port_id: { get_resource: so_private_port }
712 type: OS::Nova::Server
714 image: { get_param: ubuntu_1604_image }
715 flavor: { get_param: flavor_large }
720 base: { get_param: vm_base_name }
721 key_name: { get_resource: vm_key }
723 - port: { get_resource: so_private_port }
724 user_data_format: RAW
728 __nexus_repo__: { get_param: nexus_repo }
729 __nexus_docker_repo__: { get_param: nexus_docker_repo }
730 __nexus_username__: { get_param: nexus_username }
731 __nexus_password__: { get_param: nexus_password }
732 __openstack_username__: { get_param: openstack_username }
733 __openstack_tenant_id__: { get_param: openstack_tenant_id }
734 __openstack_api_key__: { get_param: openstack_api_key }
735 __openstack_region__: { get_param: openstack_region }
736 __keystone_url__: { get_param: keystone_url }
737 __dmaap_topic__: { get_param: dmaap_topic }
738 __artifacts_version__: { get_param: artifacts_version }
739 __dns_ip_addr__: { get_param: dns_ip_addr }
740 __openo_ip__: { get_param: openo_ip_addr }
741 __docker_version__: { get_param: so_docker }
742 __gerrit_branch__: { get_param: so_branch }
743 __cloud_env__: { get_param: cloud_env }
744 __external_dns__: { get_param: external_dns }
745 __so_repo__: { get_param: so_repo }
749 # Create configuration files
751 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
752 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
753 echo "__nexus_username__" > /opt/config/nexus_username.txt
754 echo "__nexus_password__" > /opt/config/nexus_password.txt
755 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
756 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
757 echo "__openo_ip__" > /opt/config/openo_ip.txt
758 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
759 echo "__openstack_username__" > /opt/config/openstack_username.txt
760 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
761 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
762 echo "__openstack_region__" > /opt/config/openstack_region.txt
763 echo "__keystone_url__" > /opt/config/keystone.txt
764 echo "__docker_version__" > /opt/config/docker_version.txt
765 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
766 echo "__cloud_env__" > /opt/config/cloud_env.txt
767 echo "__external_dns__" > /opt/config/external_dns.txt
768 echo "__so_repo__" > /opt/config/remote_repo.txt
770 # Download and run install script
771 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
773 chmod +x so_install.sh
777 # Message Router instantiation
778 mrouter_private_port:
779 type: OS::Neutron::Port
781 network: { get_resource: oam_onap }
782 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
785 type: OS::Neutron::FloatingIP
787 floating_network_id: { get_param: public_net_id }
788 port_id: { get_resource: mrouter_private_port }
791 type: OS::Nova::Server
793 image: { get_param: ubuntu_1404_image }
794 flavor: { get_param: flavor_large }
797 template: base-message-router
799 base: { get_param: vm_base_name }
800 key_name: { get_resource: vm_key }
802 - port: { get_resource: mrouter_private_port }
803 user_data_format: RAW
807 __nexus_repo__: { get_param: nexus_repo }
808 __nexus_docker_repo__: { get_param: nexus_docker_repo }
809 __nexus_username__: { get_param: nexus_username }
810 __nexus_password__: { get_param: nexus_password }
811 __artifacts_version__: { get_param: artifacts_version }
812 __dns_ip_addr__: { get_param: dns_ip_addr }
813 __gerrit_branch__: { get_param: mr_branch }
814 __cloud_env__: { get_param: cloud_env }
815 __external_dns__: { get_param: external_dns }
816 __mr_repo__: { get_param: mr_repo }
820 # Create configuration files
822 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
823 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
824 echo "__nexus_username__" > /opt/config/nexus_username.txt
825 echo "__nexus_password__" > /opt/config/nexus_password.txt
826 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
827 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
828 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
829 echo "__cloud_env__" > /opt/config/cloud_env.txt
830 echo "__external_dns__" > /opt/config/external_dns.txt
831 echo "__mr_repo__" > /opt/config/remote_repo.txt
833 # Download and run install script
834 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
836 chmod +x mr_install.sh
840 # Robot Framework instantiation
842 type: OS::Neutron::Port
844 network: { get_resource: oam_onap }
845 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
848 type: OS::Neutron::FloatingIP
850 floating_network_id: { get_param: public_net_id }
851 port_id: { get_resource: robot_private_port }
854 type: OS::Nova::Server
856 image: { get_param: ubuntu_1604_image }
857 flavor: { get_param: flavor_medium }
862 base: { get_param: vm_base_name }
863 key_name: { get_resource: vm_key }
865 - port: { get_resource: robot_private_port }
866 user_data_format: RAW
870 __nexus_repo__: { get_param: nexus_repo }
871 __nexus_docker_repo__: { get_param: nexus_docker_repo }
872 __nexus_username__: { get_param: nexus_username }
873 __nexus_password__: { get_param: nexus_password }
874 __network_name__: { get_attr: [oam_onap, name] }
875 __openstack_username__: { get_param: openstack_username }
876 __openstack_api_key__: { get_param : openstack_api_key }
877 __openstack_tenant_id__: { get_param: openstack_tenant_id }
878 __artifacts_version__: { get_param: artifacts_version }
879 __openstack_region__: { get_param: openstack_region }
880 __dns_ip_addr__: { get_param: dns_ip_addr }
881 __gerrit_branch__: { get_param: mr_branch }
882 __cloud_env__: { get_param: cloud_env }
883 __keystone_url__: { get_param: keystone_url }
884 __aai1_ip_addr__: { get_param: aai1_ip_addr }
885 __aai2_ip_addr__: { get_param: aai2_ip_addr }
886 __appc_ip_addr__: { get_param: appc_ip_addr }
887 __dcae_ip_addr__: { get_param: dcae_ip_addr }
888 __so_ip_addr__: { get_param: so_ip_addr }
889 __mr_ip_addr__: { get_param: mr_ip_addr }
890 __policy_ip_addr__: { get_param: policy_ip_addr }
891 __portal_ip_addr__: { get_param: portal_ip_addr }
892 __sdc_ip_addr__: { get_param: sdc_ip_addr }
893 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
894 __vid_ip_addr__: { get_param: vid_ip_addr }
895 __clamp_ip_addr__: { get_param: clamp_ip_addr }
896 __openo_ip_addr__: { get_param: openo_ip_addr }
897 __external_dns__: { get_param: external_dns }
898 __vm_image_name__: { get_param: ubuntu_1404_image }
899 __vm_flavor__: { get_param: flavor_medium }
900 __public_net_id__: { get_param: public_net_id }
901 __script_version__: { get_param: artifacts_version }
902 __robot_repo__: { get_param: robot_repo }
906 # Create configuration files
908 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
909 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
910 echo "__nexus_username__" > /opt/config/nexus_username.txt
911 echo "__nexus_password__" > /opt/config/nexus_password.txt
912 echo "__network_name__" > /opt/config/network.txt
913 echo "__openstack_username__" > /opt/config/openstack_username.txt
914 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
915 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
916 echo "__openstack_region__" > /opt/config/region.txt
917 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
918 echo "__docker_version__" > /opt/config/docker_version.txt
919 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
920 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
921 echo "__keystone_url__" > /opt/config/keystone.txt
922 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
923 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
924 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
925 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
926 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
927 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
928 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
929 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
930 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
931 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
932 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
933 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
934 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
935 echo "__cloud_env__" > /opt/config/cloud_env.txt
936 echo "__external_dns__" > /opt/config/external_dns.txt
937 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
938 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
939 echo "__script_version__" > /opt/config/script_version.txt
940 echo "__public_net_id__" > /opt/config/public_net_id.txt
941 echo "__robot_repo__" > /opt/config/remote_repo.txt
943 # Download and run install script
944 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
946 chmod +x robot_install.sh
952 type: OS::Neutron::Port
954 network: { get_resource: oam_onap }
955 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
958 type: OS::Neutron::FloatingIP
960 floating_network_id: { get_param: public_net_id }
961 port_id: { get_resource: vid_private_port }
964 type: OS::Nova::Server
966 image: { get_param: ubuntu_1404_image }
967 flavor: { get_param: flavor_medium }
972 base: { get_param: vm_base_name }
973 key_name: { get_resource: vm_key }
975 - port: { get_resource: vid_private_port }
976 user_data_format: RAW
980 __nexus_repo__: { get_param: nexus_repo }
981 __nexus_docker_repo__: { get_param: nexus_docker_repo }
982 __nexus_username__: { get_param: nexus_username }
983 __nexus_password__: { get_param: nexus_password }
984 __artifacts_version__: { get_param: artifacts_version }
985 __dns_ip_addr__: { get_param: dns_ip_addr }
986 __docker_version__: { get_param: vid_docker }
987 __gerrit_branch__: { get_param: vid_branch }
988 __cloud_env__: { get_param: cloud_env }
989 __external_dns__: { get_param: external_dns }
990 __vid_repo__: { get_param: vid_repo }
994 # Create configuration files
996 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
997 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
998 echo "__nexus_username__" > /opt/config/nexus_username.txt
999 echo "__nexus_password__" > /opt/config/nexus_password.txt
1000 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1001 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1002 echo "__docker_version__" > /opt/config/docker_version.txt
1003 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1004 echo "__cloud_env__" > /opt/config/cloud_env.txt
1005 echo "__external_dns__" > /opt/config/external_dns.txt
1006 echo "__vid_repo__" > /opt/config/remote_repo.txt
1008 # Download and run install script
1009 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
1011 chmod +x vid_install.sh
1015 # SDN-C instantiation
1017 type: OS::Neutron::Port
1019 network: { get_resource: oam_onap }
1020 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
1023 type: OS::Neutron::FloatingIP
1025 floating_network_id: { get_param: public_net_id }
1026 port_id: { get_resource: sdnc_private_port }
1029 type: OS::Nova::Server
1031 image: { get_param: ubuntu_1404_image }
1032 flavor: { get_param: flavor_large }
1037 base: { get_param: vm_base_name }
1038 key_name: { get_resource: vm_key }
1040 - port: { get_resource: sdnc_private_port }
1041 user_data_format: RAW
1045 __nexus_repo__: { get_param: nexus_repo }
1046 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1047 __nexus_username__: { get_param: nexus_username }
1048 __nexus_password__: { get_param: nexus_password }
1049 __artifacts_version__: { get_param: artifacts_version }
1050 __dns_ip_addr__: { get_param: dns_ip_addr }
1051 __docker_version__: { get_param: sdnc_docker }
1052 __gerrit_branch__: { get_param: sdnc_branch }
1053 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1054 __cloud_env__: { get_param: cloud_env }
1055 __external_dns__: { get_param: external_dns }
1056 __sdnc_repo__: { get_param: sdnc_repo }
1060 # Create configuration files
1061 mkdir -p /opt/config
1062 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1063 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1064 echo "__nexus_username__" > /opt/config/nexus_username.txt
1065 echo "__nexus_password__" > /opt/config/nexus_password.txt
1066 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1067 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1068 echo "__docker_version__" > /opt/config/docker_version.txt
1069 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1070 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1071 echo "__cloud_env__" > /opt/config/cloud_env.txt
1072 echo "__external_dns__" > /opt/config/external_dns.txt
1073 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1075 # Download and run install script
1076 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1078 chmod +x sdnc_install.sh
1084 type: OS::Neutron::Port
1086 network: { get_resource: oam_onap }
1087 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1090 type: OS::Neutron::FloatingIP
1092 floating_network_id: { get_param: public_net_id }
1093 port_id: { get_resource: sdc_private_port }
1096 type: OS::Cinder::Volume
1102 type: OS::Nova::Server
1104 image: { get_param: ubuntu_1604_image }
1105 flavor: { get_param: flavor_xlarge }
1110 base: { get_param: vm_base_name }
1111 key_name: { get_resource: vm_key }
1113 - port: { get_resource: sdc_private_port }
1114 block_device_mapping:
1115 - device_name: /dev/vdb
1116 volume_id: {get_resource: sdc_volume_data}
1117 user_data_format: RAW
1121 __nexus_repo__: { get_param: nexus_repo }
1122 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1123 __nexus_username__: { get_param: nexus_username }
1124 __nexus_password__: { get_param: nexus_password }
1125 __env_name__: { get_param: dmaap_topic }
1126 __artifacts_version__: { get_param: artifacts_version }
1127 __dns_ip_addr__: { get_param: dns_ip_addr }
1128 __mr_ip_addr__: { get_param: mr_ip_addr }
1129 __private_ip__: { get_param: sdc_ip_addr }
1130 __docker_version__: { get_param: sdc_docker }
1131 __gerrit_branch__: { get_param: sdc_branch }
1132 __cloud_env__: { get_param: cloud_env }
1133 __external_dns__: { get_param: external_dns }
1134 __sdc_repo__: { get_param: sdc_repo }
1138 # Create configuration files
1139 mkdir -p /opt/config
1140 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1141 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1142 echo "__nexus_username__" > /opt/config/nexus_username.txt
1143 echo "__nexus_password__" > /opt/config/nexus_password.txt
1144 echo "__env_name__" > /opt/config/env_name.txt
1145 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1146 echo "__private_ip__" > /opt/config/private_ip.txt
1147 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1148 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1149 echo "__docker_version__" > /opt/config/docker_version.txt
1150 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1151 echo "__cloud_env__" > /opt/config/cloud_env.txt
1152 echo "__external_dns__" > /opt/config/external_dns.txt
1153 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1155 # Download and run install script
1156 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1158 chmod +x sdc_install.sh
1162 # PORTAL instantiation
1163 portal_private_port:
1164 type: OS::Neutron::Port
1166 network: { get_resource: oam_onap }
1167 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1170 type: OS::Neutron::FloatingIP
1172 floating_network_id: { get_param: public_net_id }
1173 port_id: { get_resource: portal_private_port }
1176 type: OS::Nova::Server
1178 image: { get_param: ubuntu_1404_image }
1179 flavor: { get_param: flavor_large }
1182 template: base-portal
1184 base: { get_param: vm_base_name }
1185 key_name: { get_resource: vm_key }
1187 - port: { get_resource: portal_private_port }
1188 user_data_format: RAW
1192 __nexus_repo__: { get_param: nexus_repo }
1193 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1194 __nexus_username__: { get_param: nexus_username }
1195 __nexus_password__: { get_param: nexus_password }
1196 __artifacts_version__: { get_param: artifacts_version }
1197 __dns_ip_addr__: { get_param: dns_ip_addr }
1198 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1199 __docker_version__: { get_param: portal_docker }
1200 __gerrit_branch__: { get_param: portal_branch }
1201 __cli_docker__: { get_param: cli_docker }
1202 __cloud_env__: { get_param: cloud_env }
1203 __external_dns__: { get_param: external_dns }
1204 __portal_repo__: { get_param: portal_repo }
1208 # Create configuration files
1209 mkdir -p /opt/config
1210 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1211 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1212 echo "__nexus_username__" > /opt/config/nexus_username.txt
1213 echo "__nexus_password__" > /opt/config/nexus_password.txt
1214 echo "__public_ip__" > /opt/config/public_ip.txt
1215 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1216 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1217 echo "__docker_version__" > /opt/config/docker_version.txt
1218 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1219 echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1220 echo "__cloud_env__" > /opt/config/cloud_env.txt
1221 echo "__external_dns__" > /opt/config/external_dns.txt
1222 echo "__portal_repo__" > /opt/config/remote_repo.txt
1224 # Download and run install script
1225 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1227 chmod +x portal_install.sh
1231 # Policy Engine instantiation
1232 policy_private_port:
1233 type: OS::Neutron::Port
1235 network: { get_resource: oam_onap }
1236 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1239 type: OS::Neutron::FloatingIP
1241 floating_network_id: { get_param: public_net_id }
1242 port_id: { get_resource: policy_private_port }
1245 type: OS::Nova::Server
1247 image: { get_param: ubuntu_1404_image }
1248 flavor: { get_param: flavor_xlarge }
1251 template: base-policy
1253 base: { get_param: vm_base_name }
1254 key_name: { get_resource: vm_key }
1256 - port: { get_resource: policy_private_port }
1257 user_data_format: RAW
1261 __nexus_repo__: { get_param: nexus_repo }
1262 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1263 __nexus_username__: { get_param: nexus_username }
1264 __nexus_password__: { get_param: nexus_password }
1265 __artifacts_version__: { get_param: artifacts_version }
1266 __dns_ip_addr__: { get_param: dns_ip_addr }
1267 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1268 __docker_version__: { get_param: policy_docker }
1269 __gerrit_branch__: { get_param: policy_branch }
1270 __cloud_env__: { get_param: cloud_env }
1271 __external_dns__: { get_param: external_dns }
1272 __policy_repo__: { get_param: policy_repo }
1276 # Create configuration files
1277 mkdir -p /opt/config
1278 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1279 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1280 echo "__nexus_username__" > /opt/config/nexus_username.txt
1281 echo "__nexus_password__" > /opt/config/nexus_password.txt
1282 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1283 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1284 echo "__public_ip__" > /opt/config/public_ip.txt
1285 echo "__docker_version__" > /opt/config/docker_version.txt
1286 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1287 echo "__cloud_env__" > /opt/config/cloud_env.txt
1288 echo "__external_dns__" > /opt/config/external_dns.txt
1289 echo "__policy_repo__" > /opt/config/remote_repo.txt
1291 # Download and run install script
1292 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1294 chmod +x policy_install.sh
1298 # APP-C instantiation
1300 type: OS::Neutron::Port
1302 network: { get_resource: oam_onap }
1303 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1306 type: OS::Neutron::FloatingIP
1308 floating_network_id: { get_param: public_net_id }
1309 port_id: { get_resource: appc_private_port }
1312 type: OS::Nova::Server
1314 image: { get_param: ubuntu_1404_image }
1315 flavor: { get_param: flavor_large }
1320 base: { get_param: vm_base_name }
1321 key_name: { get_resource: vm_key }
1323 - port: { get_resource: appc_private_port }
1324 user_data_format: RAW
1328 __nexus_repo__: { get_param: nexus_repo }
1329 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1330 __nexus_username__: { get_param: nexus_username }
1331 __nexus_password__: { get_param: nexus_password }
1332 __dmaap_topic__: { get_param: dmaap_topic }
1333 __artifacts_version__: { get_param: artifacts_version }
1334 __dns_ip_addr__: { get_param: dns_ip_addr }
1335 __docker_version__: { get_param: appc_docker }
1336 __gerrit_branch__: { get_param: appc_branch }
1337 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1338 __cloud_env__: { get_param: cloud_env }
1339 __external_dns__: { get_param: external_dns }
1340 __appc_repo__: { get_param: appc_repo }
1344 # Create configuration files
1345 mkdir -p /opt/config
1346 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1347 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1348 echo "__nexus_username__" > /opt/config/nexus_username.txt
1349 echo "__nexus_password__" > /opt/config/nexus_password.txt
1350 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1351 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1352 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1353 echo "__docker_version__" > /opt/config/docker_version.txt
1354 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1355 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1356 echo "__cloud_env__" > /opt/config/cloud_env.txt
1357 echo "__external_dns__" > /opt/config/external_dns.txt
1358 echo "__appc_repo__" > /opt/config/remote_repo.txt
1360 # Download and run install script
1361 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1363 chmod +x appc_install.sh
1367 # CLAMP instantiation
1369 type: OS::Neutron::Port
1371 network: { get_resource: oam_onap }
1372 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1375 type: OS::Neutron::FloatingIP
1377 floating_network_id: { get_param: public_net_id }
1378 port_id: { get_resource: clamp_private_port }
1381 type: OS::Nova::Server
1383 image: { get_param: ubuntu_1604_image }
1384 flavor: { get_param: flavor_medium }
1387 template: base-clamp
1389 base: { get_param: vm_base_name }
1390 key_name: { get_resource: vm_key }
1392 - port: { get_resource: clamp_private_port }
1393 user_data_format: RAW
1397 __nexus_repo__: { get_param: nexus_repo }
1398 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1399 __nexus_username__: { get_param: nexus_username }
1400 __nexus_password__: { get_param: nexus_password }
1401 __openstack_username__: { get_param: openstack_username }
1402 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1403 __openstack_api_key__: { get_param: openstack_api_key }
1404 __openstack_region__: { get_param: openstack_region }
1405 __keystone_url__: { get_param: keystone_url }
1406 __dmaap_topic__: { get_param: dmaap_topic }
1407 __artifacts_version__: { get_param: artifacts_version }
1408 __dns_ip_addr__: { get_param: dns_ip_addr }
1409 __docker_version__: { get_param: clamp_docker }
1410 __gerrit_branch__: { get_param: clamp_branch }
1411 __cloud_env__: { get_param: cloud_env }
1412 __external_dns__: { get_param: external_dns }
1413 __clamp_repo__: { get_param: clamp_repo }
1417 # Create configuration files
1418 mkdir -p /opt/config
1419 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1420 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1421 echo "__nexus_username__" > /opt/config/nexus_username.txt
1422 echo "__nexus_password__" > /opt/config/nexus_password.txt
1423 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1424 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1425 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1426 echo "__openstack_username__" > /opt/config/openstack_username.txt
1427 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1428 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1429 echo "__openstack_region__" > /opt/config/openstack_region.txt
1430 echo "__keystone_url__" > /opt/config/keystone.txt
1431 echo "__docker_version__" > /opt/config/docker_version.txt
1432 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1433 echo "__cloud_env__" > /opt/config/cloud_env.txt
1434 echo "__external_dns__" > /opt/config/external_dns.txt
1435 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1437 # Download and run install script
1438 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1440 chmod +x clamp_install.sh
1444 # OPEN-O VM instantiation
1446 type: OS::Neutron::Port
1448 network: { get_resource: oam_onap }
1449 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1452 type: OS::Neutron::FloatingIP
1454 floating_network_id: { get_param: public_net_id }
1455 port_id: { get_resource: openo_private_port }
1458 type: OS::Nova::Server
1460 image: { get_param: ubuntu_1604_image }
1461 flavor: { get_param: flavor_xxlarge }
1464 template: base-multi-service
1466 base: { get_param: vm_base_name }
1467 key_name: { get_resource: vm_key }
1469 - port: { get_resource: openo_private_port }
1470 user_data_format: RAW
1474 __nexus_repo__: { get_param: nexus_repo }
1475 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1476 __nexus_username__: { get_param: nexus_username }
1477 __nexus_password__: { get_param: nexus_password }
1478 __artifacts_version__: { get_param: artifacts_version }
1479 __dns_ip_addr__: { get_param: dns_ip_addr }
1480 __oam_network_cidr__: { get_param: oam_network_cidr }
1481 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1482 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1483 __appc_ip_addr__: { get_param: appc_ip_addr }
1484 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1485 __so_ip_addr__: { get_param: so_ip_addr }
1486 __mr_ip_addr__: { get_param: mr_ip_addr }
1487 __policy_ip_addr__: { get_param: policy_ip_addr }
1488 __portal_ip_addr__: { get_param: portal_ip_addr }
1489 __robot_ip_addr__: { get_param: robot_ip_addr }
1490 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1491 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1492 __vid_ip_addr__: { get_param: vid_ip_addr }
1493 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1494 __openo_ip_addr__: { get_param: openo_ip_addr }
1495 __cloud_env__: { get_param: cloud_env }
1496 __external_dns__: { get_param: external_dns }
1497 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1498 __msb_docker__: { get_param: msb_docker }
1499 __mvim_docker__: { get_param: mvim_docker }
1500 __uui_docker__: { get_param: uui_docker }
1501 __esr_docker__: { get_param: esr_docker }
1502 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1503 __vfc_nokia_docker__: { get_param: vfc_nokia_docker }
1504 __vfc_ztevmanagerdriver_docker__: { get_param: vfc_ztevmanagerdriver_docker }
1505 __vfc_ztesdncdriver_docker__: { get_param: vfc_ztesdncdriver_docker }
1506 __vfc_vnfres_docker__: { get_param: vfc_vnfres_docker }
1507 __vfc_vnfmgr_docker__: { get_param: vfc_vnfmgr_docker }
1508 __vfc_vnflcm_docker__: { get_param: vfc_vnflcm_docker }
1509 __vfc_resmanagement_docker__: { get_param: vfc_resmanagement_docker }
1510 __vfc_nslcm_docker__: { get_param: vfc_nslcm_docker }
1511 __vfc_huawei_docker__: { get_param: vfc_huawei_docker }
1512 __vfc_jujudriver_docker__: { get_param: vfc_jujudriver_docker }
1513 __vfc_gvnfmdriver_docker__: { get_param: vfc_gvnfmdriver_docker }
1514 __vfc_emsdriver_docker__: { get_param: vfc_emsdriver_docker }
1515 __vfc_catalog_docker__: { get_param: vfc_catalog_docker }
1516 __vfc_wfengine_mgrservice_docker__: { get_param: vfc_wfengine_mgrservice_docker }
1517 __vfc_wfengine_activiti_docker__: { get_param: vfc_wfengine_activiti_docker }
1521 # Create configuration files
1522 mkdir -p /opt/config
1523 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1524 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1525 echo "__nexus_username__" > /opt/config/nexus_username.txt
1526 echo "__nexus_password__" > /opt/config/nexus_password.txt
1527 echo "__cloud_env__" > /opt/config/cloud_env.txt
1528 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1529 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1530 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1531 echo "__external_dns__" > /opt/config/external_dns.txt
1532 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1533 echo "__msb_docker__" > /opt/config/msb_docker.txt
1534 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1535 echo "__uui_docker__" > /opt/config/uui_docker.txt
1536 echo "__esr_docker__" > /opt/config/esr_docker.txt
1537 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1539 echo "export NOKIA_DOCKER_VER=__vfc_nokia_docker__" >> /opt/config/vfc_docker.txt
1540 echo "export ZTEVMANAGERDRIVER_DOCKER_VER=__vfc_ztevmanagerdriver_docker__" >> /opt/config/vfc_docker.txt
1541 echo "export ZTESDNCDRIVER_DOCKER_VER=__vfc_ztesdncdriver_docker__" >> /opt/config/vfc_docker.txt
1542 echo "export VNFRES_DOCKER_VER=__vfc_vnfres_docker__" >> /opt/config/vfc_docker.txt
1543 echo "export VNFMGR_DOCKER_VER=__vfc_vnfmgr_docker__" >> /opt/config/vfc_docker.txt
1544 echo "export VNFLCM_DOCKER_VER=__vfc_vnflcm_docker__" >> /opt/config/vfc_docker.txt
1545 echo "export RESMANAGEMENT_DOCKER_VER=__vfc_resmanagement_docker__" >> /opt/config/vfc_docker.txt
1546 echo "export NSLCM_DOCKER_VER=__vfc_nslcm_docker__" >> /opt/config/vfc_docker.txt
1547 echo "export HUAWEI_DOCKER_VER=__vfc_huawei_docker__" >> /opt/config/vfc_docker.txt
1548 echo "export JUJUDRIVER_DOCKER_VER=__vfc_jujudriver_docker__" >> /opt/config/vfc_docker.txt
1549 echo "export GVNFMDRIVER_DOCKER_VER=__vfc_gvnfmdriver_docker__" >> /opt/config/vfc_docker.txt
1550 echo "export EMSDRIVER_DOCKER_VER=__vfc_emsdriver_docker__" >> /opt/config/vfc_docker.txt
1551 echo "export CATALOG_DOCKER_VER=__vfc_catalog_docker__" >> /opt/config/vfc_docker.txt
1552 echo "export MGRSERVICE_DOCKER_VER=__vfc_wfengine_mgrservice_docker__" >> /opt/config/vfc_docker.txt
1553 echo "export ACTIVITI_DOCKER_VER=__vfc_wfengine_activiti_docker__" >> /opt/config/vfc_docker.txt
1555 # Create env file with the IP address of all ONAP components
1556 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1557 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1558 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1559 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1560 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1561 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1562 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1563 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1564 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1565 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1566 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1567 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1568 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1569 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1571 # Download and run install script
1572 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1574 chmod +x openo_install.sh
1578 # DCAE GEN 2 Controller instantiation
1579 dcae_c_private_port:
1580 type: OS::Neutron::Port
1582 network: { get_resource: oam_onap }
1583 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1586 type: OS::Neutron::FloatingIP
1588 floating_network_id: { get_param: public_net_id }
1589 port_id: { get_resource: dcae_c_private_port }
1592 type: OS::Nova::Server
1594 image: { get_param: ubuntu_1604_image }
1595 flavor: { get_param: flavor_small }
1598 template: base-dcae-bootstrap
1600 base: { get_param: vm_base_name }
1601 key_name: { get_resource: vm_key }
1603 - port: { get_resource: dcae_c_private_port }
1605 # - { get_resource: onap_sg }
1606 user_data_format: RAW
1610 __rand_str__: { get_resource: random-str }
1612 __artifacts_version__: { get_param: artifacts_version }
1613 __docker_version__: { get_param: dcae_docker }
1614 __nexus_repo__: { get_param: nexus_repo }
1615 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1616 __nexus_username__: { get_param: nexus_username }
1617 __nexus_password__: { get_param: nexus_password }
1618 # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1619 __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1620 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1621 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1622 __dns_ip_addr__: { get_param: dns_ip_addr }
1623 __external_dns__: { get_param: external_dns }
1624 __dns_forwarder__: { get_param: dns_forwarder }
1625 __dcae_domain__: { get_param: dcae_domain }
1626 # conf for VMs DCAE is to bringup
1627 __openstack_keystone_url__: { get_param: keystone_url }
1628 __dcae_keystone_url__: { get_param: dcae_keystone_url }
1629 __dcaeos_cloud_env__: { get_param: cloud_env }
1630 __dcaeos_keystone_url__: { get_param: dcae_keystone_url }
1631 __dcaeos_region__: { get_param: openstack_region }
1632 __dcaeos_tenant_id__: { get_param: openstack_tenant_id }
1633 __dcaeos_tenant_name__: { get_param: openstack_tenant_name }
1634 __dcaeos_security_group__:
1636 template: 'onap_sg_rand'
1638 rand: { get_resource: random-str }
1639 #__dcaeos_security_group__: { get_attr: [onap_sg, name] }
1640 __dcaeos_username__: { get_param: openstack_username }
1641 __dcaeos_password__: { get_param: openstack_api_key }
1642 __dcaeos_key_name__: { get_resource: vm_key }
1643 __dcaeos_public_key__: { get_param: dcae_public_key }
1644 __dcaeos_private_key__: { get_param: dcae_private_key }
1645 __dcaeos_private_network_name__: { get_attr: [oam_onap, name] }
1646 __dcaeos_public_network_name__: { get_param: public_net_name }
1647 __dcaeos_ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1648 __dcaeos_centos_7_image__: { get_param: dcae_centos_7_image }
1649 __dcaeos_flavor_id__: { get_param: flavor_xlarge }
1650 __dcaeos_flavor_id_cdap__: { get_param: flavor_xlarge }
1651 __dcaeos_dnsaas_config_enabled__: { get_param: dnsaas_config_enabled }
1652 __dcaeos_dnsaas_region__: { get_param: dnsaas_region }
1653 __dcaeos_dnsaas_keystone_url__: { get_param: dnsaas_keystone_url }
1654 __dnsaas_tenant_name__: { get_param: dnsaas_tenant_name }
1655 __dcaeos_dnsaas_username__: { get_param: dnsaas_username }
1656 __dcaeos_dnsaas_password__: { get_param: dnsaas_password }
1658 __mr_ip_addr__: { get_param: mr_ip_addr }
1659 __policy_ip_addr__: { get_param: policy_ip_addr }
1660 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1661 __openo_ip_addr__: { get_param: openo_ip_addr }
1662 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1663 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1665 __dns_floating_ip_addr__: { get_attr: [dns_floating_ip, floating_ip_address] }
1666 __aai1_floating_ip_addr__: { get_attr: [aai1_floating_ip, floating_ip_address] }
1667 __aai2_floating_ip_addr__: { get_attr: [aai2_floating_ip, floating_ip_address] }
1668 __mrouter_floating_ip_addr__: { get_attr: [mrouter_floating_ip, floating_ip_address] }
1669 __sdc_floating_ip_addr__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1670 __policy_floating_ip_addr__: { get_attr: [policy_floating_ip, floating_ip_address] }
1671 __openo_floating_ip_addr__: { get_attr: [openo_floating_ip, floating_ip_address] }
1672 __dcae_c_floating_ip_addr__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1677 # Create configuration files
1678 mkdir -p /opt/config
1679 echo "__rand_str__" > /opt/config/dcae_zone.txt
1680 echo "__rand_str__" > /opt/config/rand_str.txt
1682 echo "__docker_version__" > /opt/config/docker_version.txt
1683 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1684 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1685 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1686 echo "__nexus_username__" > /opt/config/nexus_username.txt
1687 echo "__nexus_password__" > /opt/config/nexus_password.txt
1688 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1689 # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1690 echo "__mac_addr__" > /opt/config/mac_addr.txt
1691 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1692 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1693 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1694 echo "__external_dns__" > /opt/config/external_dns.txt
1695 echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
1696 echo "__dcae_domain__" > /opt/config/dcae_domain.txt
1697 # conf for the OpenStack env where DCAE is deployed
1698 echo "__openstack_keystone_url__" > /opt/config/openstack_keystone_url.txt
1699 echo "__dcaeos_cloud_env__" > /opt/config/cloud_env.txt
1700 echo "__dcaeos_keystone_url__" > /opt/config/keystone_url.txt
1701 echo "__dcaeos_region__" > /opt/config/openstack_region.txt
1702 echo "__dcaeos_tenant_id__" > /opt/config/tenant_id.txt
1703 echo "__dcaeos_tenant_name__" > /opt/config/tenant_name.txt
1704 echo "__dcaeos_username__" > /opt/config/openstack_user.txt
1705 echo "__dcaeos_password__" > /opt/config/openstack_password.txt
1706 echo "__dcaeos_key_name__" > /opt/config/key_name.txt
1707 echo "__dcaeos_public_key__" > /opt/config/pub_key.txt
1708 echo "__dcaeos_private_key__" > /opt/config/priv_key
1709 echo "__dcaeos_private_network_name__" > /opt/config/openstack_private_network_name.txt
1710 echo "__dcaeos_public_network_name__" > /opt/config/public_net_name.txt
1711 echo "__dcaeos_public_network_name__" > /opt/config/public_net_id.txt
1712 echo "__dcaeos_ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1713 echo "__dcaeos_centos_7_image__" > /opt/config/centos_7_image.txt
1714 echo "__dcaeos_security_group__" > /opt/config/security_group.txt
1715 echo "__dcaeos_flavor_id__" > /opt/config/flavor_id.txt
1716 echo "__dcaeos_flavor_id_cdap__" > /opt/config/flavor_id_cdap.txt
1717 echo "__dcaeos_dnsaas_config_enabled__" > /opt/config/dnsaas_config_enabled.txt
1718 echo "__dcaeos_dnsaas_region__" > /opt/config/dnsaas_region.txt
1719 echo "__dcaeos_dnsaas_keystone_url__" > /opt/config/dnsaas_keystone_url.txt
1720 echo "__dnsaas_tenant_name__" > /opt/config/dnsaas_tenant_name.txt
1721 echo "__dcaeos_dnsaas_username__" > /opt/config/dnsaas_username.txt
1722 echo "__dcaeos_dnsaas_password__" > /opt/config/dnsaas_password.txt
1723 # fixed private IP addresses of other ONAP components
1724 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1725 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
1726 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
1727 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
1728 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
1729 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
1731 echo "__dns_floating_ip_addr__" > /opt/config/dns_floating_ip_addr.txt
1732 echo "__aai1_floating_ip_addr__" > /opt/config/aai1_floating_ip_addr.txt
1733 echo "__aai2_floating_ip_addr__" > /opt/config/aai2_floating_ip_addr.txt
1734 echo "__mrouter_floating_ip_addr__" > /opt/config/mrouter_floating_ip_addr.txt
1735 echo "__sdc_floating_ip_addr__" > /opt/config/sdc_floating_ip_addr.txt
1736 echo "__policy_floating_ip_addr__" > /opt/config/policy_floating_ip_addr.txt
1737 echo "__openo_floating_ip_addr__" > /opt/config/openo_floating_ip_addr.txt
1738 echo "__dcae_c_floating_ip_addr__" > /opt/config/dcae_c_floating_ip_addr.txt
1740 # Download and run install script
1741 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1743 chmod +x dcae2_install.sh
1744 ./dcae2_install.sh > /tmp/dcae2_install.log 2>&1