1 ##########################################################################
3 #==================LICENSE_START==========================================
6 # Copyright © 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 ################################
418 type: OS::Heat::RandomString
423 # Public key used to access ONAP components
425 type: OS::Nova::KeyPair
431 base: { get_param: key_name }
432 rand: { get_resource: random-str }
433 public_key: { get_param: pub_key }
434 save_private_key: false
436 # Public key used to access DCAE GEN 2
438 type: OS::Nova::KeyPair
444 base: { get_param: dcae_key_name }
445 rand: { get_resource: random-str }
446 public_key: { get_param: dcae_pub_key }
447 save_private_key: true
449 # ONAP management private network
451 type: OS::Neutron::Net
455 template: oam_onap_rand
457 rand: { get_resource: random-str }
460 type: OS::Neutron::Subnet
464 template: oam_onap_rand
466 rand: { get_resource: random-str }
467 network_id: { get_resource: oam_onap }
468 cidr: { get_param: oam_network_cidr }
469 dns_nameservers: { get_param: dns_list }
472 type: OS::Neutron::Router
474 external_gateway_info:
475 network: { get_param: public_net_id }
477 - ip_address: { get_param: router_gateway_ip }
478 subnet: { get_param: public_subnet_id }
481 type: OS::Neutron::RouterInterface
483 router_id: { get_resource: router }
484 subnet_id: { get_resource: oam_onap_subnet }
487 # DNS Server instantiation
489 type: OS::Neutron::Port
491 network: { get_resource: oam_onap }
492 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
495 type: OS::Neutron::FloatingIP
497 floating_network_id: { get_param: public_net_id }
498 port_id: { get_resource: dns_private_port }
499 floating_ip_address: { get_param: dns_float_ip }
502 type: OS::Nova::Server
504 image: { get_param: ubuntu_1404_image }
505 flavor: { get_param: flavor_small }
508 template: base-dns-server
510 base: { get_param: vm_base_name }
511 key_name: { get_resource: vm_key }
513 - port: { get_resource: dns_private_port }
514 user_data_format: RAW
518 __nexus_repo__: { get_param: nexus_repo }
519 __artifacts_version__: { get_param: artifacts_version }
520 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
521 __dns_ip_addr__: { get_param: dns_ip_addr }
522 __aai1_ip_addr__: { get_param: aai1_ip_addr }
523 __aai2_ip_addr__: { get_param: aai2_ip_addr }
524 __appc_ip_addr__: { get_param: appc_ip_addr }
525 __dcae_ip_addr__: { get_param: dcae_ip_addr }
526 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
527 __so_ip_addr__: { get_param: so_ip_addr }
528 __mr_ip_addr__: { get_param: mr_ip_addr }
529 __policy_ip_addr__: { get_param: policy_ip_addr }
530 __portal_ip_addr__: { get_param: portal_ip_addr }
531 __robot_ip_addr__: { get_param: robot_ip_addr }
532 __sdc_ip_addr__: { get_param: sdc_ip_addr }
533 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
534 __vid_ip_addr__: { get_param: vid_ip_addr }
535 __clamp_ip_addr__: { get_param: clamp_ip_addr }
536 __openo_ip_addr__: { get_param: openo_ip_addr }
537 __cloud_env__: { get_param: cloud_env }
538 __external_dns__: { get_param: external_dns }
542 # Create configuration files
544 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
545 echo "__cloud_env__" > /opt/config/cloud_env.txt
546 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
547 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
548 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
549 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
550 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
551 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
552 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
553 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
554 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
555 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
556 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
557 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
558 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
559 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
560 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
561 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
562 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
563 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
564 echo "__external_dns__" > /opt/config/external_dns.txt
566 # Download and run install script
567 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
569 chmod +x dns_install.sh
573 # A&AI instantiation (2 VMs)
575 type: OS::Neutron::Port
577 network: { get_resource: oam_onap }
578 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
581 type: OS::Neutron::FloatingIP
583 floating_network_id: { get_param: public_net_id }
584 port_id: { get_resource: aai1_private_port }
585 floating_ip_address: { get_param: aai1_float_ip }
588 type: OS::Nova::Server
591 image: { get_param: ubuntu_1404_image }
592 flavor: { get_param: flavor_xlarge }
595 template: base-aai-inst1
597 base: { get_param: vm_base_name }
598 key_name: { get_resource: vm_key }
600 - port: { get_resource: aai1_private_port }
601 user_data_format: RAW
605 __nexus_repo__: { get_param: nexus_repo }
606 __nexus_docker_repo__: { get_param: nexus_docker_repo }
607 __nexus_username__: { get_param: nexus_username }
608 __nexus_password__: { get_param: nexus_password }
609 __dmaap_topic__: { get_param: dmaap_topic }
610 __artifacts_version__: { get_param: artifacts_version }
611 __dns_ip_addr__: { get_param: dns_ip_addr }
612 __docker_version__: { get_param: aai_docker }
613 __cloud_env__: { get_param: cloud_env }
614 __gerrit_branch__: { get_param: aai_branch }
615 __external_dns__: { get_param: external_dns }
616 __aai_repo__: { get_param: aai_repo }
620 # Create configuration files
622 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
623 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
624 echo "__nexus_username__" > /opt/config/nexus_username.txt
625 echo "__nexus_password__" > /opt/config/nexus_password.txt
626 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
627 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
628 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
629 echo "__docker_version__" > /opt/config/docker_version.txt
630 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
631 echo "aai_instance_1" > /opt/config/aai_instance.txt
632 echo "__cloud_env__" > /opt/config/cloud_env.txt
633 echo "__external_dns__" > /opt/config/external_dns.txt
634 echo "__aai_repo__" > /opt/config/remote_repo.txt
636 # Download and run install script
637 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
639 chmod +x aai_install.sh
644 type: OS::Neutron::Port
646 network: { get_resource: oam_onap }
647 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
650 type: OS::Neutron::FloatingIP
652 floating_network_id: { get_param: public_net_id }
653 port_id: { get_resource: aai2_private_port }
654 floating_ip_address: { get_param: aai2_float_ip }
657 type: OS::Nova::Server
659 image: { get_param: ubuntu_1404_image }
660 flavor: { get_param: flavor_xlarge }
663 template: base-aai-inst2
665 base: { get_param: vm_base_name }
666 key_name: { get_resource: vm_key }
668 - port: { get_resource: aai2_private_port }
669 user_data_format: RAW
673 __nexus_repo__: { get_param: nexus_repo }
674 __nexus_docker_repo__: { get_param: nexus_docker_repo }
675 __nexus_username__: { get_param: nexus_username }
676 __nexus_password__: { get_param: nexus_password }
677 __dmaap_topic__: { get_param: dmaap_topic }
678 __artifacts_version__: { get_param: artifacts_version }
679 __dns_ip_addr__: { get_param: dns_ip_addr }
680 __docker_version__: { get_param: aai_docker }
681 __cloud_env__: { get_param: cloud_env }
682 __gerrit_branch__: { get_param: aai_branch }
683 __external_dns__: { get_param: external_dns }
684 __aai_repo__: { get_param: aai_repo }
688 # Create configuration files
690 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
691 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
692 echo "__nexus_username__" > /opt/config/nexus_username.txt
693 echo "__nexus_password__" > /opt/config/nexus_password.txt
694 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
695 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
696 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
697 echo "__docker_version__" > /opt/config/docker_version.txt
698 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
699 echo "aai_instance_2" > /opt/config/aai_instance.txt
700 echo "__cloud_env__" > /opt/config/cloud_env.txt
701 echo "__external_dns__" > /opt/config/external_dns.txt
702 echo "__aai_repo__" > /opt/config/remote_repo.txt
704 # Download and run install script
705 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
707 chmod +x aai_install.sh
713 type: OS::Neutron::Port
715 network: { get_resource: oam_onap }
716 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
719 type: OS::Neutron::FloatingIP
721 floating_network_id: { get_param: public_net_id }
722 port_id: { get_resource: so_private_port }
723 floating_ip_address: { get_param: so_float_ip }
726 type: OS::Nova::Server
728 image: { get_param: ubuntu_1604_image }
729 flavor: { get_param: flavor_large }
734 base: { get_param: vm_base_name }
735 key_name: { get_resource: vm_key }
737 - port: { get_resource: so_private_port }
738 user_data_format: RAW
742 __nexus_repo__: { get_param: nexus_repo }
743 __nexus_docker_repo__: { get_param: nexus_docker_repo }
744 __nexus_username__: { get_param: nexus_username }
745 __nexus_password__: { get_param: nexus_password }
746 __openstack_username__: { get_param: openstack_username }
747 __openstack_tenant_id__: { get_param: openstack_tenant_id }
748 __openstack_api_key__: { get_param: openstack_api_key }
749 __openstack_region__: { get_param: openstack_region }
750 __keystone_url__: { get_param: keystone_url }
751 __dmaap_topic__: { get_param: dmaap_topic }
752 __artifacts_version__: { get_param: artifacts_version }
753 __dns_ip_addr__: { get_param: dns_ip_addr }
754 __docker_version__: { get_param: so_docker }
755 __gerrit_branch__: { get_param: so_branch }
756 __cloud_env__: { get_param: cloud_env }
757 __external_dns__: { get_param: external_dns }
758 __so_repo__: { get_param: so_repo }
762 # Create configuration files
764 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
765 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
766 echo "__nexus_username__" > /opt/config/nexus_username.txt
767 echo "__nexus_password__" > /opt/config/nexus_password.txt
768 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
769 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
770 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
771 echo "__openstack_username__" > /opt/config/openstack_username.txt
772 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
773 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
774 echo "__openstack_region__" > /opt/config/openstack_region.txt
775 echo "__keystone_url__" > /opt/config/keystone.txt
776 echo "__docker_version__" > /opt/config/docker_version.txt
777 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
778 echo "__cloud_env__" > /opt/config/cloud_env.txt
779 echo "__external_dns__" > /opt/config/external_dns.txt
780 echo "__so_repo__" > /opt/config/remote_repo.txt
782 # Download and run install script
783 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
785 chmod +x so_install.sh
789 # Message Router instantiation
790 mrouter_private_port:
791 type: OS::Neutron::Port
793 network: { get_resource: oam_onap }
794 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
797 type: OS::Neutron::FloatingIP
799 floating_network_id: { get_param: public_net_id }
800 port_id: { get_resource: mrouter_private_port }
801 floating_ip_address: { get_param: mr_float_ip }
804 type: OS::Nova::Server
806 image: { get_param: ubuntu_1404_image }
807 flavor: { get_param: flavor_large }
810 template: base-message-router
812 base: { get_param: vm_base_name }
813 key_name: { get_resource: vm_key }
815 - port: { get_resource: mrouter_private_port }
816 user_data_format: RAW
820 __nexus_repo__: { get_param: nexus_repo }
821 __nexus_docker_repo__: { get_param: nexus_docker_repo }
822 __nexus_username__: { get_param: nexus_username }
823 __nexus_password__: { get_param: nexus_password }
824 __artifacts_version__: { get_param: artifacts_version }
825 __dns_ip_addr__: { get_param: dns_ip_addr }
826 __gerrit_branch__: { get_param: mr_branch }
827 __cloud_env__: { get_param: cloud_env }
828 __external_dns__: { get_param: external_dns }
829 __mr_repo__: { get_param: mr_repo }
833 # Create configuration files
835 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
836 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
837 echo "__nexus_username__" > /opt/config/nexus_username.txt
838 echo "__nexus_password__" > /opt/config/nexus_password.txt
839 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
840 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
841 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
842 echo "__cloud_env__" > /opt/config/cloud_env.txt
843 echo "__external_dns__" > /opt/config/external_dns.txt
844 echo "__mr_repo__" > /opt/config/remote_repo.txt
846 # Download and run install script
847 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
849 chmod +x mr_install.sh
853 # Robot Framework instantiation
855 type: OS::Neutron::Port
857 network: { get_resource: oam_onap }
858 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
861 type: OS::Neutron::FloatingIP
863 floating_network_id: { get_param: public_net_id }
864 port_id: { get_resource: robot_private_port }
865 floating_ip_address: { get_param: robot_float_ip }
868 type: OS::Nova::Server
870 image: { get_param: ubuntu_1604_image }
871 flavor: { get_param: flavor_medium }
876 base: { get_param: vm_base_name }
877 key_name: { get_resource: vm_key }
879 - port: { get_resource: robot_private_port }
880 user_data_format: RAW
884 __nexus_repo__: { get_param: nexus_repo }
885 __nexus_docker_repo__: { get_param: nexus_docker_repo }
886 __nexus_username__: { get_param: nexus_username }
887 __nexus_password__: { get_param: nexus_password }
888 __network_name__: { get_attr: [oam_onap, name] }
889 __openstack_username__: { get_param: openstack_username }
890 __openstack_api_key__: { get_param : openstack_api_key }
891 __openstack_tenant_id__: { get_param: openstack_tenant_id }
892 __artifacts_version__: { get_param: artifacts_version }
893 __openstack_region__: { get_param: openstack_region }
894 __dns_ip_addr__: { get_param: dns_ip_addr }
895 __docker_version__: { get_param: robot_docker }
896 __gerrit_branch__: { get_param: robot_branch }
897 __keystone_url__: { get_param: keystone_url }
898 __aai1_ip_addr__: { get_param: aai1_ip_addr }
899 __aai2_ip_addr__: { get_param: aai2_ip_addr }
900 __appc_ip_addr__: { get_param: appc_ip_addr }
901 __dcae_ip_addr__: { get_param: dcae_ip_addr }
902 __so_ip_addr__: { get_param: so_ip_addr }
903 __mr_ip_addr__: { get_param: mr_ip_addr }
904 __policy_ip_addr__: { get_param: policy_ip_addr }
905 __portal_ip_addr__: { get_param: portal_ip_addr }
906 __sdc_ip_addr__: { get_param: sdc_ip_addr }
907 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
908 __vid_ip_addr__: { get_param: vid_ip_addr }
909 __clamp_ip_addr__: { get_param: clamp_ip_addr }
910 __openo_ip_addr__: { get_param: openo_ip_addr }
911 __cloud_env__: { get_param: cloud_env }
912 __external_dns__: { get_param: external_dns }
913 __vm_image_name__: { get_param: ubuntu_1404_image }
914 __vm_flavor__: { get_param: flavor_medium }
915 __robot_repo__: { get_param: robot_repo }
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 "__robot_repo__" > /opt/config/remote_repo.txt
954 # Download and run install script
955 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
957 chmod +x robot_install.sh
963 type: OS::Neutron::Port
965 network: { get_resource: oam_onap }
966 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
969 type: OS::Neutron::FloatingIP
971 floating_network_id: { get_param: public_net_id }
972 port_id: { get_resource: vid_private_port }
973 floating_ip_address: { get_param: vid_float_ip }
976 type: OS::Nova::Server
978 image: { get_param: ubuntu_1404_image }
979 flavor: { get_param: flavor_medium }
984 base: { get_param: vm_base_name }
985 key_name: { get_resource: vm_key }
987 - port: { get_resource: vid_private_port }
988 user_data_format: RAW
992 __nexus_repo__: { get_param: nexus_repo }
993 __nexus_docker_repo__: { get_param: nexus_docker_repo }
994 __nexus_username__: { get_param: nexus_username }
995 __nexus_password__: { get_param: nexus_password }
996 __artifacts_version__: { get_param: artifacts_version }
997 __dns_ip_addr__: { get_param: dns_ip_addr }
998 __docker_version__: { get_param: vid_docker }
999 __gerrit_branch__: { get_param: vid_branch }
1000 __cloud_env__: { get_param: cloud_env }
1001 __external_dns__: { get_param: external_dns }
1002 __vid_repo__: { get_param: vid_repo }
1006 # Create configuration files
1007 mkdir -p /opt/config
1008 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1009 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1010 echo "__nexus_username__" > /opt/config/nexus_username.txt
1011 echo "__nexus_password__" > /opt/config/nexus_password.txt
1012 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1013 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1014 echo "__docker_version__" > /opt/config/docker_version.txt
1015 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1016 echo "__cloud_env__" > /opt/config/cloud_env.txt
1017 echo "__external_dns__" > /opt/config/external_dns.txt
1018 echo "__vid_repo__" > /opt/config/remote_repo.txt
1020 # Download and run install script
1021 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
1023 chmod +x vid_install.sh
1027 # SDN-C instantiation
1029 type: OS::Neutron::Port
1031 network: { get_resource: oam_onap }
1032 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
1035 type: OS::Neutron::FloatingIP
1037 floating_network_id: { get_param: public_net_id }
1038 port_id: { get_resource: sdnc_private_port }
1039 floating_ip_address: { get_param: sdnc_float_ip }
1042 type: OS::Nova::Server
1044 image: { get_param: ubuntu_1404_image }
1045 flavor: { get_param: flavor_large }
1050 base: { get_param: vm_base_name }
1051 key_name: { get_resource: vm_key }
1053 - port: { get_resource: sdnc_private_port }
1054 user_data_format: RAW
1058 __nexus_repo__: { get_param: nexus_repo }
1059 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1060 __nexus_username__: { get_param: nexus_username }
1061 __nexus_password__: { get_param: nexus_password }
1062 __artifacts_version__: { get_param: artifacts_version }
1063 __dns_ip_addr__: { get_param: dns_ip_addr }
1064 __docker_version__: { get_param: sdnc_docker }
1065 __gerrit_branch__: { get_param: sdnc_branch }
1066 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1067 __cloud_env__: { get_param: cloud_env }
1068 __external_dns__: { get_param: external_dns }
1069 __sdnc_repo__: { get_param: sdnc_repo }
1073 # Create configuration files
1074 mkdir -p /opt/config
1075 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1076 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1077 echo "__nexus_username__" > /opt/config/nexus_username.txt
1078 echo "__nexus_password__" > /opt/config/nexus_password.txt
1079 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1080 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1081 echo "__docker_version__" > /opt/config/docker_version.txt
1082 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1083 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1084 echo "__cloud_env__" > /opt/config/cloud_env.txt
1085 echo "__external_dns__" > /opt/config/external_dns.txt
1086 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1088 # Download and run install script
1089 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1091 chmod +x sdnc_install.sh
1097 type: OS::Neutron::Port
1099 network: { get_resource: oam_onap }
1100 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1103 type: OS::Neutron::FloatingIP
1105 floating_network_id: { get_param: public_net_id }
1106 port_id: { get_resource: sdc_private_port }
1107 floating_ip_address: { get_param: sdc_float_ip }
1110 type: OS::Cinder::Volume
1116 type: OS::Nova::Server
1118 image: { get_param: ubuntu_1604_image }
1119 flavor: { get_param: flavor_xlarge }
1124 base: { get_param: vm_base_name }
1125 key_name: { get_resource: vm_key }
1127 - port: { get_resource: sdc_private_port }
1128 block_device_mapping:
1129 - device_name: /dev/vdb
1130 volume_id: {get_resource: sdc_volume_data}
1131 user_data_format: RAW
1135 __nexus_repo__: { get_param: nexus_repo }
1136 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1137 __nexus_username__: { get_param: nexus_username }
1138 __nexus_password__: { get_param: nexus_password }
1139 __env_name__: { get_param: dmaap_topic }
1140 __artifacts_version__: { get_param: artifacts_version }
1141 __dns_ip_addr__: { get_param: dns_ip_addr }
1142 __mr_ip_addr__: { get_param: mr_ip_addr }
1143 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1144 __docker_version__: { get_param: sdc_docker }
1145 __gerrit_branch__: { get_param: sdc_branch }
1146 __cloud_env__: { get_param: cloud_env }
1147 __external_dns__: { get_param: external_dns }
1148 __sdc_repo__: { get_param: sdc_repo }
1152 # Create configuration files
1153 mkdir -p /opt/config
1154 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1155 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1156 echo "__nexus_username__" > /opt/config/nexus_username.txt
1157 echo "__nexus_password__" > /opt/config/nexus_password.txt
1158 echo "__env_name__" > /opt/config/env_name.txt
1159 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1160 echo "__public_ip__" > /opt/config/public_ip.txt
1161 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1162 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1163 echo "__docker_version__" > /opt/config/docker_version.txt
1164 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1165 echo "__cloud_env__" > /opt/config/cloud_env.txt
1166 echo "__external_dns__" > /opt/config/external_dns.txt
1167 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1169 # Download and run install script
1170 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1172 chmod +x sdc_install.sh
1176 # PORTAL instantiation
1177 portal_private_port:
1178 type: OS::Neutron::Port
1180 network: { get_resource: oam_onap }
1181 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1184 type: OS::Neutron::FloatingIP
1186 floating_network_id: { get_param: public_net_id }
1187 port_id: { get_resource: portal_private_port }
1188 floating_ip_address: { get_param: portal_float_ip }
1191 type: OS::Nova::Server
1193 image: { get_param: ubuntu_1404_image }
1194 flavor: { get_param: flavor_large }
1197 template: base-portal
1199 base: { get_param: vm_base_name }
1200 key_name: { get_resource: vm_key }
1202 - port: { get_resource: portal_private_port }
1203 user_data_format: RAW
1207 __nexus_repo__: { get_param: nexus_repo }
1208 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1209 __nexus_username__: { get_param: nexus_username }
1210 __nexus_password__: { get_param: nexus_password }
1211 __artifacts_version__: { get_param: artifacts_version }
1212 __dns_ip_addr__: { get_param: dns_ip_addr }
1213 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1214 __docker_version__: { get_param: portal_docker }
1215 __gerrit_branch__: { get_param: portal_branch }
1216 __cloud_env__: { get_param: cloud_env }
1217 __cli_docker__: { get_param: cli_docker }
1218 __external_dns__: { get_param: external_dns }
1219 __portal_repo__: { get_param: portal_repo }
1223 # Create configuration files
1224 mkdir -p /opt/config
1225 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1226 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1227 echo "__nexus_username__" > /opt/config/nexus_username.txt
1228 echo "__nexus_password__" > /opt/config/nexus_password.txt
1229 echo "__public_ip__" > /opt/config/public_ip.txt
1230 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1231 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1232 echo "__docker_version__" > /opt/config/docker_version.txt
1233 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1234 echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1235 echo "__cloud_env__" > /opt/config/cloud_env.txt
1236 echo "__external_dns__" > /opt/config/external_dns.txt
1237 echo "__portal_repo__" > /opt/config/remote_repo.txt
1239 # Download and run install script
1240 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1242 chmod +x portal_install.sh
1246 # DCAE Controller instantiation
1247 # dcae_c_private_port:
1248 # type: OS::Neutron::Port
1250 # network: { get_resource: oam_onap }
1251 # fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1253 # dcae_c_floating_ip:
1254 # type: OS::Neutron::FloatingIP
1256 # floating_network_id: { get_param: public_net_id }
1257 # port_id: { get_resource: dcae_c_private_port }
1258 # floating_ip_address: { get_param: dcae_float_ip }
1261 # type: OS::Nova::Server
1263 # image: { get_param: ubuntu_1404_image }
1264 # flavor: { get_param: flavor_medium }
1267 # template: base-dcae-controller
1269 # base: { get_param: vm_base_name }
1270 # key_name: { get_resource: vm_key }
1272 # - port: { get_resource: dcae_c_private_port }
1273 # user_data_format: RAW
1277 # __nexus_repo__: { get_param: nexus_repo }
1278 # __nexus_docker_repo__: { get_param: nexus_docker_repo }
1279 # __nexus_username__: { get_param: nexus_username }
1280 # __nexus_password__: { get_param: nexus_password }
1281 # __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1282 # __gitlab_branch__: { get_param: gitlab_branch }
1283 # __dns_ip_addr__: { get_param: dns_ip_addr }
1284 # __dcae_zone__: { get_param: dcae_zone }
1285 # __dcae_state__: { get_param: dcae_state }
1286 # __artifacts_version__: { get_param: artifacts_version }
1287 # __tenant_id__: { get_param: openstack_tenant_id }
1288 # __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1289 # __openstack_user__: { get_param: openstack_username }
1290 # __openstack_password__: { get_param: openstack_api_key }
1291 # __openstack_auth_method__: { get_param: openstack_auth_method }
1292 # __key_name__: { get_param: key_name }
1293 # __rand_str__: { get_resource: random-str }
1294 # __pub_key__: { get_param: pub_key }
1295 # __nexus_repo_root__: { get_param: nexus_repo_root }
1296 # __openstack_region__: { get_param: openstack_region }
1297 # __horizon_url__: { get_param: horizon_url }
1298 # __keystone_url__: { get_param: keystone_url }
1299 # __docker_version__: { get_param: dcae_docker }
1300 # __gerrit_branch__: { get_param: dcae_branch }
1301 # __dcae_code_version__: { get_param: dcae_code_version }
1302 # __cloud_env__: { get_param: cloud_env }
1303 # __public_net_id__: { get_param: public_net_id }
1304 # __dcae_base_environment__: { get_param: dcae_base_environment }
1305 # __dcae_ip_addr__: { get_param: dcae_ip_addr }
1306 # __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1307 # __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1308 # __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1309 # __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1310 # __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1311 # __dcae_float_ip__: { get_param: dcae_float_ip }
1312 # __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1313 # __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1314 # __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1315 # __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1316 # __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1317 # __external_dns__: { get_param: external_dns }
1318 # __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1319 # __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1320 # __flavor_small__: { get_param: flavor_small }
1321 # __flavor_medium__: { get_param: flavor_medium }
1322 # __flavor_large__: { get_param: flavor_large }
1323 # __flavor_xlarge__: { get_param: flavor_xlarge }
1324 # __dcae_repo__: { get_param: dcae_repo }
1325 # __mr_repo__: { get_param: mr_repo }
1329 # Create configuration files
1330 # mkdir -p /opt/config
1331 # echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1332 # echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1333 # echo "__nexus_username__" > /opt/config/nexus_username.txt
1334 # echo "__nexus_password__" > /opt/config/nexus_password.txt
1335 # echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1336 # echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1337 # echo "__docker_version__" > /opt/config/docker_version.txt
1338 # echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1339 # echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1340 # echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1341 # echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1342 # echo "__dcae_state__" > /opt/config/dcae_state.txt
1343 # echo "__tenant_id__" > /opt/config/tenant_id.txt
1344 # echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1345 # echo "__openstack_user__" > /opt/config/openstack_user.txt
1346 # echo "__openstack_password__" > /opt/config/openstack_password.txt
1347 # echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1348 # echo "__key_name__" > /opt/config/key_name.txt
1349 # echo "__rand_str__" > /opt/config/rand_str.txt
1350 # echo "__pub_key__" > /opt/config/pub_key.txt
1351 # echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1352 # echo "__openstack_region__" > /opt/config/openstack_region.txt
1353 # echo "__horizon_url__" > /opt/config/horizon_url.txt
1354 # echo "__keystone_url__" > /opt/config/keystone_url.txt
1355 # echo "__cloud_env__" > /opt/config/cloud_env.txt
1356 # echo "__public_net_id__" > /opt/config/public_net_id.txt
1357 # echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1358 # echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1359 # echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1360 # echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1361 # echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1362 # echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1363 # echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1364 # echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1365 # echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1366 # echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1367 # echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1368 # echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1369 # echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1370 # echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1371 # echo "__external_dns__" > /opt/config/external_dns.txt
1372 # echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1373 # echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1374 # echo "__flavor_small__" > /opt/config/flavor_small.txt
1375 # echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1376 # echo "__flavor_large__" > /opt/config/flavor_large.txt
1377 # echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1378 # echo "__dcae_repo__" > /opt/config/remote_repo.txt
1379 # echo "__mr_repo__" > /opt/config/mr_repo.txt
1381 # Download and run install script
1382 # curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1384 # chmod +x dcae_install.sh
1388 # Policy Engine instantiation
1389 policy_private_port:
1390 type: OS::Neutron::Port
1392 network: { get_resource: oam_onap }
1393 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1396 type: OS::Neutron::FloatingIP
1398 floating_network_id: { get_param: public_net_id }
1399 port_id: { get_resource: policy_private_port }
1400 floating_ip_address: { get_param: policy_float_ip }
1403 type: OS::Nova::Server
1405 image: { get_param: ubuntu_1404_image }
1406 flavor: { get_param: flavor_xlarge }
1409 template: base-policy
1411 base: { get_param: vm_base_name }
1412 key_name: { get_resource: vm_key }
1414 - port: { get_resource: policy_private_port }
1415 user_data_format: RAW
1419 __nexus_repo__: { get_param: nexus_repo }
1420 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1421 __nexus_username__: { get_param: nexus_username }
1422 __nexus_password__: { get_param: nexus_password }
1423 __artifacts_version__: { get_param: artifacts_version }
1424 __dns_ip_addr__: { get_param: dns_ip_addr }
1425 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1426 __docker_version__: { get_param: policy_docker }
1427 __gerrit_branch__: { get_param: policy_branch }
1428 __cloud_env__: { get_param: cloud_env }
1429 __external_dns__: { get_param: external_dns }
1430 __policy_repo__: { get_param: policy_repo }
1434 # Create configuration files
1435 mkdir -p /opt/config
1436 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1437 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1438 echo "__nexus_username__" > /opt/config/nexus_username.txt
1439 echo "__nexus_password__" > /opt/config/nexus_password.txt
1440 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1441 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1442 echo "__public_ip__" > /opt/config/public_ip.txt
1443 echo "__docker_version__" > /opt/config/docker_version.txt
1444 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1445 echo "__cloud_env__" > /opt/config/cloud_env.txt
1446 echo "__external_dns__" > /opt/config/external_dns.txt
1447 echo "__policy_repo__" > /opt/config/remote_repo.txt
1449 # Download and run install script
1450 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1452 chmod +x policy_install.sh
1456 # APP-C instantiation
1458 type: OS::Neutron::Port
1460 network: { get_resource: oam_onap }
1461 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1464 type: OS::Neutron::FloatingIP
1466 floating_network_id: { get_param: public_net_id }
1467 port_id: { get_resource: appc_private_port }
1468 floating_ip_address: { get_param: appc_float_ip }
1471 type: OS::Nova::Server
1473 image: { get_param: ubuntu_1404_image }
1474 flavor: { get_param: flavor_large }
1479 base: { get_param: vm_base_name }
1480 key_name: { get_resource: vm_key }
1482 - port: { get_resource: appc_private_port }
1483 user_data_format: RAW
1487 __nexus_repo__: { get_param: nexus_repo }
1488 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1489 __nexus_username__: { get_param: nexus_username }
1490 __nexus_password__: { get_param: nexus_password }
1491 __dmaap_topic__: { get_param: dmaap_topic }
1492 __artifacts_version__: { get_param: artifacts_version }
1493 __dns_ip_addr__: { get_param: dns_ip_addr }
1494 __docker_version__: { get_param: appc_docker }
1495 __gerrit_branch__: { get_param: appc_branch }
1496 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1497 __cloud_env__: { get_param: cloud_env }
1498 __external_dns__: { get_param: external_dns }
1499 __appc_repo__: { get_param: appc_repo }
1503 # Create configuration files
1504 mkdir -p /opt/config
1505 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1506 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1507 echo "__nexus_username__" > /opt/config/nexus_username.txt
1508 echo "__nexus_password__" > /opt/config/nexus_password.txt
1509 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1510 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1511 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1512 echo "__docker_version__" > /opt/config/docker_version.txt
1513 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1514 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1515 echo "__cloud_env__" > /opt/config/cloud_env.txt
1516 echo "__external_dns__" > /opt/config/external_dns.txt
1517 echo "__appc_repo__" > /opt/config/remote_repo.txt
1519 # Download and run install script
1520 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1522 chmod +x appc_install.sh
1526 # CLAMP instantiation
1528 type: OS::Neutron::Port
1530 network: { get_resource: oam_onap }
1531 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1534 type: OS::Neutron::FloatingIP
1536 floating_network_id: { get_param: public_net_id }
1537 port_id: { get_resource: clamp_private_port }
1538 floating_ip_address: { get_param: clamp_float_ip }
1541 type: OS::Nova::Server
1543 image: { get_param: ubuntu_1604_image }
1544 flavor: { get_param: flavor_medium }
1547 template: base-clamp
1549 base: { get_param: vm_base_name }
1550 key_name: { get_resource: vm_key }
1552 - port: { get_resource: clamp_private_port }
1553 user_data_format: RAW
1557 __nexus_repo__: { get_param: nexus_repo }
1558 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1559 __nexus_username__: { get_param: nexus_username }
1560 __nexus_password__: { get_param: nexus_password }
1561 __openstack_username__: { get_param: openstack_username }
1562 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1563 __openstack_api_key__: { get_param: openstack_api_key }
1564 __openstack_region__: { get_param: openstack_region }
1565 __keystone_url__: { get_param: keystone_url }
1566 __dmaap_topic__: { get_param: dmaap_topic }
1567 __artifacts_version__: { get_param: artifacts_version }
1568 __dns_ip_addr__: { get_param: dns_ip_addr }
1569 __docker_version__: { get_param: clamp_docker }
1570 __gerrit_branch__: { get_param: clamp_branch }
1571 __cloud_env__: { get_param: cloud_env }
1572 __external_dns__: { get_param: external_dns }
1573 __clamp_repo__: { get_param: clamp_repo }
1577 # Create configuration files
1578 mkdir -p /opt/config
1579 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1580 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1581 echo "__nexus_username__" > /opt/config/nexus_username.txt
1582 echo "__nexus_password__" > /opt/config/nexus_password.txt
1583 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1584 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1585 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1586 echo "__openstack_username__" > /opt/config/openstack_username.txt
1587 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1588 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1589 echo "__openstack_region__" > /opt/config/openstack_region.txt
1590 echo "__keystone_url__" > /opt/config/keystone.txt
1591 echo "__docker_version__" > /opt/config/docker_version.txt
1592 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1593 echo "__cloud_env__" > /opt/config/cloud_env.txt
1594 echo "__external_dns__" > /opt/config/external_dns.txt
1595 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1597 # Download and run install script
1598 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1600 chmod +x clamp_install.sh
1604 # OPEN-O VM instantiation
1606 type: OS::Neutron::Port
1608 network: { get_resource: oam_onap }
1609 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1612 type: OS::Neutron::FloatingIP
1614 floating_network_id: { get_param: public_net_id }
1615 port_id: { get_resource: openo_private_port }
1616 floating_ip_address: { get_param: openo_float_ip }
1619 type: OS::Nova::Server
1621 image: { get_param: ubuntu_1604_image }
1622 flavor: { get_param: flavor_xxlarge }
1625 template: base-openo-server
1627 base: { get_param: vm_base_name }
1628 key_name: { get_resource: vm_key }
1630 - port: { get_resource: openo_private_port }
1631 user_data_format: RAW
1635 __nexus_repo__: { get_param: nexus_repo }
1636 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1637 __nexus_username__: { get_param: nexus_username }
1638 __nexus_password__: { get_param: nexus_password }
1639 __artifacts_version__: { get_param: artifacts_version }
1640 __dns_ip_addr__: { get_param: dns_ip_addr }
1641 __oam_network_cidr__: { get_param: oam_network_cidr }
1642 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1643 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1644 __appc_ip_addr__: { get_param: appc_ip_addr }
1645 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1646 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1647 __so_ip_addr__: { get_param: so_ip_addr }
1648 __mr_ip_addr__: { get_param: mr_ip_addr }
1649 __policy_ip_addr__: { get_param: policy_ip_addr }
1650 __portal_ip_addr__: { get_param: portal_ip_addr }
1651 __robot_ip_addr__: { get_param: robot_ip_addr }
1652 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1653 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1654 __vid_ip_addr__: { get_param: vid_ip_addr }
1655 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1656 __openo_ip_addr__: { get_param: openo_ip_addr }
1657 __cloud_env__: { get_param: cloud_env }
1658 __external_dns__: { get_param: external_dns }
1659 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1660 __msb_docker__: { get_param: msb_docker }
1661 __mvim_docker__: { get_param: mvim_docker }
1662 __vfc_docker__: { get_param: vfc_docker }
1663 __uui_docker__: { get_param: uui_docker }
1664 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1668 # Create configuration files
1669 mkdir -p /opt/config
1670 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1671 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1672 echo "__nexus_username__" > /opt/config/nexus_username.txt
1673 echo "__nexus_password__" > /opt/config/nexus_password.txt
1674 echo "__cloud_env__" > /opt/config/cloud_env.txt
1675 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1676 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1677 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1678 echo "__external_dns__" > /opt/config/external_dns.txt
1679 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1680 echo "__msb_docker__" > /opt/config/msb_docker.txt
1681 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1682 echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1683 echo "__uui_docker__" > /opt/config/uui_docker.txt
1684 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1686 # Create env file with the IP address of all ONAP components
1687 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1688 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1689 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1690 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1691 echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1692 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1693 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1694 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1695 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1696 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1697 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1698 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1699 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1700 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1701 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1703 # Download and run install script
1704 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1706 chmod +x openo_install.sh
1710 # DCAE GEN 2 Controller instantiation
1711 dcae_c_private_port:
1712 type: OS::Neutron::Port
1714 network: { get_resource: oam_onap }
1715 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1718 type: OS::Neutron::FloatingIP
1720 floating_network_id: { get_param: public_net_id }
1721 port_id: { get_resource: dcae_c_private_port }
1724 type: OS::Nova::Server
1726 image: { get_param: ubuntu_1604_image }
1727 flavor: { get_param: flavor_medium }
1730 template: base-dcae-controller
1732 base: { get_param: vm_base_name }
1733 key_name: { get_resource: dcae_vm_key }
1735 - port: { get_resource: dcae_c_private_port }
1736 user_data_format: RAW
1740 __nexus_repo__: { get_param: nexus_repo }
1741 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1742 __nexus_username__: { get_param: nexus_username }
1743 __nexus_password__: { get_param: nexus_password }
1744 __dns_ip_addr__: { get_param: dns_ip_addr }
1745 __dcae_zone__: { get_param: dcae_zone }
1746 __artifacts_version__: { get_param: artifacts_version }
1747 __tenant_id__: { get_param: openstack_tenant_id }
1748 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1749 __openstack_user__: { get_param: openstack_username }
1750 __openstack_password__: { get_param: openstack_api_key }
1751 __key_name__: { get_param: dcae_key_name }
1752 __pub_key__: { get_param: dcae_pub_key }
1753 __private_key__: { get_attr: [ dcae_vm_key, private_key ] }
1754 __openstack_region__: { get_param: openstack_region }
1755 __keystone_url__: { get_param: keystone_url }
1756 __docker_version__: { get_param: dcae_docker }
1757 __dcae_repo__: { get_param: dcae_repo }
1758 __gerrit_branch__: { get_param: dcae_branch }
1759 __cloud_env__: { get_param: cloud_env }
1760 __public_net_id__: { get_param: public_net_id }
1761 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1762 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1763 __external_dns__: { get_param: external_dns }
1764 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1765 __centos_7_image__: { get_param: centos_7_image }
1766 __security_group__ : { get_param: security_group }
1767 __flavor_medium__: { get_param: flavor_medium }
1768 __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1769 __rand_str__: { get_resource: random-str }
1774 # Create configuration files
1775 mkdir -p /opt/config
1776 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1777 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1778 echo "__nexus_username__" > /opt/config/nexus_username.txt
1779 echo "__nexus_password__" > /opt/config/nexus_password.txt
1780 echo "__docker_version__" > /opt/config/docker_version.txt
1781 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1782 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1783 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1784 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1785 echo "__tenant_id__" > /opt/config/tenant_id.txt
1786 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1787 echo "__openstack_user__" > /opt/config/openstack_user.txt
1788 echo "__openstack_password__" > /opt/config/openstack_password.txt
1789 echo "__key_name__" > /opt/config/key_name.txt
1790 echo "__pub_key__" > /opt/config/pub_key.txt
1791 echo "__private_key__" > /opt/config/priv_key
1792 echo "__openstack_region__" > /opt/config/openstack_region.txt
1793 echo "__keystone_url__" > /opt/config/keystone_url.txt
1794 echo "__cloud_env__" > /opt/config/cloud_env.txt
1795 echo "__public_net_id__" > /opt/config/public_net_id.txt
1796 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1797 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1798 echo "__external_dns__" > /opt/config/external_dns.txt
1799 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1800 echo "__centos_7_image__" > /opt/config/centos_7_image.txt
1801 echo "__security_group__" > /opt/config/security_group.txt
1802 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1803 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1804 echo "__mac_addr__" > /opt/config/mac_addr.txt
1805 echo "__rand_str__" > /opt/config/rand_str.txt
1807 # Download and run install script
1808 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1810 chmod +x dcae2_install.sh