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 }}]
482 - { get_resource: onap_sg }
485 type: OS::Neutron::FloatingIP
487 floating_network_id: { get_param: public_net_id }
488 port_id: { get_resource: dns_private_port }
491 type: OS::Nova::Server
493 image: { get_param: ubuntu_1404_image }
494 flavor: { get_param: flavor_small }
497 template: base-dns-server
499 base: { get_param: vm_base_name }
500 key_name: { get_resource: vm_key }
502 - port: { get_resource: dns_private_port }
503 user_data_format: RAW
507 __nexus_repo__: { get_param: nexus_repo }
508 __artifacts_version__: { get_param: artifacts_version }
509 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
510 __dns_ip_addr__: { get_param: dns_ip_addr }
511 __aai1_ip_addr__: { get_param: aai1_ip_addr }
512 __aai2_ip_addr__: { get_param: aai2_ip_addr }
513 __appc_ip_addr__: { get_param: appc_ip_addr }
514 __dcae_ip_addr__: { get_param: dcae_ip_addr }
515 __so_ip_addr__: { get_param: so_ip_addr }
516 __mr_ip_addr__: { get_param: mr_ip_addr }
517 __policy_ip_addr__: { get_param: policy_ip_addr }
518 __portal_ip_addr__: { get_param: portal_ip_addr }
519 __robot_ip_addr__: { get_param: robot_ip_addr }
520 __sdc_ip_addr__: { get_param: sdc_ip_addr }
521 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
522 __vid_ip_addr__: { get_param: vid_ip_addr }
523 __clamp_ip_addr__: { get_param: clamp_ip_addr }
524 __openo_ip_addr__: { get_param: openo_ip_addr }
525 __cloud_env__: { get_param: cloud_env }
526 __external_dns__: { get_param: external_dns }
527 __dns_forwarder__: { get_param: dns_forwarder }
531 # Create configuration files
533 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
534 echo "__cloud_env__" > /opt/config/cloud_env.txt
535 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
536 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
537 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
538 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
539 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
540 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
541 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
542 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
543 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
544 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
545 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
546 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
547 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
548 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
549 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
550 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
551 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
552 echo "__external_dns__" > /opt/config/external_dns.txt
553 echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
555 # Download and run install script
556 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
558 chmod +x dns_install.sh
562 # A&AI instantiation (2 VMs)
564 type: OS::Neutron::Port
566 network: { get_resource: oam_onap }
567 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
569 - { get_resource: onap_sg }
572 type: OS::Neutron::FloatingIP
574 floating_network_id: { get_param: public_net_id }
575 port_id: { get_resource: aai1_private_port }
578 type: OS::Nova::Server
581 image: { get_param: ubuntu_1404_image }
582 flavor: { get_param: flavor_xlarge }
585 template: base-aai-inst1
587 base: { get_param: vm_base_name }
588 key_name: { get_resource: vm_key }
590 - port: { get_resource: aai1_private_port }
591 user_data_format: RAW
595 __nexus_repo__: { get_param: nexus_repo }
596 __nexus_docker_repo__: { get_param: nexus_docker_repo }
597 __nexus_username__: { get_param: nexus_username }
598 __nexus_password__: { get_param: nexus_password }
599 __dmaap_topic__: { get_param: dmaap_topic }
600 __artifacts_version__: { get_param: artifacts_version }
601 __dns_ip_addr__: { get_param: dns_ip_addr }
602 __docker_version__: { get_param: aai_docker }
603 __aai_sparky_docker__ : { get_param: aai_sparky_docker }
604 __gerrit_branch__: { get_param: aai_branch }
605 __cloud_env__: { get_param: cloud_env }
606 __external_dns__: { get_param: external_dns }
607 __aai_repo__: { get_param: aai_repo }
611 # Create configuration files
613 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
614 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
615 echo "__nexus_username__" > /opt/config/nexus_username.txt
616 echo "__nexus_password__" > /opt/config/nexus_password.txt
617 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
618 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
619 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
620 echo "__docker_version__" > /opt/config/docker_version.txt
621 echo "__aai_sparky_docker__" > /opt/config/sparky_version.txt
622 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
623 echo "aai_instance_1" > /opt/config/aai_instance.txt
624 echo "__cloud_env__" > /opt/config/cloud_env.txt
625 echo "__external_dns__" > /opt/config/external_dns.txt
626 echo "__aai_repo__" > /opt/config/remote_repo.txt
628 # Download and run install script
629 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
631 chmod +x aai_install.sh
636 type: OS::Neutron::Port
638 network: { get_resource: oam_onap }
639 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
641 - { get_resource: onap_sg }
644 type: OS::Neutron::FloatingIP
646 floating_network_id: { get_param: public_net_id }
647 port_id: { get_resource: aai2_private_port }
650 type: OS::Nova::Server
652 image: { get_param: ubuntu_1404_image }
653 flavor: { get_param: flavor_xlarge }
656 template: base-aai-inst2
658 base: { get_param: vm_base_name }
659 key_name: { get_resource: vm_key }
661 - port: { get_resource: aai2_private_port }
662 user_data_format: RAW
666 __nexus_repo__: { get_param: nexus_repo }
667 __nexus_docker_repo__: { get_param: nexus_docker_repo }
668 __nexus_username__: { get_param: nexus_username }
669 __nexus_password__: { get_param: nexus_password }
670 __dmaap_topic__: { get_param: dmaap_topic }
671 __artifacts_version__: { get_param: artifacts_version }
672 __dns_ip_addr__: { get_param: dns_ip_addr }
673 __docker_version__: { get_param: aai_docker }
674 __gerrit_branch__: { get_param: aai_branch }
675 __cloud_env__: { get_param: cloud_env }
676 __external_dns__: { get_param: external_dns }
677 __aai_repo__: { get_param: aai_repo }
681 # Create configuration files
683 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
684 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
685 echo "__nexus_username__" > /opt/config/nexus_username.txt
686 echo "__nexus_password__" > /opt/config/nexus_password.txt
687 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
688 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
689 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
690 echo "__docker_version__" > /opt/config/docker_version.txt
691 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
692 echo "aai_instance_2" > /opt/config/aai_instance.txt
693 echo "__cloud_env__" > /opt/config/cloud_env.txt
694 echo "__external_dns__" > /opt/config/external_dns.txt
695 echo "__aai_repo__" > /opt/config/remote_repo.txt
697 # Download and run install script
698 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
700 chmod +x aai_install.sh
706 type: OS::Neutron::Port
708 network: { get_resource: oam_onap }
709 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
711 - { get_resource: onap_sg }
714 type: OS::Neutron::FloatingIP
716 floating_network_id: { get_param: public_net_id }
717 port_id: { get_resource: so_private_port }
720 type: OS::Nova::Server
722 image: { get_param: ubuntu_1604_image }
723 flavor: { get_param: flavor_large }
728 base: { get_param: vm_base_name }
729 key_name: { get_resource: vm_key }
731 - port: { get_resource: so_private_port }
732 user_data_format: RAW
736 __nexus_repo__: { get_param: nexus_repo }
737 __nexus_docker_repo__: { get_param: nexus_docker_repo }
738 __nexus_username__: { get_param: nexus_username }
739 __nexus_password__: { get_param: nexus_password }
740 __openstack_username__: { get_param: openstack_username }
741 __openstack_tenant_id__: { get_param: openstack_tenant_id }
742 __openstack_api_key__: { get_param: openstack_api_key }
743 __openstack_region__: { get_param: openstack_region }
744 __keystone_url__: { get_param: keystone_url }
745 __dmaap_topic__: { get_param: dmaap_topic }
746 __artifacts_version__: { get_param: artifacts_version }
747 __dns_ip_addr__: { get_param: dns_ip_addr }
748 __openo_ip__: { get_param: openo_ip_addr }
749 __docker_version__: { get_param: so_docker }
750 __gerrit_branch__: { get_param: so_branch }
751 __cloud_env__: { get_param: cloud_env }
752 __external_dns__: { get_param: external_dns }
753 __so_repo__: { get_param: so_repo }
757 # Create configuration files
759 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
760 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
761 echo "__nexus_username__" > /opt/config/nexus_username.txt
762 echo "__nexus_password__" > /opt/config/nexus_password.txt
763 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
764 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
765 echo "__openo_ip__" > /opt/config/openo_ip.txt
766 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
767 echo "__openstack_username__" > /opt/config/openstack_username.txt
768 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
769 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
770 echo "__openstack_region__" > /opt/config/openstack_region.txt
771 echo "__keystone_url__" > /opt/config/keystone.txt
772 echo "__docker_version__" > /opt/config/docker_version.txt
773 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
774 echo "__cloud_env__" > /opt/config/cloud_env.txt
775 echo "__external_dns__" > /opt/config/external_dns.txt
776 echo "__so_repo__" > /opt/config/remote_repo.txt
778 # Download and run install script
779 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
781 chmod +x so_install.sh
785 # Message Router instantiation
786 mrouter_private_port:
787 type: OS::Neutron::Port
789 network: { get_resource: oam_onap }
790 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
792 - { get_resource: onap_sg }
795 type: OS::Neutron::FloatingIP
797 floating_network_id: { get_param: public_net_id }
798 port_id: { get_resource: mrouter_private_port }
801 type: OS::Nova::Server
803 image: { get_param: ubuntu_1404_image }
804 flavor: { get_param: flavor_large }
807 template: base-message-router
809 base: { get_param: vm_base_name }
810 key_name: { get_resource: vm_key }
812 - port: { get_resource: mrouter_private_port }
813 user_data_format: RAW
817 __nexus_repo__: { get_param: nexus_repo }
818 __nexus_docker_repo__: { get_param: nexus_docker_repo }
819 __nexus_username__: { get_param: nexus_username }
820 __nexus_password__: { get_param: nexus_password }
821 __artifacts_version__: { get_param: artifacts_version }
822 __dns_ip_addr__: { get_param: dns_ip_addr }
823 __gerrit_branch__: { get_param: mr_branch }
824 __cloud_env__: { get_param: cloud_env }
825 __external_dns__: { get_param: external_dns }
826 __mr_repo__: { get_param: mr_repo }
830 # Create configuration files
832 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
833 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
834 echo "__nexus_username__" > /opt/config/nexus_username.txt
835 echo "__nexus_password__" > /opt/config/nexus_password.txt
836 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
837 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
838 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
839 echo "__cloud_env__" > /opt/config/cloud_env.txt
840 echo "__external_dns__" > /opt/config/external_dns.txt
841 echo "__mr_repo__" > /opt/config/remote_repo.txt
843 # Download and run install script
844 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
846 chmod +x mr_install.sh
850 # Robot Framework instantiation
852 type: OS::Neutron::Port
854 network: { get_resource: oam_onap }
855 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
857 - { get_resource: onap_sg }
860 type: OS::Neutron::FloatingIP
862 floating_network_id: { get_param: public_net_id }
863 port_id: { get_resource: robot_private_port }
866 type: OS::Nova::Server
868 image: { get_param: ubuntu_1604_image }
869 flavor: { get_param: flavor_medium }
874 base: { get_param: vm_base_name }
875 key_name: { get_resource: vm_key }
877 - port: { get_resource: robot_private_port }
878 user_data_format: RAW
882 __nexus_repo__: { get_param: nexus_repo }
883 __nexus_docker_repo__: { get_param: nexus_docker_repo }
884 __nexus_username__: { get_param: nexus_username }
885 __nexus_password__: { get_param: nexus_password }
886 __network_name__: { get_attr: [oam_onap, name] }
887 __openstack_username__: { get_param: openstack_username }
888 __openstack_api_key__: { get_param : openstack_api_key }
889 __openstack_tenant_id__: { get_param: openstack_tenant_id }
890 __artifacts_version__: { get_param: artifacts_version }
891 __openstack_region__: { get_param: openstack_region }
892 __dns_ip_addr__: { get_param: dns_ip_addr }
893 __gerrit_branch__: { get_param: robot_branch }
894 __cloud_env__: { get_param: cloud_env }
895 __keystone_url__: { get_param: keystone_url }
896 __aai1_ip_addr__: { get_param: aai1_ip_addr }
897 __aai2_ip_addr__: { get_param: aai2_ip_addr }
898 __appc_ip_addr__: { get_param: appc_ip_addr }
899 __dcae_ip_addr__: { get_param: dcae_ip_addr }
900 __so_ip_addr__: { get_param: so_ip_addr }
901 __mr_ip_addr__: { get_param: mr_ip_addr }
902 __policy_ip_addr__: { get_param: policy_ip_addr }
903 __portal_ip_addr__: { get_param: portal_ip_addr }
904 __sdc_ip_addr__: { get_param: sdc_ip_addr }
905 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
906 __vid_ip_addr__: { get_param: vid_ip_addr }
907 __clamp_ip_addr__: { get_param: clamp_ip_addr }
908 __openo_ip_addr__: { get_param: openo_ip_addr }
909 __external_dns__: { get_param: external_dns }
910 __vm_image_name__: { get_param: ubuntu_1404_image }
911 __vm_flavor__: { get_param: flavor_medium }
912 __public_net_id__: { get_param: public_net_id }
913 __script_version__: { get_param: artifacts_version }
914 __robot_repo__: { get_param: robot_repo }
915 __docker_version__: { get_param: robot_docker }
919 # Create configuration files
921 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
922 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
923 echo "__nexus_username__" > /opt/config/nexus_username.txt
924 echo "__nexus_password__" > /opt/config/nexus_password.txt
925 echo "__network_name__" > /opt/config/network.txt
926 echo "__openstack_username__" > /opt/config/openstack_username.txt
927 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
928 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
929 echo "__openstack_region__" > /opt/config/region.txt
930 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
931 echo "__docker_version__" > /opt/config/docker_version.txt
932 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
933 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
934 echo "__keystone_url__" > /opt/config/keystone.txt
935 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
936 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
937 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
938 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
939 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
940 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
941 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
942 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
943 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
944 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
945 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
946 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
947 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
948 echo "__cloud_env__" > /opt/config/cloud_env.txt
949 echo "__external_dns__" > /opt/config/external_dns.txt
950 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
951 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
952 echo "__script_version__" > /opt/config/script_version.txt
953 echo "__public_net_id__" > /opt/config/public_net_id.txt
954 echo "__robot_repo__" > /opt/config/remote_repo.txt
956 # Download and run install script
957 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
959 chmod +x robot_install.sh
965 type: OS::Neutron::Port
967 network: { get_resource: oam_onap }
968 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
970 - { get_resource: onap_sg }
973 type: OS::Neutron::FloatingIP
975 floating_network_id: { get_param: public_net_id }
976 port_id: { get_resource: vid_private_port }
979 type: OS::Nova::Server
981 image: { get_param: ubuntu_1404_image }
982 flavor: { get_param: flavor_medium }
987 base: { get_param: vm_base_name }
988 key_name: { get_resource: vm_key }
990 - port: { get_resource: vid_private_port }
991 user_data_format: RAW
995 __nexus_repo__: { get_param: nexus_repo }
996 __nexus_docker_repo__: { get_param: nexus_docker_repo }
997 __nexus_username__: { get_param: nexus_username }
998 __nexus_password__: { get_param: nexus_password }
999 __artifacts_version__: { get_param: artifacts_version }
1000 __dns_ip_addr__: { get_param: dns_ip_addr }
1001 __docker_version__: { get_param: vid_docker }
1002 __gerrit_branch__: { get_param: vid_branch }
1003 __cloud_env__: { get_param: cloud_env }
1004 __external_dns__: { get_param: external_dns }
1005 __vid_repo__: { get_param: vid_repo }
1009 # Create configuration files
1010 mkdir -p /opt/config
1011 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1012 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1013 echo "__nexus_username__" > /opt/config/nexus_username.txt
1014 echo "__nexus_password__" > /opt/config/nexus_password.txt
1015 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1016 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1017 echo "__docker_version__" > /opt/config/docker_version.txt
1018 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1019 echo "__cloud_env__" > /opt/config/cloud_env.txt
1020 echo "__external_dns__" > /opt/config/external_dns.txt
1021 echo "__vid_repo__" > /opt/config/remote_repo.txt
1023 # Download and run install script
1024 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
1026 chmod +x vid_install.sh
1030 # SDN-C instantiation
1032 type: OS::Neutron::Port
1034 network: { get_resource: oam_onap }
1035 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
1037 - { get_resource: onap_sg }
1040 type: OS::Neutron::FloatingIP
1042 floating_network_id: { get_param: public_net_id }
1043 port_id: { get_resource: sdnc_private_port }
1046 type: OS::Nova::Server
1048 image: { get_param: ubuntu_1404_image }
1049 flavor: { get_param: flavor_large }
1054 base: { get_param: vm_base_name }
1055 key_name: { get_resource: vm_key }
1057 - port: { get_resource: sdnc_private_port }
1058 user_data_format: RAW
1062 __nexus_repo__: { get_param: nexus_repo }
1063 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1064 __nexus_username__: { get_param: nexus_username }
1065 __nexus_password__: { get_param: nexus_password }
1066 __artifacts_version__: { get_param: artifacts_version }
1067 __dns_ip_addr__: { get_param: dns_ip_addr }
1068 __docker_version__: { get_param: sdnc_docker }
1069 __gerrit_branch__: { get_param: sdnc_branch }
1070 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1071 __cloud_env__: { get_param: cloud_env }
1072 __external_dns__: { get_param: external_dns }
1073 __sdnc_repo__: { get_param: sdnc_repo }
1077 # Create configuration files
1078 mkdir -p /opt/config
1079 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1080 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1081 echo "__nexus_username__" > /opt/config/nexus_username.txt
1082 echo "__nexus_password__" > /opt/config/nexus_password.txt
1083 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1084 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1085 echo "__docker_version__" > /opt/config/docker_version.txt
1086 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1087 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1088 echo "__cloud_env__" > /opt/config/cloud_env.txt
1089 echo "__external_dns__" > /opt/config/external_dns.txt
1090 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1092 # Download and run install script
1093 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1095 chmod +x sdnc_install.sh
1101 type: OS::Neutron::Port
1103 network: { get_resource: oam_onap }
1104 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1106 - { get_resource: onap_sg }
1109 type: OS::Neutron::FloatingIP
1111 floating_network_id: { get_param: public_net_id }
1112 port_id: { get_resource: sdc_private_port }
1115 type: OS::Cinder::Volume
1121 type: OS::Nova::Server
1123 image: { get_param: ubuntu_1604_image }
1124 flavor: { get_param: flavor_xlarge }
1129 base: { get_param: vm_base_name }
1130 key_name: { get_resource: vm_key }
1132 - port: { get_resource: sdc_private_port }
1133 block_device_mapping:
1134 - device_name: /dev/vdb
1135 volume_id: {get_resource: sdc_volume_data}
1136 user_data_format: RAW
1140 __nexus_repo__: { get_param: nexus_repo }
1141 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1142 __nexus_username__: { get_param: nexus_username }
1143 __nexus_password__: { get_param: nexus_password }
1144 __env_name__: { get_param: dmaap_topic }
1145 __artifacts_version__: { get_param: artifacts_version }
1146 __dns_ip_addr__: { get_param: dns_ip_addr }
1147 __mr_ip_addr__: { get_param: mr_ip_addr }
1148 __private_ip__: { get_param: sdc_ip_addr }
1149 __docker_version__: { get_param: sdc_docker }
1150 __gerrit_branch__: { get_param: sdc_branch }
1151 __cloud_env__: { get_param: cloud_env }
1152 __external_dns__: { get_param: external_dns }
1153 __sdc_repo__: { get_param: sdc_repo }
1157 # Create configuration files
1158 mkdir -p /opt/config
1159 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1160 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1161 echo "__nexus_username__" > /opt/config/nexus_username.txt
1162 echo "__nexus_password__" > /opt/config/nexus_password.txt
1163 echo "__env_name__" > /opt/config/env_name.txt
1164 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1165 echo "__private_ip__" > /opt/config/private_ip.txt
1166 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1167 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1168 echo "__docker_version__" > /opt/config/docker_version.txt
1169 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1170 echo "__cloud_env__" > /opt/config/cloud_env.txt
1171 echo "__external_dns__" > /opt/config/external_dns.txt
1172 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1174 # Download and run install script
1175 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1177 chmod +x sdc_install.sh
1181 # PORTAL instantiation
1182 portal_private_port:
1183 type: OS::Neutron::Port
1185 network: { get_resource: oam_onap }
1186 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1188 - { get_resource: onap_sg }
1191 type: OS::Neutron::FloatingIP
1193 floating_network_id: { get_param: public_net_id }
1194 port_id: { get_resource: portal_private_port }
1197 type: OS::Nova::Server
1199 image: { get_param: ubuntu_1404_image }
1200 flavor: { get_param: flavor_large }
1203 template: base-portal
1205 base: { get_param: vm_base_name }
1206 key_name: { get_resource: vm_key }
1208 - port: { get_resource: portal_private_port }
1209 user_data_format: RAW
1213 __nexus_repo__: { get_param: nexus_repo }
1214 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1215 __nexus_username__: { get_param: nexus_username }
1216 __nexus_password__: { get_param: nexus_password }
1217 __artifacts_version__: { get_param: artifacts_version }
1218 __dns_ip_addr__: { get_param: dns_ip_addr }
1219 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1220 __docker_version__: { get_param: portal_docker }
1221 __gerrit_branch__: { get_param: portal_branch }
1222 __cli_docker__: { get_param: cli_docker }
1223 __cloud_env__: { get_param: cloud_env }
1224 __external_dns__: { get_param: external_dns }
1225 __portal_repo__: { get_param: portal_repo }
1229 # Create configuration files
1230 mkdir -p /opt/config
1231 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1232 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1233 echo "__nexus_username__" > /opt/config/nexus_username.txt
1234 echo "__nexus_password__" > /opt/config/nexus_password.txt
1235 echo "__public_ip__" > /opt/config/public_ip.txt
1236 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1237 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1238 echo "__docker_version__" > /opt/config/docker_version.txt
1239 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1240 echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1241 echo "__cloud_env__" > /opt/config/cloud_env.txt
1242 echo "__external_dns__" > /opt/config/external_dns.txt
1243 echo "__portal_repo__" > /opt/config/remote_repo.txt
1245 # Download and run install script
1246 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1248 chmod +x portal_install.sh
1252 # Policy Engine instantiation
1253 policy_private_port:
1254 type: OS::Neutron::Port
1256 network: { get_resource: oam_onap }
1257 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1259 - { get_resource: onap_sg }
1262 type: OS::Neutron::FloatingIP
1264 floating_network_id: { get_param: public_net_id }
1265 port_id: { get_resource: policy_private_port }
1268 type: OS::Nova::Server
1270 image: { get_param: ubuntu_1404_image }
1271 flavor: { get_param: flavor_xlarge }
1274 template: base-policy
1276 base: { get_param: vm_base_name }
1277 key_name: { get_resource: vm_key }
1279 - port: { get_resource: policy_private_port }
1280 user_data_format: RAW
1284 __nexus_repo__: { get_param: nexus_repo }
1285 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1286 __nexus_username__: { get_param: nexus_username }
1287 __nexus_password__: { get_param: nexus_password }
1288 __artifacts_version__: { get_param: artifacts_version }
1289 __dns_ip_addr__: { get_param: dns_ip_addr }
1290 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1291 __docker_version__: { get_param: policy_docker }
1292 __gerrit_branch__: { get_param: policy_branch }
1293 __cloud_env__: { get_param: cloud_env }
1294 __external_dns__: { get_param: external_dns }
1295 __policy_repo__: { get_param: policy_repo }
1299 # Create configuration files
1300 mkdir -p /opt/config
1301 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1302 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1303 echo "__nexus_username__" > /opt/config/nexus_username.txt
1304 echo "__nexus_password__" > /opt/config/nexus_password.txt
1305 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1306 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1307 echo "__public_ip__" > /opt/config/public_ip.txt
1308 echo "__docker_version__" > /opt/config/docker_version.txt
1309 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1310 echo "__cloud_env__" > /opt/config/cloud_env.txt
1311 echo "__external_dns__" > /opt/config/external_dns.txt
1312 echo "__policy_repo__" > /opt/config/remote_repo.txt
1314 # Download and run install script
1315 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1317 chmod +x policy_install.sh
1321 # APP-C instantiation
1323 type: OS::Neutron::Port
1325 network: { get_resource: oam_onap }
1326 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1328 - { get_resource: onap_sg }
1331 type: OS::Neutron::FloatingIP
1333 floating_network_id: { get_param: public_net_id }
1334 port_id: { get_resource: appc_private_port }
1337 type: OS::Nova::Server
1339 image: { get_param: ubuntu_1404_image }
1340 flavor: { get_param: flavor_large }
1345 base: { get_param: vm_base_name }
1346 key_name: { get_resource: vm_key }
1348 - port: { get_resource: appc_private_port }
1349 user_data_format: RAW
1353 __nexus_repo__: { get_param: nexus_repo }
1354 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1355 __nexus_username__: { get_param: nexus_username }
1356 __nexus_password__: { get_param: nexus_password }
1357 __dmaap_topic__: { get_param: dmaap_topic }
1358 __artifacts_version__: { get_param: artifacts_version }
1359 __dns_ip_addr__: { get_param: dns_ip_addr }
1360 __docker_version__: { get_param: appc_docker }
1361 __gerrit_branch__: { get_param: appc_branch }
1362 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1363 __cloud_env__: { get_param: cloud_env }
1364 __external_dns__: { get_param: external_dns }
1365 __appc_repo__: { get_param: appc_repo }
1369 # Create configuration files
1370 mkdir -p /opt/config
1371 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1372 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1373 echo "__nexus_username__" > /opt/config/nexus_username.txt
1374 echo "__nexus_password__" > /opt/config/nexus_password.txt
1375 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1376 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1377 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1378 echo "__docker_version__" > /opt/config/docker_version.txt
1379 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1380 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1381 echo "__cloud_env__" > /opt/config/cloud_env.txt
1382 echo "__external_dns__" > /opt/config/external_dns.txt
1383 echo "__appc_repo__" > /opt/config/remote_repo.txt
1385 # Download and run install script
1386 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1388 chmod +x appc_install.sh
1392 # CLAMP instantiation
1394 type: OS::Neutron::Port
1396 network: { get_resource: oam_onap }
1397 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1399 - { get_resource: onap_sg }
1402 type: OS::Neutron::FloatingIP
1404 floating_network_id: { get_param: public_net_id }
1405 port_id: { get_resource: clamp_private_port }
1408 type: OS::Nova::Server
1410 image: { get_param: ubuntu_1604_image }
1411 flavor: { get_param: flavor_medium }
1414 template: base-clamp
1416 base: { get_param: vm_base_name }
1417 key_name: { get_resource: vm_key }
1419 - port: { get_resource: clamp_private_port }
1420 user_data_format: RAW
1424 __nexus_repo__: { get_param: nexus_repo }
1425 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1426 __nexus_username__: { get_param: nexus_username }
1427 __nexus_password__: { get_param: nexus_password }
1428 __openstack_username__: { get_param: openstack_username }
1429 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1430 __openstack_api_key__: { get_param: openstack_api_key }
1431 __openstack_region__: { get_param: openstack_region }
1432 __keystone_url__: { get_param: keystone_url }
1433 __dmaap_topic__: { get_param: dmaap_topic }
1434 __artifacts_version__: { get_param: artifacts_version }
1435 __dns_ip_addr__: { get_param: dns_ip_addr }
1436 __docker_version__: { get_param: clamp_docker }
1437 __gerrit_branch__: { get_param: clamp_branch }
1438 __cloud_env__: { get_param: cloud_env }
1439 __external_dns__: { get_param: external_dns }
1440 __clamp_repo__: { get_param: clamp_repo }
1444 # Create configuration files
1445 mkdir -p /opt/config
1446 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1447 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1448 echo "__nexus_username__" > /opt/config/nexus_username.txt
1449 echo "__nexus_password__" > /opt/config/nexus_password.txt
1450 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1451 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1452 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1453 echo "__openstack_username__" > /opt/config/openstack_username.txt
1454 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1455 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1456 echo "__openstack_region__" > /opt/config/openstack_region.txt
1457 echo "__keystone_url__" > /opt/config/keystone.txt
1458 echo "__docker_version__" > /opt/config/docker_version.txt
1459 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1460 echo "__cloud_env__" > /opt/config/cloud_env.txt
1461 echo "__external_dns__" > /opt/config/external_dns.txt
1462 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1464 # Download and run install script
1465 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1467 chmod +x clamp_install.sh
1471 # OPEN-O VM instantiation
1473 type: OS::Neutron::Port
1475 network: { get_resource: oam_onap }
1476 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1478 - { get_resource: onap_sg }
1481 type: OS::Neutron::FloatingIP
1483 floating_network_id: { get_param: public_net_id }
1484 port_id: { get_resource: openo_private_port }
1487 type: OS::Nova::Server
1489 image: { get_param: ubuntu_1604_image }
1490 flavor: { get_param: flavor_xxlarge }
1493 template: base-multi-service
1495 base: { get_param: vm_base_name }
1496 key_name: { get_resource: vm_key }
1498 - port: { get_resource: openo_private_port }
1499 user_data_format: RAW
1503 __nexus_repo__: { get_param: nexus_repo }
1504 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1505 __nexus_username__: { get_param: nexus_username }
1506 __nexus_password__: { get_param: nexus_password }
1507 __artifacts_version__: { get_param: artifacts_version }
1508 __dns_ip_addr__: { get_param: dns_ip_addr }
1509 __oam_network_cidr__: { get_param: oam_network_cidr }
1510 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1511 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1512 __appc_ip_addr__: { get_param: appc_ip_addr }
1513 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1514 __so_ip_addr__: { get_param: so_ip_addr }
1515 __mr_ip_addr__: { get_param: mr_ip_addr }
1516 __policy_ip_addr__: { get_param: policy_ip_addr }
1517 __portal_ip_addr__: { get_param: portal_ip_addr }
1518 __robot_ip_addr__: { get_param: robot_ip_addr }
1519 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1520 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1521 __vid_ip_addr__: { get_param: vid_ip_addr }
1522 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1523 __openo_ip_addr__: { get_param: openo_ip_addr }
1524 __cloud_env__: { get_param: cloud_env }
1525 __external_dns__: { get_param: external_dns }
1526 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1527 __msb_docker__: { get_param: msb_docker }
1528 __mvim_docker__: { get_param: mvim_docker }
1529 __uui_docker__: { get_param: uui_docker }
1530 __esr_docker__: { get_param: esr_docker }
1531 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1532 __vfc_nokia_docker__: { get_param: vfc_nokia_docker }
1533 __vfc_ztevmanagerdriver_docker__: { get_param: vfc_ztevmanagerdriver_docker }
1534 __vfc_ztesdncdriver_docker__: { get_param: vfc_ztesdncdriver_docker }
1535 __vfc_vnfres_docker__: { get_param: vfc_vnfres_docker }
1536 __vfc_vnfmgr_docker__: { get_param: vfc_vnfmgr_docker }
1537 __vfc_vnflcm_docker__: { get_param: vfc_vnflcm_docker }
1538 __vfc_resmanagement_docker__: { get_param: vfc_resmanagement_docker }
1539 __vfc_nslcm_docker__: { get_param: vfc_nslcm_docker }
1540 __vfc_huawei_docker__: { get_param: vfc_huawei_docker }
1541 __vfc_jujudriver_docker__: { get_param: vfc_jujudriver_docker }
1542 __vfc_gvnfmdriver_docker__: { get_param: vfc_gvnfmdriver_docker }
1543 __vfc_emsdriver_docker__: { get_param: vfc_emsdriver_docker }
1544 __vfc_catalog_docker__: { get_param: vfc_catalog_docker }
1545 __vfc_wfengine_mgrservice_docker__: { get_param: vfc_wfengine_mgrservice_docker }
1546 __vfc_wfengine_activiti_docker__: { get_param: vfc_wfengine_activiti_docker }
1550 # Create configuration files
1551 mkdir -p /opt/config
1552 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1553 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1554 echo "__nexus_username__" > /opt/config/nexus_username.txt
1555 echo "__nexus_password__" > /opt/config/nexus_password.txt
1556 echo "__cloud_env__" > /opt/config/cloud_env.txt
1557 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1558 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1559 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1560 echo "__external_dns__" > /opt/config/external_dns.txt
1561 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1562 echo "__msb_docker__" > /opt/config/msb_docker.txt
1563 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1564 echo "__uui_docker__" > /opt/config/uui_docker.txt
1565 echo "__esr_docker__" > /opt/config/esr_docker.txt
1566 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1568 echo "export NOKIA_DOCKER_VER=__vfc_nokia_docker__" >> /opt/config/vfc_docker.txt
1569 echo "export ZTEVMANAGERDRIVER_DOCKER_VER=__vfc_ztevmanagerdriver_docker__" >> /opt/config/vfc_docker.txt
1570 echo "export ZTESDNCDRIVER_DOCKER_VER=__vfc_ztesdncdriver_docker__" >> /opt/config/vfc_docker.txt
1571 echo "export VNFRES_DOCKER_VER=__vfc_vnfres_docker__" >> /opt/config/vfc_docker.txt
1572 echo "export VNFMGR_DOCKER_VER=__vfc_vnfmgr_docker__" >> /opt/config/vfc_docker.txt
1573 echo "export VNFLCM_DOCKER_VER=__vfc_vnflcm_docker__" >> /opt/config/vfc_docker.txt
1574 echo "export RESMANAGEMENT_DOCKER_VER=__vfc_resmanagement_docker__" >> /opt/config/vfc_docker.txt
1575 echo "export NSLCM_DOCKER_VER=__vfc_nslcm_docker__" >> /opt/config/vfc_docker.txt
1576 echo "export HUAWEI_DOCKER_VER=__vfc_huawei_docker__" >> /opt/config/vfc_docker.txt
1577 echo "export JUJUDRIVER_DOCKER_VER=__vfc_jujudriver_docker__" >> /opt/config/vfc_docker.txt
1578 echo "export GVNFMDRIVER_DOCKER_VER=__vfc_gvnfmdriver_docker__" >> /opt/config/vfc_docker.txt
1579 echo "export EMSDRIVER_DOCKER_VER=__vfc_emsdriver_docker__" >> /opt/config/vfc_docker.txt
1580 echo "export CATALOG_DOCKER_VER=__vfc_catalog_docker__" >> /opt/config/vfc_docker.txt
1581 echo "export MGRSERVICE_DOCKER_VER=__vfc_wfengine_mgrservice_docker__" >> /opt/config/vfc_docker.txt
1582 echo "export ACTIVITI_DOCKER_VER=__vfc_wfengine_activiti_docker__" >> /opt/config/vfc_docker.txt
1584 # Create env file with the IP address of all ONAP components
1585 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1586 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1587 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1588 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1589 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1590 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1591 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1592 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1593 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1594 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1595 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1596 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1597 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1598 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1600 # Download and run install script
1601 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1603 chmod +x openo_install.sh
1607 # DCAE GEN 2 Controller instantiation
1608 dcae_c_private_port:
1609 type: OS::Neutron::Port
1611 network: { get_resource: oam_onap }
1612 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1614 - { get_resource: onap_sg }
1617 type: OS::Neutron::FloatingIP
1619 floating_network_id: { get_param: public_net_id }
1620 port_id: { get_resource: dcae_c_private_port }
1623 type: OS::Nova::Server
1625 image: { get_param: ubuntu_1604_image }
1626 flavor: { get_param: flavor_small }
1629 template: base-dcae-bootstrap
1631 base: { get_param: vm_base_name }
1632 key_name: { get_resource: vm_key }
1634 - port: { get_resource: dcae_c_private_port }
1636 # - { get_resource: onap_sg }
1637 user_data_format: RAW
1641 __rand_str__: { get_resource: random-str }
1643 __artifacts_version__: { get_param: artifacts_version }
1644 __docker_version__: { get_param: dcae_docker }
1645 __nexus_repo__: { get_param: nexus_repo }
1646 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1647 __nexus_username__: { get_param: nexus_username }
1648 __nexus_password__: { get_param: nexus_password }
1649 # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1650 __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1651 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1652 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1653 __dns_ip_addr__: { get_param: dns_ip_addr }
1654 __external_dns__: { get_param: external_dns }
1655 __dns_forwarder__: { get_param: dns_forwarder }
1656 __dcae_domain__: { get_param: dcae_domain }
1657 # conf for VMs DCAE is to bringup
1658 __openstack_keystone_url__: { get_param: keystone_url }
1659 __dcae_keystone_url__: { get_param: dcae_keystone_url }
1660 __dcaeos_cloud_env__: { get_param: cloud_env }
1661 __dcaeos_keystone_url__: { get_param: dcae_keystone_url }
1662 __dcaeos_region__: { get_param: openstack_region }
1663 __dcaeos_tenant_id__: { get_param: openstack_tenant_id }
1664 __dcaeos_tenant_name__: { get_param: openstack_tenant_name }
1665 __dcaeos_security_group__:
1667 template: 'onap_sg_rand'
1669 rand: { get_resource: random-str }
1670 #__dcaeos_security_group__: { get_attr: [onap_sg, name] }
1671 __dcaeos_username__: { get_param: openstack_username }
1672 __dcaeos_password__: { get_param: openstack_api_key }
1673 __dcaeos_key_name__: { get_resource: vm_key }
1674 __dcaeos_public_key__: { get_param: dcae_public_key }
1675 __dcaeos_private_key__: { get_param: dcae_private_key }
1676 __dcaeos_private_network_name__: { get_attr: [oam_onap, name] }
1677 __dcaeos_public_network_name__: { get_param: public_net_name }
1678 __dcaeos_ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1679 __dcaeos_centos_7_image__: { get_param: dcae_centos_7_image }
1680 __dcaeos_flavor_id__: { get_param: flavor_medium }
1681 __dcaeos_flavor_id_cdap__: { get_param: flavor_large }
1682 __dcaeos_dnsaas_config_enabled__: { get_param: dnsaas_config_enabled }
1683 __dcaeos_dnsaas_region__: { get_param: dnsaas_region }
1684 __dcaeos_dnsaas_keystone_url__: { get_param: dnsaas_keystone_url }
1685 __dnsaas_tenant_name__: { get_param: dnsaas_tenant_name }
1686 __dcaeos_dnsaas_username__: { get_param: dnsaas_username }
1687 __dcaeos_dnsaas_password__: { get_param: dnsaas_password }
1689 __mr_ip_addr__: { get_param: mr_ip_addr }
1690 __policy_ip_addr__: { get_param: policy_ip_addr }
1691 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1692 __openo_ip_addr__: { get_param: openo_ip_addr }
1693 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1694 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1696 __dns_floating_ip_addr__: { get_attr: [dns_floating_ip, floating_ip_address] }
1697 __aai1_floating_ip_addr__: { get_attr: [aai1_floating_ip, floating_ip_address] }
1698 __aai2_floating_ip_addr__: { get_attr: [aai2_floating_ip, floating_ip_address] }
1699 __mrouter_floating_ip_addr__: { get_attr: [mrouter_floating_ip, floating_ip_address] }
1700 __sdc_floating_ip_addr__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1701 __policy_floating_ip_addr__: { get_attr: [policy_floating_ip, floating_ip_address] }
1702 __openo_floating_ip_addr__: { get_attr: [openo_floating_ip, floating_ip_address] }
1703 __dcae_c_floating_ip_addr__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1708 # Create configuration files
1709 mkdir -p /opt/config
1710 echo "__rand_str__" > /opt/config/dcae_zone.txt
1711 echo "__rand_str__" > /opt/config/rand_str.txt
1713 echo "__docker_version__" > /opt/config/docker_version.txt
1714 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1715 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1716 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1717 echo "__nexus_username__" > /opt/config/nexus_username.txt
1718 echo "__nexus_password__" > /opt/config/nexus_password.txt
1719 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1720 # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1721 echo "__mac_addr__" > /opt/config/mac_addr.txt
1722 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1723 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1724 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1725 echo "__external_dns__" > /opt/config/external_dns.txt
1726 echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
1727 echo "__dcae_domain__" > /opt/config/dcae_domain.txt
1728 # conf for the OpenStack env where DCAE is deployed
1729 echo "__openstack_keystone_url__" > /opt/config/openstack_keystone_url.txt
1730 echo "__dcaeos_cloud_env__" > /opt/config/cloud_env.txt
1731 echo "__dcaeos_keystone_url__" > /opt/config/keystone_url.txt
1732 echo "__dcaeos_region__" > /opt/config/openstack_region.txt
1733 echo "__dcaeos_tenant_id__" > /opt/config/tenant_id.txt
1734 echo "__dcaeos_tenant_name__" > /opt/config/tenant_name.txt
1735 echo "__dcaeos_username__" > /opt/config/openstack_user.txt
1736 echo "__dcaeos_password__" > /opt/config/openstack_password.txt
1737 echo "__dcaeos_key_name__" > /opt/config/key_name.txt
1738 echo "__dcaeos_public_key__" > /opt/config/pub_key.txt
1739 echo "__dcaeos_private_key__" > /opt/config/priv_key
1740 echo "__dcaeos_private_network_name__" > /opt/config/openstack_private_network_name.txt
1741 echo "__dcaeos_public_network_name__" > /opt/config/public_net_name.txt
1742 echo "__dcaeos_public_network_name__" > /opt/config/public_net_id.txt
1743 echo "__dcaeos_ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1744 echo "__dcaeos_centos_7_image__" > /opt/config/centos_7_image.txt
1745 echo "__dcaeos_security_group__" > /opt/config/security_group.txt
1746 echo "__dcaeos_flavor_id__" > /opt/config/flavor_id.txt
1747 echo "__dcaeos_flavor_id_cdap__" > /opt/config/flavor_id_cdap.txt
1748 echo "__dcaeos_dnsaas_config_enabled__" > /opt/config/dnsaas_config_enabled.txt
1749 echo "__dcaeos_dnsaas_region__" > /opt/config/dnsaas_region.txt
1750 echo "__dcaeos_dnsaas_keystone_url__" > /opt/config/dnsaas_keystone_url.txt
1751 echo "__dnsaas_tenant_name__" > /opt/config/dnsaas_tenant_name.txt
1752 echo "__dcaeos_dnsaas_username__" > /opt/config/dnsaas_username.txt
1753 echo "__dcaeos_dnsaas_password__" > /opt/config/dnsaas_password.txt
1754 # fixed private IP addresses of other ONAP components
1755 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1756 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
1757 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
1758 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
1759 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
1760 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
1762 echo "__dns_floating_ip_addr__" > /opt/config/dns_floating_ip_addr.txt
1763 echo "__aai1_floating_ip_addr__" > /opt/config/aai1_floating_ip_addr.txt
1764 echo "__aai2_floating_ip_addr__" > /opt/config/aai2_floating_ip_addr.txt
1765 echo "__mrouter_floating_ip_addr__" > /opt/config/mrouter_floating_ip_addr.txt
1766 echo "__sdc_floating_ip_addr__" > /opt/config/sdc_floating_ip_addr.txt
1767 echo "__policy_floating_ip_addr__" > /opt/config/policy_floating_ip_addr.txt
1768 echo "__openo_floating_ip_addr__" > /opt/config/openo_floating_ip_addr.txt
1769 echo "__dcae_c_floating_ip_addr__" > /opt/config/dcae_c_floating_ip_addr.txt
1771 # Download and run install script
1772 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1774 chmod +x dcae2_install.sh
1775 ./dcae2_install.sh > /tmp/dcae2_install.log 2>&1