1 ##########################################################################
3 #==================LICENSE_START==========================================
6 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 #==================LICENSE_END============================================
21 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 ##########################################################################
25 heat_template_version: 2015-10-15
27 description: Heat template to install ONAP components
37 ##############################################
39 # Parameters used across all ONAP components #
41 ##############################################
45 description: Public network for floating IP address allocation
49 description: Public subnet for floating IP address allocation
53 description: Router gateway IP address
57 description: Name of the Ubuntu 14.04 image
61 description: Name of the Ubuntu 16.04 image
65 description: Name of the CentOS 7 image
69 description: Name of the Small Flavor supported by the cloud provider
73 description: Name of the Medium Flavor supported by the cloud provider
77 description: Name of the Large Flavor supported by the cloud provider
81 description: Name of the Extra Large Flavor supported by the cloud provider
85 description: Name of the Extra Extra Large Flavor supported by the cloud provider
89 description: Security group used by DCAE GEN 2
93 description: Base name of ONAP VMs
97 description: Public/Private key pair name
101 description: Public/Private key pair name for DCAE GEN 2
105 description: Public key to be installed on the compute instance
109 description: Public key to be installed on the DCAE GEN 2 compute instance
113 description: Complete URL for the Nexus repository.
117 description: Complete URL for the Nexus repository for docker images.
121 description: Nexus Repository username
125 description: Nexus Repository Password
129 description: Artifacts version of ONAP components
133 description: DMaaP Topic name
137 description: Openstack tenant ID
141 description: Openstack username
143 openstack_auth_method:
145 description: Openstack authentication method (password VS. api-key)
149 description: Openstack password or API Key
153 description: URL of Openstack Horizon
157 description: URL of Openstack Keystone
161 description: Cloud Provider Name
164 ######################
166 # Network parameters #
168 ######################
171 type: comma_delimited_list
172 description: List of External DNS for OAM ONAP network
176 description: First element of the dns_list for ONAP network
180 description: CIDR of the OAM ONAP network
182 ### Floating IP addresses ###
224 ### Private IP addresses ###
268 ###########################
270 # Parameters used by DCAE #
272 ###########################
274 dcae_base_environment:
276 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
280 description: DCAE Zone to use in VM names created by DCAE controller
284 description: DCAE State to use in VM names created by DCAE controller
288 description: Root URL of Nexus repository
292 description: Snapshot of Maven repository for DCAE deployment
296 description: Region where the DCAE controller will spin the VMs
300 description: Branch of the Gitlab repository
304 description: DCAE Code Version Number
306 #####################
308 # ONAP repositories #
310 #####################
339 ################################
341 # Docker versions and branches #
343 ################################
420 type: OS::Heat::RandomString
425 # Public key used to access ONAP components
427 type: OS::Nova::KeyPair
433 base: { get_param: key_name }
434 rand: { get_resource: random-str }
435 public_key: { get_param: pub_key }
436 save_private_key: false
438 # Public key used to access DCAE GEN 2
440 type: OS::Nova::KeyPair
446 base: { get_param: dcae_key_name }
447 rand: { get_resource: random-str }
448 public_key: { get_param: dcae_pub_key }
449 save_private_key: true
451 # ONAP management private network
453 type: OS::Neutron::Net
457 template: oam_onap_rand
459 rand: { get_resource: random-str }
462 type: OS::Neutron::Subnet
466 template: oam_onap_rand
468 rand: { get_resource: random-str }
469 network_id: { get_resource: oam_onap }
470 cidr: { get_param: oam_network_cidr }
471 dns_nameservers: { get_param: dns_list }
474 type: OS::Neutron::Router
476 external_gateway_info:
477 network: { get_param: public_net_id }
479 - ip_address: { get_param: router_gateway_ip }
480 subnet: { get_param: public_subnet_id }
483 type: OS::Neutron::RouterInterface
485 router_id: { get_resource: router }
486 subnet_id: { get_resource: oam_onap_subnet }
489 # DNS Server instantiation
491 type: OS::Neutron::Port
493 network: { get_resource: oam_onap }
494 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
497 type: OS::Neutron::FloatingIP
499 floating_network_id: { get_param: public_net_id }
500 port_id: { get_resource: dns_private_port }
501 floating_ip_address: { get_param: dns_float_ip }
504 type: OS::Nova::Server
506 image: { get_param: ubuntu_1404_image }
507 flavor: { get_param: flavor_small }
510 template: base-dns-server
512 base: { get_param: vm_base_name }
513 key_name: { get_resource: vm_key }
515 - port: { get_resource: dns_private_port }
516 user_data_format: RAW
520 __nexus_repo__: { get_param: nexus_repo }
521 __artifacts_version__: { get_param: artifacts_version }
522 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
523 __dns_ip_addr__: { get_param: dns_ip_addr }
524 __aai1_ip_addr__: { get_param: aai1_ip_addr }
525 __aai2_ip_addr__: { get_param: aai2_ip_addr }
526 __appc_ip_addr__: { get_param: appc_ip_addr }
527 __dcae_ip_addr__: { get_param: dcae_ip_addr }
528 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
529 __so_ip_addr__: { get_param: so_ip_addr }
530 __mr_ip_addr__: { get_param: mr_ip_addr }
531 __policy_ip_addr__: { get_param: policy_ip_addr }
532 __portal_ip_addr__: { get_param: portal_ip_addr }
533 __robot_ip_addr__: { get_param: robot_ip_addr }
534 __sdc_ip_addr__: { get_param: sdc_ip_addr }
535 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
536 __vid_ip_addr__: { get_param: vid_ip_addr }
537 __clamp_ip_addr__: { get_param: clamp_ip_addr }
538 __openo_ip_addr__: { get_param: openo_ip_addr }
539 __cloud_env__: { get_param: cloud_env }
540 __external_dns__: { get_param: external_dns }
544 # Create configuration files
546 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
547 echo "__cloud_env__" > /opt/config/cloud_env.txt
548 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
549 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
550 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
551 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
552 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
553 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
554 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
555 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
556 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
557 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
558 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
559 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
560 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
561 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
562 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
563 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
564 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
565 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
566 echo "__external_dns__" > /opt/config/external_dns.txt
568 # Download and run install script
569 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
571 chmod +x dns_install.sh
575 # A&AI instantiation (2 VMs)
577 type: OS::Neutron::Port
579 network: { get_resource: oam_onap }
580 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
583 type: OS::Neutron::FloatingIP
585 floating_network_id: { get_param: public_net_id }
586 port_id: { get_resource: aai1_private_port }
587 floating_ip_address: { get_param: aai1_float_ip }
590 type: OS::Nova::Server
593 image: { get_param: ubuntu_1404_image }
594 flavor: { get_param: flavor_xlarge }
597 template: base-aai-inst1
599 base: { get_param: vm_base_name }
600 key_name: { get_resource: vm_key }
602 - port: { get_resource: aai1_private_port }
603 user_data_format: RAW
607 __nexus_repo__: { get_param: nexus_repo }
608 __nexus_docker_repo__: { get_param: nexus_docker_repo }
609 __nexus_username__: { get_param: nexus_username }
610 __nexus_password__: { get_param: nexus_password }
611 __dmaap_topic__: { get_param: dmaap_topic }
612 __artifacts_version__: { get_param: artifacts_version }
613 __dns_ip_addr__: { get_param: dns_ip_addr }
614 __docker_version__: { get_param: aai_docker }
615 __cloud_env__: { get_param: cloud_env }
616 __gerrit_branch__: { get_param: aai_branch }
617 __external_dns__: { get_param: external_dns }
618 __aai_repo__: { get_param: aai_repo }
622 # Create configuration files
624 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
625 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
626 echo "__nexus_username__" > /opt/config/nexus_username.txt
627 echo "__nexus_password__" > /opt/config/nexus_password.txt
628 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
629 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
630 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
631 echo "__docker_version__" > /opt/config/docker_version.txt
632 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
633 echo "aai_instance_1" > /opt/config/aai_instance.txt
634 echo "__cloud_env__" > /opt/config/cloud_env.txt
635 echo "__external_dns__" > /opt/config/external_dns.txt
636 echo "__aai_repo__" > /opt/config/remote_repo.txt
638 # Download and run install script
639 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
641 chmod +x aai_install.sh
646 type: OS::Neutron::Port
648 network: { get_resource: oam_onap }
649 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
652 type: OS::Neutron::FloatingIP
654 floating_network_id: { get_param: public_net_id }
655 port_id: { get_resource: aai2_private_port }
656 floating_ip_address: { get_param: aai2_float_ip }
659 type: OS::Nova::Server
661 image: { get_param: ubuntu_1404_image }
662 flavor: { get_param: flavor_xlarge }
665 template: base-aai-inst2
667 base: { get_param: vm_base_name }
668 key_name: { get_resource: vm_key }
670 - port: { get_resource: aai2_private_port }
671 user_data_format: RAW
675 __nexus_repo__: { get_param: nexus_repo }
676 __nexus_docker_repo__: { get_param: nexus_docker_repo }
677 __nexus_username__: { get_param: nexus_username }
678 __nexus_password__: { get_param: nexus_password }
679 __dmaap_topic__: { get_param: dmaap_topic }
680 __artifacts_version__: { get_param: artifacts_version }
681 __dns_ip_addr__: { get_param: dns_ip_addr }
682 __docker_version__: { get_param: aai_docker }
683 __cloud_env__: { get_param: cloud_env }
684 __gerrit_branch__: { get_param: aai_branch }
685 __external_dns__: { get_param: external_dns }
686 __aai_repo__: { get_param: aai_repo }
690 # Create configuration files
692 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
693 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
694 echo "__nexus_username__" > /opt/config/nexus_username.txt
695 echo "__nexus_password__" > /opt/config/nexus_password.txt
696 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
697 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
698 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
699 echo "__docker_version__" > /opt/config/docker_version.txt
700 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
701 echo "aai_instance_2" > /opt/config/aai_instance.txt
702 echo "__cloud_env__" > /opt/config/cloud_env.txt
703 echo "__external_dns__" > /opt/config/external_dns.txt
704 echo "__aai_repo__" > /opt/config/remote_repo.txt
706 # Download and run install script
707 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
709 chmod +x aai_install.sh
715 type: OS::Neutron::Port
717 network: { get_resource: oam_onap }
718 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
721 type: OS::Neutron::FloatingIP
723 floating_network_id: { get_param: public_net_id }
724 port_id: { get_resource: so_private_port }
725 floating_ip_address: { get_param: so_float_ip }
728 type: OS::Nova::Server
730 image: { get_param: ubuntu_1604_image }
731 flavor: { get_param: flavor_large }
736 base: { get_param: vm_base_name }
737 key_name: { get_resource: vm_key }
739 - port: { get_resource: so_private_port }
740 user_data_format: RAW
744 __nexus_repo__: { get_param: nexus_repo }
745 __nexus_docker_repo__: { get_param: nexus_docker_repo }
746 __nexus_username__: { get_param: nexus_username }
747 __nexus_password__: { get_param: nexus_password }
748 __openstack_username__: { get_param: openstack_username }
749 __openstack_tenant_id__: { get_param: openstack_tenant_id }
750 __openstack_api_key__: { get_param: openstack_api_key }
751 __openstack_region__: { get_param: openstack_region }
752 __keystone_url__: { get_param: keystone_url }
753 __dmaap_topic__: { get_param: dmaap_topic }
754 __artifacts_version__: { get_param: artifacts_version }
755 __dns_ip_addr__: { get_param: dns_ip_addr }
756 __docker_version__: { get_param: so_docker }
757 __gerrit_branch__: { get_param: so_branch }
758 __cloud_env__: { get_param: cloud_env }
759 __external_dns__: { get_param: external_dns }
760 __so_repo__: { get_param: so_repo }
764 # Create configuration files
766 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
767 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
768 echo "__nexus_username__" > /opt/config/nexus_username.txt
769 echo "__nexus_password__" > /opt/config/nexus_password.txt
770 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
771 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
772 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
773 echo "__openstack_username__" > /opt/config/openstack_username.txt
774 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
775 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
776 echo "__openstack_region__" > /opt/config/openstack_region.txt
777 echo "__keystone_url__" > /opt/config/keystone.txt
778 echo "__docker_version__" > /opt/config/docker_version.txt
779 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
780 echo "__cloud_env__" > /opt/config/cloud_env.txt
781 echo "__external_dns__" > /opt/config/external_dns.txt
782 echo "__so_repo__" > /opt/config/remote_repo.txt
784 # Download and run install script
785 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
787 chmod +x so_install.sh
791 # Message Router instantiation
792 mrouter_private_port:
793 type: OS::Neutron::Port
795 network: { get_resource: oam_onap }
796 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
799 type: OS::Neutron::FloatingIP
801 floating_network_id: { get_param: public_net_id }
802 port_id: { get_resource: mrouter_private_port }
803 floating_ip_address: { get_param: mr_float_ip }
806 type: OS::Nova::Server
808 image: { get_param: ubuntu_1404_image }
809 flavor: { get_param: flavor_large }
812 template: base-message-router
814 base: { get_param: vm_base_name }
815 key_name: { get_resource: vm_key }
817 - port: { get_resource: mrouter_private_port }
818 user_data_format: RAW
822 __nexus_repo__: { get_param: nexus_repo }
823 __nexus_docker_repo__: { get_param: nexus_docker_repo }
824 __nexus_username__: { get_param: nexus_username }
825 __nexus_password__: { get_param: nexus_password }
826 __artifacts_version__: { get_param: artifacts_version }
827 __dns_ip_addr__: { get_param: dns_ip_addr }
828 __gerrit_branch__: { get_param: mr_branch }
829 __cloud_env__: { get_param: cloud_env }
830 __external_dns__: { get_param: external_dns }
831 __mr_repo__: { get_param: mr_repo }
835 # Create configuration files
837 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
838 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
839 echo "__nexus_username__" > /opt/config/nexus_username.txt
840 echo "__nexus_password__" > /opt/config/nexus_password.txt
841 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
842 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
843 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
844 echo "__cloud_env__" > /opt/config/cloud_env.txt
845 echo "__external_dns__" > /opt/config/external_dns.txt
846 echo "__mr_repo__" > /opt/config/remote_repo.txt
848 # Download and run install script
849 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
851 chmod +x mr_install.sh
855 # Robot Framework instantiation
857 type: OS::Neutron::Port
859 network: { get_resource: oam_onap }
860 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
863 type: OS::Neutron::FloatingIP
865 floating_network_id: { get_param: public_net_id }
866 port_id: { get_resource: robot_private_port }
867 floating_ip_address: { get_param: robot_float_ip }
870 type: OS::Nova::Server
872 image: { get_param: ubuntu_1604_image }
873 flavor: { get_param: flavor_medium }
878 base: { get_param: vm_base_name }
879 key_name: { get_resource: vm_key }
881 - port: { get_resource: robot_private_port }
882 user_data_format: RAW
886 __nexus_repo__: { get_param: nexus_repo }
887 __nexus_docker_repo__: { get_param: nexus_docker_repo }
888 __nexus_username__: { get_param: nexus_username }
889 __nexus_password__: { get_param: nexus_password }
890 __network_name__: { get_attr: [oam_onap, name] }
891 __openstack_username__: { get_param: openstack_username }
892 __openstack_api_key__: { get_param : openstack_api_key }
893 __openstack_tenant_id__: { get_param: openstack_tenant_id }
894 __artifacts_version__: { get_param: artifacts_version }
895 __openstack_region__: { get_param: openstack_region }
896 __dns_ip_addr__: { get_param: dns_ip_addr }
897 __docker_version__: { get_param: robot_docker }
898 __gerrit_branch__: { get_param: robot_branch }
899 __keystone_url__: { get_param: keystone_url }
900 __aai1_ip_addr__: { get_param: aai1_ip_addr }
901 __aai2_ip_addr__: { get_param: aai2_ip_addr }
902 __appc_ip_addr__: { get_param: appc_ip_addr }
903 __dcae_ip_addr__: { get_param: dcae_ip_addr }
904 __so_ip_addr__: { get_param: so_ip_addr }
905 __mr_ip_addr__: { get_param: mr_ip_addr }
906 __policy_ip_addr__: { get_param: policy_ip_addr }
907 __portal_ip_addr__: { get_param: portal_ip_addr }
908 __sdc_ip_addr__: { get_param: sdc_ip_addr }
909 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
910 __vid_ip_addr__: { get_param: vid_ip_addr }
911 __clamp_ip_addr__: { get_param: clamp_ip_addr }
912 __openo_ip_addr__: { get_param: openo_ip_addr }
913 __cloud_env__: { get_param: cloud_env }
914 __external_dns__: { get_param: external_dns }
915 __vm_image_name__: { get_param: ubuntu_1404_image }
916 __vm_flavor__: { get_param: flavor_medium }
917 __robot_repo__: { get_param: robot_repo }
921 # Create configuration files
923 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
924 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
925 echo "__nexus_username__" > /opt/config/nexus_username.txt
926 echo "__nexus_password__" > /opt/config/nexus_password.txt
927 echo "__network_name__" > /opt/config/network.txt
928 echo "__openstack_username__" > /opt/config/openstack_username.txt
929 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
930 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
931 echo "__openstack_region__" > /opt/config/region.txt
932 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
933 echo "__docker_version__" > /opt/config/docker_version.txt
934 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
935 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
936 echo "__keystone_url__" > /opt/config/keystone.txt
937 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
938 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
939 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
940 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
941 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
942 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
943 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
944 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
945 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
946 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
947 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
948 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
949 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
950 echo "__cloud_env__" > /opt/config/cloud_env.txt
951 echo "__external_dns__" > /opt/config/external_dns.txt
952 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
953 echo "__vm_flavor__" > /opt/config/vm_flavor.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 }}]
971 type: OS::Neutron::FloatingIP
973 floating_network_id: { get_param: public_net_id }
974 port_id: { get_resource: vid_private_port }
975 floating_ip_address: { get_param: vid_float_ip }
978 type: OS::Nova::Server
980 image: { get_param: ubuntu_1404_image }
981 flavor: { get_param: flavor_medium }
986 base: { get_param: vm_base_name }
987 key_name: { get_resource: vm_key }
989 - port: { get_resource: vid_private_port }
990 user_data_format: RAW
994 __nexus_repo__: { get_param: nexus_repo }
995 __nexus_docker_repo__: { get_param: nexus_docker_repo }
996 __nexus_username__: { get_param: nexus_username }
997 __nexus_password__: { get_param: nexus_password }
998 __artifacts_version__: { get_param: artifacts_version }
999 __dns_ip_addr__: { get_param: dns_ip_addr }
1000 __docker_version__: { get_param: vid_docker }
1001 __gerrit_branch__: { get_param: vid_branch }
1002 __cloud_env__: { get_param: cloud_env }
1003 __external_dns__: { get_param: external_dns }
1004 __vid_repo__: { get_param: vid_repo }
1008 # Create configuration files
1009 mkdir -p /opt/config
1010 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1011 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1012 echo "__nexus_username__" > /opt/config/nexus_username.txt
1013 echo "__nexus_password__" > /opt/config/nexus_password.txt
1014 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1015 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1016 echo "__docker_version__" > /opt/config/docker_version.txt
1017 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1018 echo "__cloud_env__" > /opt/config/cloud_env.txt
1019 echo "__external_dns__" > /opt/config/external_dns.txt
1020 echo "__vid_repo__" > /opt/config/remote_repo.txt
1022 # Download and run install script
1023 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
1025 chmod +x vid_install.sh
1029 # SDN-C instantiation
1031 type: OS::Neutron::Port
1033 network: { get_resource: oam_onap }
1034 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
1037 type: OS::Neutron::FloatingIP
1039 floating_network_id: { get_param: public_net_id }
1040 port_id: { get_resource: sdnc_private_port }
1041 floating_ip_address: { get_param: sdnc_float_ip }
1044 type: OS::Nova::Server
1046 image: { get_param: ubuntu_1404_image }
1047 flavor: { get_param: flavor_large }
1052 base: { get_param: vm_base_name }
1053 key_name: { get_resource: vm_key }
1055 - port: { get_resource: sdnc_private_port }
1056 user_data_format: RAW
1060 __nexus_repo__: { get_param: nexus_repo }
1061 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1062 __nexus_username__: { get_param: nexus_username }
1063 __nexus_password__: { get_param: nexus_password }
1064 __artifacts_version__: { get_param: artifacts_version }
1065 __dns_ip_addr__: { get_param: dns_ip_addr }
1066 __docker_version__: { get_param: sdnc_docker }
1067 __gerrit_branch__: { get_param: sdnc_branch }
1068 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1069 __cloud_env__: { get_param: cloud_env }
1070 __external_dns__: { get_param: external_dns }
1071 __sdnc_repo__: { get_param: sdnc_repo }
1075 # Create configuration files
1076 mkdir -p /opt/config
1077 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1078 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1079 echo "__nexus_username__" > /opt/config/nexus_username.txt
1080 echo "__nexus_password__" > /opt/config/nexus_password.txt
1081 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1082 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1083 echo "__docker_version__" > /opt/config/docker_version.txt
1084 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1085 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1086 echo "__cloud_env__" > /opt/config/cloud_env.txt
1087 echo "__external_dns__" > /opt/config/external_dns.txt
1088 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1090 # Download and run install script
1091 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1093 chmod +x sdnc_install.sh
1099 type: OS::Neutron::Port
1101 network: { get_resource: oam_onap }
1102 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1105 type: OS::Neutron::FloatingIP
1107 floating_network_id: { get_param: public_net_id }
1108 port_id: { get_resource: sdc_private_port }
1109 floating_ip_address: { get_param: sdc_float_ip }
1112 type: OS::Cinder::Volume
1118 type: OS::Nova::Server
1120 image: { get_param: ubuntu_1604_image }
1121 flavor: { get_param: flavor_xlarge }
1126 base: { get_param: vm_base_name }
1127 key_name: { get_resource: vm_key }
1129 - port: { get_resource: sdc_private_port }
1130 block_device_mapping:
1131 - device_name: /dev/vdb
1132 volume_id: {get_resource: sdc_volume_data}
1133 user_data_format: RAW
1137 __nexus_repo__: { get_param: nexus_repo }
1138 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1139 __nexus_username__: { get_param: nexus_username }
1140 __nexus_password__: { get_param: nexus_password }
1141 __env_name__: { get_param: dmaap_topic }
1142 __artifacts_version__: { get_param: artifacts_version }
1143 __dns_ip_addr__: { get_param: dns_ip_addr }
1144 __mr_ip_addr__: { get_param: mr_ip_addr }
1145 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1146 __docker_version__: { get_param: sdc_docker }
1147 __gerrit_branch__: { get_param: sdc_branch }
1148 __cloud_env__: { get_param: cloud_env }
1149 __external_dns__: { get_param: external_dns }
1150 __sdc_repo__: { get_param: sdc_repo }
1154 # Create configuration files
1155 mkdir -p /opt/config
1156 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1157 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1158 echo "__nexus_username__" > /opt/config/nexus_username.txt
1159 echo "__nexus_password__" > /opt/config/nexus_password.txt
1160 echo "__env_name__" > /opt/config/env_name.txt
1161 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1162 echo "__public_ip__" > /opt/config/public_ip.txt
1163 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1164 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1165 echo "__docker_version__" > /opt/config/docker_version.txt
1166 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1167 echo "__cloud_env__" > /opt/config/cloud_env.txt
1168 echo "__external_dns__" > /opt/config/external_dns.txt
1169 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1171 # Download and run install script
1172 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1174 chmod +x sdc_install.sh
1178 # PORTAL instantiation
1179 portal_private_port:
1180 type: OS::Neutron::Port
1182 network: { get_resource: oam_onap }
1183 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1186 type: OS::Neutron::FloatingIP
1188 floating_network_id: { get_param: public_net_id }
1189 port_id: { get_resource: portal_private_port }
1190 floating_ip_address: { get_param: portal_float_ip }
1193 type: OS::Nova::Server
1195 image: { get_param: ubuntu_1404_image }
1196 flavor: { get_param: flavor_large }
1199 template: base-portal
1201 base: { get_param: vm_base_name }
1202 key_name: { get_resource: vm_key }
1204 - port: { get_resource: portal_private_port }
1205 user_data_format: RAW
1209 __nexus_repo__: { get_param: nexus_repo }
1210 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1211 __nexus_username__: { get_param: nexus_username }
1212 __nexus_password__: { get_param: nexus_password }
1213 __artifacts_version__: { get_param: artifacts_version }
1214 __dns_ip_addr__: { get_param: dns_ip_addr }
1215 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1216 __docker_version__: { get_param: portal_docker }
1217 __gerrit_branch__: { get_param: portal_branch }
1218 __cloud_env__: { get_param: cloud_env }
1219 __cli_docker__: { get_param: cli_docker }
1220 __external_dns__: { get_param: external_dns }
1221 __portal_repo__: { get_param: portal_repo }
1225 # Create configuration files
1226 mkdir -p /opt/config
1227 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1228 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1229 echo "__nexus_username__" > /opt/config/nexus_username.txt
1230 echo "__nexus_password__" > /opt/config/nexus_password.txt
1231 echo "__public_ip__" > /opt/config/public_ip.txt
1232 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1233 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1234 echo "__docker_version__" > /opt/config/docker_version.txt
1235 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1236 echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1237 echo "__cloud_env__" > /opt/config/cloud_env.txt
1238 echo "__external_dns__" > /opt/config/external_dns.txt
1239 echo "__portal_repo__" > /opt/config/remote_repo.txt
1241 # Download and run install script
1242 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1244 chmod +x portal_install.sh
1248 # DCAE Controller instantiation
1249 # dcae_c_private_port:
1250 # type: OS::Neutron::Port
1252 # network: { get_resource: oam_onap }
1253 # fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1255 # dcae_c_floating_ip:
1256 # type: OS::Neutron::FloatingIP
1258 # floating_network_id: { get_param: public_net_id }
1259 # port_id: { get_resource: dcae_c_private_port }
1260 # floating_ip_address: { get_param: dcae_float_ip }
1263 # type: OS::Nova::Server
1265 # image: { get_param: ubuntu_1404_image }
1266 # flavor: { get_param: flavor_medium }
1269 # template: base-dcae-controller
1271 # base: { get_param: vm_base_name }
1272 # key_name: { get_resource: vm_key }
1274 # - port: { get_resource: dcae_c_private_port }
1275 # user_data_format: RAW
1279 # __nexus_repo__: { get_param: nexus_repo }
1280 # __nexus_docker_repo__: { get_param: nexus_docker_repo }
1281 # __nexus_username__: { get_param: nexus_username }
1282 # __nexus_password__: { get_param: nexus_password }
1283 # __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1284 # __gitlab_branch__: { get_param: gitlab_branch }
1285 # __dns_ip_addr__: { get_param: dns_ip_addr }
1286 # __dcae_zone__: { get_param: dcae_zone }
1287 # __dcae_state__: { get_param: dcae_state }
1288 # __artifacts_version__: { get_param: artifacts_version }
1289 # __tenant_id__: { get_param: openstack_tenant_id }
1290 # __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1291 # __openstack_user__: { get_param: openstack_username }
1292 # __openstack_password__: { get_param: openstack_api_key }
1293 # __openstack_auth_method__: { get_param: openstack_auth_method }
1294 # __key_name__: { get_param: key_name }
1295 # __rand_str__: { get_resource: random-str }
1296 # __pub_key__: { get_param: pub_key }
1297 # __nexus_repo_root__: { get_param: nexus_repo_root }
1298 # __openstack_region__: { get_param: openstack_region }
1299 # __horizon_url__: { get_param: horizon_url }
1300 # __keystone_url__: { get_param: keystone_url }
1301 # __docker_version__: { get_param: dcae_docker }
1302 # __gerrit_branch__: { get_param: dcae_branch }
1303 # __dcae_code_version__: { get_param: dcae_code_version }
1304 # __cloud_env__: { get_param: cloud_env }
1305 # __public_net_id__: { get_param: public_net_id }
1306 # __dcae_base_environment__: { get_param: dcae_base_environment }
1307 # __dcae_ip_addr__: { get_param: dcae_ip_addr }
1308 # __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1309 # __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1310 # __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1311 # __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1312 # __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1313 # __dcae_float_ip__: { get_param: dcae_float_ip }
1314 # __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1315 # __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1316 # __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1317 # __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1318 # __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1319 # __external_dns__: { get_param: external_dns }
1320 # __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1321 # __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1322 # __flavor_small__: { get_param: flavor_small }
1323 # __flavor_medium__: { get_param: flavor_medium }
1324 # __flavor_large__: { get_param: flavor_large }
1325 # __flavor_xlarge__: { get_param: flavor_xlarge }
1326 # __dcae_repo__: { get_param: dcae_repo }
1327 # __mr_repo__: { get_param: mr_repo }
1331 # Create configuration files
1332 # mkdir -p /opt/config
1333 # echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1334 # echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1335 # echo "__nexus_username__" > /opt/config/nexus_username.txt
1336 # echo "__nexus_password__" > /opt/config/nexus_password.txt
1337 # echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1338 # echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1339 # echo "__docker_version__" > /opt/config/docker_version.txt
1340 # echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1341 # echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1342 # echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1343 # echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1344 # echo "__dcae_state__" > /opt/config/dcae_state.txt
1345 # echo "__tenant_id__" > /opt/config/tenant_id.txt
1346 # echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1347 # echo "__openstack_user__" > /opt/config/openstack_user.txt
1348 # echo "__openstack_password__" > /opt/config/openstack_password.txt
1349 # echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1350 # echo "__key_name__" > /opt/config/key_name.txt
1351 # echo "__rand_str__" > /opt/config/rand_str.txt
1352 # echo "__pub_key__" > /opt/config/pub_key.txt
1353 # echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1354 # echo "__openstack_region__" > /opt/config/openstack_region.txt
1355 # echo "__horizon_url__" > /opt/config/horizon_url.txt
1356 # echo "__keystone_url__" > /opt/config/keystone_url.txt
1357 # echo "__cloud_env__" > /opt/config/cloud_env.txt
1358 # echo "__public_net_id__" > /opt/config/public_net_id.txt
1359 # echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1360 # echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1361 # echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1362 # echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1363 # echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1364 # echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1365 # echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1366 # echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1367 # echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1368 # echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1369 # echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1370 # echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1371 # echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1372 # echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1373 # echo "__external_dns__" > /opt/config/external_dns.txt
1374 # echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1375 # echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1376 # echo "__flavor_small__" > /opt/config/flavor_small.txt
1377 # echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1378 # echo "__flavor_large__" > /opt/config/flavor_large.txt
1379 # echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1380 # echo "__dcae_repo__" > /opt/config/remote_repo.txt
1381 # echo "__mr_repo__" > /opt/config/mr_repo.txt
1383 # Download and run install script
1384 # curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1386 # chmod +x dcae_install.sh
1390 # Policy Engine instantiation
1391 policy_private_port:
1392 type: OS::Neutron::Port
1394 network: { get_resource: oam_onap }
1395 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1398 type: OS::Neutron::FloatingIP
1400 floating_network_id: { get_param: public_net_id }
1401 port_id: { get_resource: policy_private_port }
1402 floating_ip_address: { get_param: policy_float_ip }
1405 type: OS::Nova::Server
1407 image: { get_param: ubuntu_1404_image }
1408 flavor: { get_param: flavor_xlarge }
1411 template: base-policy
1413 base: { get_param: vm_base_name }
1414 key_name: { get_resource: vm_key }
1416 - port: { get_resource: policy_private_port }
1417 user_data_format: RAW
1421 __nexus_repo__: { get_param: nexus_repo }
1422 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1423 __nexus_username__: { get_param: nexus_username }
1424 __nexus_password__: { get_param: nexus_password }
1425 __artifacts_version__: { get_param: artifacts_version }
1426 __dns_ip_addr__: { get_param: dns_ip_addr }
1427 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1428 __docker_version__: { get_param: policy_docker }
1429 __gerrit_branch__: { get_param: policy_branch }
1430 __cloud_env__: { get_param: cloud_env }
1431 __external_dns__: { get_param: external_dns }
1432 __policy_repo__: { get_param: policy_repo }
1436 # Create configuration files
1437 mkdir -p /opt/config
1438 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1439 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1440 echo "__nexus_username__" > /opt/config/nexus_username.txt
1441 echo "__nexus_password__" > /opt/config/nexus_password.txt
1442 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1443 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1444 echo "__public_ip__" > /opt/config/public_ip.txt
1445 echo "__docker_version__" > /opt/config/docker_version.txt
1446 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1447 echo "__cloud_env__" > /opt/config/cloud_env.txt
1448 echo "__external_dns__" > /opt/config/external_dns.txt
1449 echo "__policy_repo__" > /opt/config/remote_repo.txt
1451 # Download and run install script
1452 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1454 chmod +x policy_install.sh
1458 # APP-C instantiation
1460 type: OS::Neutron::Port
1462 network: { get_resource: oam_onap }
1463 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1466 type: OS::Neutron::FloatingIP
1468 floating_network_id: { get_param: public_net_id }
1469 port_id: { get_resource: appc_private_port }
1470 floating_ip_address: { get_param: appc_float_ip }
1473 type: OS::Nova::Server
1475 image: { get_param: ubuntu_1404_image }
1476 flavor: { get_param: flavor_large }
1481 base: { get_param: vm_base_name }
1482 key_name: { get_resource: vm_key }
1484 - port: { get_resource: appc_private_port }
1485 user_data_format: RAW
1489 __nexus_repo__: { get_param: nexus_repo }
1490 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1491 __nexus_username__: { get_param: nexus_username }
1492 __nexus_password__: { get_param: nexus_password }
1493 __dmaap_topic__: { get_param: dmaap_topic }
1494 __artifacts_version__: { get_param: artifacts_version }
1495 __dns_ip_addr__: { get_param: dns_ip_addr }
1496 __docker_version__: { get_param: appc_docker }
1497 __gerrit_branch__: { get_param: appc_branch }
1498 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1499 __cloud_env__: { get_param: cloud_env }
1500 __external_dns__: { get_param: external_dns }
1501 __appc_repo__: { get_param: appc_repo }
1505 # Create configuration files
1506 mkdir -p /opt/config
1507 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1508 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1509 echo "__nexus_username__" > /opt/config/nexus_username.txt
1510 echo "__nexus_password__" > /opt/config/nexus_password.txt
1511 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1512 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1513 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1514 echo "__docker_version__" > /opt/config/docker_version.txt
1515 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1516 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1517 echo "__cloud_env__" > /opt/config/cloud_env.txt
1518 echo "__external_dns__" > /opt/config/external_dns.txt
1519 echo "__appc_repo__" > /opt/config/remote_repo.txt
1521 # Download and run install script
1522 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1524 chmod +x appc_install.sh
1528 # CLAMP instantiation
1530 type: OS::Neutron::Port
1532 network: { get_resource: oam_onap }
1533 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1536 type: OS::Neutron::FloatingIP
1538 floating_network_id: { get_param: public_net_id }
1539 port_id: { get_resource: clamp_private_port }
1540 floating_ip_address: { get_param: clamp_float_ip }
1543 type: OS::Nova::Server
1545 image: { get_param: ubuntu_1604_image }
1546 flavor: { get_param: flavor_medium }
1549 template: base-clamp
1551 base: { get_param: vm_base_name }
1552 key_name: { get_resource: vm_key }
1554 - port: { get_resource: clamp_private_port }
1555 user_data_format: RAW
1559 __nexus_repo__: { get_param: nexus_repo }
1560 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1561 __nexus_username__: { get_param: nexus_username }
1562 __nexus_password__: { get_param: nexus_password }
1563 __openstack_username__: { get_param: openstack_username }
1564 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1565 __openstack_api_key__: { get_param: openstack_api_key }
1566 __openstack_region__: { get_param: openstack_region }
1567 __keystone_url__: { get_param: keystone_url }
1568 __dmaap_topic__: { get_param: dmaap_topic }
1569 __artifacts_version__: { get_param: artifacts_version }
1570 __dns_ip_addr__: { get_param: dns_ip_addr }
1571 __docker_version__: { get_param: clamp_docker }
1572 __gerrit_branch__: { get_param: clamp_branch }
1573 __cloud_env__: { get_param: cloud_env }
1574 __external_dns__: { get_param: external_dns }
1575 __clamp_repo__: { get_param: clamp_repo }
1579 # Create configuration files
1580 mkdir -p /opt/config
1581 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1582 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1583 echo "__nexus_username__" > /opt/config/nexus_username.txt
1584 echo "__nexus_password__" > /opt/config/nexus_password.txt
1585 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1586 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1587 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1588 echo "__openstack_username__" > /opt/config/openstack_username.txt
1589 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1590 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1591 echo "__openstack_region__" > /opt/config/openstack_region.txt
1592 echo "__keystone_url__" > /opt/config/keystone.txt
1593 echo "__docker_version__" > /opt/config/docker_version.txt
1594 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1595 echo "__cloud_env__" > /opt/config/cloud_env.txt
1596 echo "__external_dns__" > /opt/config/external_dns.txt
1597 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1599 # Download and run install script
1600 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1602 chmod +x clamp_install.sh
1606 # OPEN-O VM instantiation
1608 type: OS::Neutron::Port
1610 network: { get_resource: oam_onap }
1611 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1614 type: OS::Neutron::FloatingIP
1616 floating_network_id: { get_param: public_net_id }
1617 port_id: { get_resource: openo_private_port }
1618 floating_ip_address: { get_param: openo_float_ip }
1621 type: OS::Nova::Server
1623 image: { get_param: ubuntu_1604_image }
1624 flavor: { get_param: flavor_xxlarge }
1627 template: base-openo-server
1629 base: { get_param: vm_base_name }
1630 key_name: { get_resource: vm_key }
1632 - port: { get_resource: openo_private_port }
1633 user_data_format: RAW
1637 __nexus_repo__: { get_param: nexus_repo }
1638 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1639 __nexus_username__: { get_param: nexus_username }
1640 __nexus_password__: { get_param: nexus_password }
1641 __artifacts_version__: { get_param: artifacts_version }
1642 __dns_ip_addr__: { get_param: dns_ip_addr }
1643 __oam_network_cidr__: { get_param: oam_network_cidr }
1644 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1645 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1646 __appc_ip_addr__: { get_param: appc_ip_addr }
1647 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1648 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1649 __so_ip_addr__: { get_param: so_ip_addr }
1650 __mr_ip_addr__: { get_param: mr_ip_addr }
1651 __policy_ip_addr__: { get_param: policy_ip_addr }
1652 __portal_ip_addr__: { get_param: portal_ip_addr }
1653 __robot_ip_addr__: { get_param: robot_ip_addr }
1654 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1655 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1656 __vid_ip_addr__: { get_param: vid_ip_addr }
1657 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1658 __openo_ip_addr__: { get_param: openo_ip_addr }
1659 __cloud_env__: { get_param: cloud_env }
1660 __external_dns__: { get_param: external_dns }
1661 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1662 __msb_docker__: { get_param: msb_docker }
1663 __mvim_docker__: { get_param: mvim_docker }
1664 __vfc_docker__: { get_param: vfc_docker }
1665 __uui_docker__: { get_param: uui_docker }
1666 __esr_docker__: { get_param: esr_docker }
1667 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1671 # Create configuration files
1672 mkdir -p /opt/config
1673 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1674 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1675 echo "__nexus_username__" > /opt/config/nexus_username.txt
1676 echo "__nexus_password__" > /opt/config/nexus_password.txt
1677 echo "__cloud_env__" > /opt/config/cloud_env.txt
1678 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1679 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1680 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1681 echo "__external_dns__" > /opt/config/external_dns.txt
1682 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1683 echo "__msb_docker__" > /opt/config/msb_docker.txt
1684 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1685 echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1686 echo "__uui_docker__" > /opt/config/uui_docker.txt
1687 echo "__esr_docker__" > /opt/config/esr_docker.txt
1688 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1690 # Create env file with the IP address of all ONAP components
1691 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1692 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1693 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1694 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1695 echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1696 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1697 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1698 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1699 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1700 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1701 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1702 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1703 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1704 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1705 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1707 # Download and run install script
1708 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1710 chmod +x openo_install.sh
1714 # DCAE GEN 2 Controller instantiation
1715 dcae_c_private_port:
1716 type: OS::Neutron::Port
1718 network: { get_resource: oam_onap }
1719 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1722 type: OS::Neutron::FloatingIP
1724 floating_network_id: { get_param: public_net_id }
1725 port_id: { get_resource: dcae_c_private_port }
1728 type: OS::Nova::Server
1730 image: { get_param: ubuntu_1604_image }
1731 flavor: { get_param: flavor_medium }
1734 template: base-dcae-controller
1736 base: { get_param: vm_base_name }
1737 key_name: { get_resource: dcae_vm_key }
1739 - port: { get_resource: dcae_c_private_port }
1740 user_data_format: RAW
1744 __nexus_repo__: { get_param: nexus_repo }
1745 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1746 __nexus_username__: { get_param: nexus_username }
1747 __nexus_password__: { get_param: nexus_password }
1748 __dns_ip_addr__: { get_param: dns_ip_addr }
1749 __dcae_zone__: { get_param: dcae_zone }
1750 __artifacts_version__: { get_param: artifacts_version }
1751 __tenant_id__: { get_param: openstack_tenant_id }
1752 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1753 __openstack_user__: { get_param: openstack_username }
1754 __openstack_password__: { get_param: openstack_api_key }
1755 __key_name__: { get_param: dcae_key_name }
1756 __pub_key__: { get_param: dcae_pub_key }
1757 __private_key__: { get_attr: [ dcae_vm_key, private_key ] }
1758 __openstack_region__: { get_param: openstack_region }
1759 __keystone_url__: { get_param: keystone_url }
1760 __docker_version__: { get_param: dcae_docker }
1761 __dcae_repo__: { get_param: dcae_repo }
1762 __gerrit_branch__: { get_param: dcae_branch }
1763 __cloud_env__: { get_param: cloud_env }
1764 __public_net_id__: { get_param: public_net_id }
1765 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1766 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1767 __external_dns__: { get_param: external_dns }
1768 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1769 __centos_7_image__: { get_param: centos_7_image }
1770 __security_group__ : { get_param: security_group }
1771 __flavor_medium__: { get_param: flavor_medium }
1772 __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1773 __rand_str__: { get_resource: random-str }
1778 # Create configuration files
1779 mkdir -p /opt/config
1780 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1781 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1782 echo "__nexus_username__" > /opt/config/nexus_username.txt
1783 echo "__nexus_password__" > /opt/config/nexus_password.txt
1784 echo "__docker_version__" > /opt/config/docker_version.txt
1785 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1786 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1787 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1788 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1789 echo "__tenant_id__" > /opt/config/tenant_id.txt
1790 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1791 echo "__openstack_user__" > /opt/config/openstack_user.txt
1792 echo "__openstack_password__" > /opt/config/openstack_password.txt
1793 echo "__key_name__" > /opt/config/key_name.txt
1794 echo "__pub_key__" > /opt/config/pub_key.txt
1795 echo "__private_key__" > /opt/config/priv_key
1796 echo "__openstack_region__" > /opt/config/openstack_region.txt
1797 echo "__keystone_url__" > /opt/config/keystone_url.txt
1798 echo "__cloud_env__" > /opt/config/cloud_env.txt
1799 echo "__public_net_id__" > /opt/config/public_net_id.txt
1800 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1801 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1802 echo "__external_dns__" > /opt/config/external_dns.txt
1803 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1804 echo "__centos_7_image__" > /opt/config/centos_7_image.txt
1805 echo "__security_group__" > /opt/config/security_group.txt
1806 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1807 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1808 echo "__mac_addr__" > /opt/config/mac_addr.txt
1809 echo "__rand_str__" > /opt/config/rand_str.txt
1811 # Download and run install script
1812 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1814 chmod +x dcae2_install.sh