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 ################################
416 type: OS::Heat::RandomString
421 # Public key used to access ONAP components
423 type: OS::Nova::KeyPair
429 base: { get_param: key_name }
430 rand: { get_resource: random-str }
431 public_key: { get_param: pub_key }
432 save_private_key: false
434 # Public key used to access DCAE GEN 2
436 type: OS::Nova::KeyPair
442 base: { get_param: dcae_key_name }
443 rand: { get_resource: random-str }
444 public_key: { get_param: dcae_pub_key }
445 save_private_key: true
447 # ONAP management private network
449 type: OS::Neutron::Net
453 template: oam_onap_rand
455 rand: { get_resource: random-str }
458 type: OS::Neutron::Subnet
462 template: oam_onap_rand
464 rand: { get_resource: random-str }
465 network_id: { get_resource: oam_onap }
466 cidr: { get_param: oam_network_cidr }
467 dns_nameservers: { get_param: dns_list }
470 type: OS::Neutron::Router
472 external_gateway_info:
473 network: { get_param: public_net_id }
475 - ip_address: { get_param: router_gateway_ip }
476 subnet: { get_param: public_subnet_id }
479 type: OS::Neutron::RouterInterface
481 router_id: { get_resource: router }
482 subnet_id: { get_resource: oam_onap_subnet }
485 # DNS Server instantiation
487 type: OS::Neutron::Port
489 network: { get_resource: oam_onap }
490 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
493 type: OS::Neutron::FloatingIP
495 floating_network_id: { get_param: public_net_id }
496 port_id: { get_resource: dns_private_port }
497 floating_ip_address: { get_param: dns_float_ip }
500 type: OS::Nova::Server
502 image: { get_param: ubuntu_1404_image }
503 flavor: { get_param: flavor_small }
506 template: base-dns-server
508 base: { get_param: vm_base_name }
509 key_name: { get_resource: vm_key }
511 - port: { get_resource: dns_private_port }
512 user_data_format: RAW
516 __nexus_repo__: { get_param: nexus_repo }
517 __artifacts_version__: { get_param: artifacts_version }
518 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
519 __dns_ip_addr__: { get_param: dns_ip_addr }
520 __aai1_ip_addr__: { get_param: aai1_ip_addr }
521 __aai2_ip_addr__: { get_param: aai2_ip_addr }
522 __appc_ip_addr__: { get_param: appc_ip_addr }
523 __dcae_ip_addr__: { get_param: dcae_ip_addr }
524 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
525 __so_ip_addr__: { get_param: so_ip_addr }
526 __mr_ip_addr__: { get_param: mr_ip_addr }
527 __policy_ip_addr__: { get_param: policy_ip_addr }
528 __portal_ip_addr__: { get_param: portal_ip_addr }
529 __robot_ip_addr__: { get_param: robot_ip_addr }
530 __sdc_ip_addr__: { get_param: sdc_ip_addr }
531 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
532 __vid_ip_addr__: { get_param: vid_ip_addr }
533 __clamp_ip_addr__: { get_param: clamp_ip_addr }
534 __openo_ip_addr__: { get_param: openo_ip_addr }
535 __cloud_env__: { get_param: cloud_env }
536 __external_dns__: { get_param: external_dns }
540 # Create configuration files
542 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
543 echo "__cloud_env__" > /opt/config/cloud_env.txt
544 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
545 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
546 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
547 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
548 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
549 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
550 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
551 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
552 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
553 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
554 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
555 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
556 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
557 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
558 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
559 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
560 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
561 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
562 echo "__external_dns__" > /opt/config/external_dns.txt
564 # Download and run install script
565 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
567 chmod +x dns_install.sh
571 # A&AI instantiation (2 VMs)
573 type: OS::Neutron::Port
575 network: { get_resource: oam_onap }
576 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
579 type: OS::Neutron::FloatingIP
581 floating_network_id: { get_param: public_net_id }
582 port_id: { get_resource: aai1_private_port }
583 floating_ip_address: { get_param: aai1_float_ip }
586 type: OS::Nova::Server
589 image: { get_param: ubuntu_1404_image }
590 flavor: { get_param: flavor_xlarge }
593 template: base-aai-inst1
595 base: { get_param: vm_base_name }
596 key_name: { get_resource: vm_key }
598 - port: { get_resource: aai1_private_port }
599 user_data_format: RAW
603 __nexus_repo__: { get_param: nexus_repo }
604 __nexus_docker_repo__: { get_param: nexus_docker_repo }
605 __nexus_username__: { get_param: nexus_username }
606 __nexus_password__: { get_param: nexus_password }
607 __dmaap_topic__: { get_param: dmaap_topic }
608 __artifacts_version__: { get_param: artifacts_version }
609 __dns_ip_addr__: { get_param: dns_ip_addr }
610 __docker_version__: { get_param: aai_docker }
611 __cloud_env__: { get_param: cloud_env }
612 __gerrit_branch__: { get_param: aai_branch }
613 __external_dns__: { get_param: external_dns }
614 __aai_repo__: { get_param: aai_repo }
618 # Create configuration files
620 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
621 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
622 echo "__nexus_username__" > /opt/config/nexus_username.txt
623 echo "__nexus_password__" > /opt/config/nexus_password.txt
624 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
625 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
626 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
627 echo "__docker_version__" > /opt/config/docker_version.txt
628 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
629 echo "aai_instance_1" > /opt/config/aai_instance.txt
630 echo "__cloud_env__" > /opt/config/cloud_env.txt
631 echo "__external_dns__" > /opt/config/external_dns.txt
632 echo "__aai_repo__" > /opt/config/remote_repo.txt
634 # Download and run install script
635 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
637 chmod +x aai_install.sh
642 type: OS::Neutron::Port
644 network: { get_resource: oam_onap }
645 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
648 type: OS::Neutron::FloatingIP
650 floating_network_id: { get_param: public_net_id }
651 port_id: { get_resource: aai2_private_port }
652 floating_ip_address: { get_param: aai2_float_ip }
655 type: OS::Nova::Server
657 image: { get_param: ubuntu_1404_image }
658 flavor: { get_param: flavor_xlarge }
661 template: base-aai-inst2
663 base: { get_param: vm_base_name }
664 key_name: { get_resource: vm_key }
666 - port: { get_resource: aai2_private_port }
667 user_data_format: RAW
671 __nexus_repo__: { get_param: nexus_repo }
672 __nexus_docker_repo__: { get_param: nexus_docker_repo }
673 __nexus_username__: { get_param: nexus_username }
674 __nexus_password__: { get_param: nexus_password }
675 __dmaap_topic__: { get_param: dmaap_topic }
676 __artifacts_version__: { get_param: artifacts_version }
677 __dns_ip_addr__: { get_param: dns_ip_addr }
678 __docker_version__: { get_param: aai_docker }
679 __cloud_env__: { get_param: cloud_env }
680 __gerrit_branch__: { get_param: aai_branch }
681 __external_dns__: { get_param: external_dns }
682 __aai_repo__: { get_param: aai_repo }
686 # Create configuration files
688 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
689 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
690 echo "__nexus_username__" > /opt/config/nexus_username.txt
691 echo "__nexus_password__" > /opt/config/nexus_password.txt
692 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
693 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
694 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
695 echo "__docker_version__" > /opt/config/docker_version.txt
696 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
697 echo "aai_instance_2" > /opt/config/aai_instance.txt
698 echo "__cloud_env__" > /opt/config/cloud_env.txt
699 echo "__external_dns__" > /opt/config/external_dns.txt
700 echo "__aai_repo__" > /opt/config/remote_repo.txt
702 # Download and run install script
703 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
705 chmod +x aai_install.sh
711 type: OS::Neutron::Port
713 network: { get_resource: oam_onap }
714 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
717 type: OS::Neutron::FloatingIP
719 floating_network_id: { get_param: public_net_id }
720 port_id: { get_resource: so_private_port }
721 floating_ip_address: { get_param: so_float_ip }
724 type: OS::Nova::Server
726 image: { get_param: ubuntu_1604_image }
727 flavor: { get_param: flavor_large }
732 base: { get_param: vm_base_name }
733 key_name: { get_resource: vm_key }
735 - port: { get_resource: so_private_port }
736 user_data_format: RAW
740 __nexus_repo__: { get_param: nexus_repo }
741 __nexus_docker_repo__: { get_param: nexus_docker_repo }
742 __nexus_username__: { get_param: nexus_username }
743 __nexus_password__: { get_param: nexus_password }
744 __openstack_username__: { get_param: openstack_username }
745 __openstack_tenant_id__: { get_param: openstack_tenant_id }
746 __openstack_api_key__: { get_param: openstack_api_key }
747 __openstack_region__: { get_param: openstack_region }
748 __keystone_url__: { get_param: keystone_url }
749 __dmaap_topic__: { get_param: dmaap_topic }
750 __artifacts_version__: { get_param: artifacts_version }
751 __dns_ip_addr__: { get_param: dns_ip_addr }
752 __docker_version__: { get_param: so_docker }
753 __gerrit_branch__: { get_param: so_branch }
754 __cloud_env__: { get_param: cloud_env }
755 __external_dns__: { get_param: external_dns }
756 __so_repo__: { get_param: so_repo }
760 # Create configuration files
762 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
763 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
764 echo "__nexus_username__" > /opt/config/nexus_username.txt
765 echo "__nexus_password__" > /opt/config/nexus_password.txt
766 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
767 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
768 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
769 echo "__openstack_username__" > /opt/config/openstack_username.txt
770 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
771 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
772 echo "__openstack_region__" > /opt/config/openstack_region.txt
773 echo "__keystone_url__" > /opt/config/keystone.txt
774 echo "__docker_version__" > /opt/config/docker_version.txt
775 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
776 echo "__cloud_env__" > /opt/config/cloud_env.txt
777 echo "__external_dns__" > /opt/config/external_dns.txt
778 echo "__so_repo__" > /opt/config/remote_repo.txt
780 # Download and run install script
781 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
783 chmod +x so_install.sh
787 # Message Router instantiation
788 mrouter_private_port:
789 type: OS::Neutron::Port
791 network: { get_resource: oam_onap }
792 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
795 type: OS::Neutron::FloatingIP
797 floating_network_id: { get_param: public_net_id }
798 port_id: { get_resource: mrouter_private_port }
799 floating_ip_address: { get_param: mr_float_ip }
802 type: OS::Nova::Server
804 image: { get_param: ubuntu_1404_image }
805 flavor: { get_param: flavor_large }
808 template: base-message-router
810 base: { get_param: vm_base_name }
811 key_name: { get_resource: vm_key }
813 - port: { get_resource: mrouter_private_port }
814 user_data_format: RAW
818 __nexus_repo__: { get_param: nexus_repo }
819 __nexus_docker_repo__: { get_param: nexus_docker_repo }
820 __nexus_username__: { get_param: nexus_username }
821 __nexus_password__: { get_param: nexus_password }
822 __artifacts_version__: { get_param: artifacts_version }
823 __dns_ip_addr__: { get_param: dns_ip_addr }
824 __gerrit_branch__: { get_param: mr_branch }
825 __cloud_env__: { get_param: cloud_env }
826 __external_dns__: { get_param: external_dns }
827 __mr_repo__: { get_param: mr_repo }
831 # Create configuration files
833 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
834 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
835 echo "__nexus_username__" > /opt/config/nexus_username.txt
836 echo "__nexus_password__" > /opt/config/nexus_password.txt
837 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
838 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
839 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
840 echo "__cloud_env__" > /opt/config/cloud_env.txt
841 echo "__external_dns__" > /opt/config/external_dns.txt
842 echo "__mr_repo__" > /opt/config/remote_repo.txt
844 # Download and run install script
845 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
847 chmod +x mr_install.sh
851 # Robot Framework instantiation
853 type: OS::Neutron::Port
855 network: { get_resource: oam_onap }
856 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
859 type: OS::Neutron::FloatingIP
861 floating_network_id: { get_param: public_net_id }
862 port_id: { get_resource: robot_private_port }
863 floating_ip_address: { get_param: robot_float_ip }
866 type: OS::Nova::Server
868 image: { get_param: ubuntu_1604_image }
869 flavor: { get_param: flavor_small }
874 base: { get_param: vm_base_name }
875 key_name: { get_resource: vm_key }
877 - port: { get_resource: robot_private_port }
878 user_data_format: RAW
882 __nexus_repo__: { get_param: nexus_repo }
883 __nexus_docker_repo__: { get_param: nexus_docker_repo }
884 __nexus_username__: { get_param: nexus_username }
885 __nexus_password__: { get_param: nexus_password }
886 __network_name__: { get_attr: [oam_onap, name] }
887 __openstack_username__: { get_param: openstack_username }
888 __openstack_api_key__: { get_param : openstack_api_key }
889 __openstack_tenant_id__: { get_param: openstack_tenant_id }
890 __artifacts_version__: { get_param: artifacts_version }
891 __openstack_region__: { get_param: openstack_region }
892 __dns_ip_addr__: { get_param: dns_ip_addr }
893 __docker_version__: { get_param: robot_docker }
894 __gerrit_branch__: { get_param: robot_branch }
895 __keystone_url__: { get_param: keystone_url }
896 __aai1_ip_addr__: { get_param: aai1_ip_addr }
897 __aai2_ip_addr__: { get_param: aai2_ip_addr }
898 __appc_ip_addr__: { get_param: appc_ip_addr }
899 __dcae_ip_addr__: { get_param: dcae_ip_addr }
900 __so_ip_addr__: { get_param: so_ip_addr }
901 __mr_ip_addr__: { get_param: mr_ip_addr }
902 __policy_ip_addr__: { get_param: policy_ip_addr }
903 __portal_ip_addr__: { get_param: portal_ip_addr }
904 __sdc_ip_addr__: { get_param: sdc_ip_addr }
905 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
906 __vid_ip_addr__: { get_param: vid_ip_addr }
907 __clamp_ip_addr__: { get_param: clamp_ip_addr }
908 __openo_ip_addr__: { get_param: openo_ip_addr }
909 __cloud_env__: { get_param: cloud_env }
910 __external_dns__: { get_param: external_dns }
911 __vm_image_name__: { get_param: ubuntu_1404_image }
912 __vm_flavor__: { get_param: flavor_medium }
913 __robot_repo__: { get_param: robot_repo }
917 # Create configuration files
919 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
920 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
921 echo "__nexus_username__" > /opt/config/nexus_username.txt
922 echo "__nexus_password__" > /opt/config/nexus_password.txt
923 echo "__network_name__" > /opt/config/network.txt
924 echo "__openstack_username__" > /opt/config/openstack_username.txt
925 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
926 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
927 echo "__openstack_region__" > /opt/config/region.txt
928 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
929 echo "__docker_version__" > /opt/config/docker_version.txt
930 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
931 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
932 echo "__keystone_url__" > /opt/config/keystone.txt
933 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
934 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
935 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
936 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
937 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
938 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
939 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
940 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
941 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
942 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
943 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
944 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
945 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
946 echo "__cloud_env__" > /opt/config/cloud_env.txt
947 echo "__external_dns__" > /opt/config/external_dns.txt
948 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
949 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
950 echo "__robot_repo__" > /opt/config/remote_repo.txt
952 # Download and run install script
953 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
955 chmod +x robot_install.sh
961 type: OS::Neutron::Port
963 network: { get_resource: oam_onap }
964 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
967 type: OS::Neutron::FloatingIP
969 floating_network_id: { get_param: public_net_id }
970 port_id: { get_resource: vid_private_port }
971 floating_ip_address: { get_param: vid_float_ip }
974 type: OS::Nova::Server
976 image: { get_param: ubuntu_1404_image }
977 flavor: { get_param: flavor_medium }
982 base: { get_param: vm_base_name }
983 key_name: { get_resource: vm_key }
985 - port: { get_resource: vid_private_port }
986 user_data_format: RAW
990 __nexus_repo__: { get_param: nexus_repo }
991 __nexus_docker_repo__: { get_param: nexus_docker_repo }
992 __nexus_username__: { get_param: nexus_username }
993 __nexus_password__: { get_param: nexus_password }
994 __artifacts_version__: { get_param: artifacts_version }
995 __dns_ip_addr__: { get_param: dns_ip_addr }
996 __docker_version__: { get_param: vid_docker }
997 __gerrit_branch__: { get_param: vid_branch }
998 __cloud_env__: { get_param: cloud_env }
999 __external_dns__: { get_param: external_dns }
1000 __vid_repo__: { get_param: vid_repo }
1004 # Create configuration files
1005 mkdir -p /opt/config
1006 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1007 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1008 echo "__nexus_username__" > /opt/config/nexus_username.txt
1009 echo "__nexus_password__" > /opt/config/nexus_password.txt
1010 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1011 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1012 echo "__docker_version__" > /opt/config/docker_version.txt
1013 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1014 echo "__cloud_env__" > /opt/config/cloud_env.txt
1015 echo "__external_dns__" > /opt/config/external_dns.txt
1016 echo "__vid_repo__" > /opt/config/remote_repo.txt
1018 # Download and run install script
1019 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
1021 chmod +x vid_install.sh
1025 # SDN-C instantiation
1027 type: OS::Neutron::Port
1029 network: { get_resource: oam_onap }
1030 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
1033 type: OS::Neutron::FloatingIP
1035 floating_network_id: { get_param: public_net_id }
1036 port_id: { get_resource: sdnc_private_port }
1037 floating_ip_address: { get_param: sdnc_float_ip }
1040 type: OS::Nova::Server
1042 image: { get_param: ubuntu_1404_image }
1043 flavor: { get_param: flavor_large }
1048 base: { get_param: vm_base_name }
1049 key_name: { get_resource: vm_key }
1051 - port: { get_resource: sdnc_private_port }
1052 user_data_format: RAW
1056 __nexus_repo__: { get_param: nexus_repo }
1057 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1058 __nexus_username__: { get_param: nexus_username }
1059 __nexus_password__: { get_param: nexus_password }
1060 __artifacts_version__: { get_param: artifacts_version }
1061 __dns_ip_addr__: { get_param: dns_ip_addr }
1062 __docker_version__: { get_param: sdnc_docker }
1063 __gerrit_branch__: { get_param: sdnc_branch }
1064 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1065 __cloud_env__: { get_param: cloud_env }
1066 __external_dns__: { get_param: external_dns }
1067 __sdnc_repo__: { get_param: sdnc_repo }
1071 # Create configuration files
1072 mkdir -p /opt/config
1073 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1074 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1075 echo "__nexus_username__" > /opt/config/nexus_username.txt
1076 echo "__nexus_password__" > /opt/config/nexus_password.txt
1077 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1078 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1079 echo "__docker_version__" > /opt/config/docker_version.txt
1080 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1081 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1082 echo "__cloud_env__" > /opt/config/cloud_env.txt
1083 echo "__external_dns__" > /opt/config/external_dns.txt
1084 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1086 # Download and run install script
1087 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1089 chmod +x sdnc_install.sh
1095 type: OS::Neutron::Port
1097 network: { get_resource: oam_onap }
1098 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1101 type: OS::Neutron::FloatingIP
1103 floating_network_id: { get_param: public_net_id }
1104 port_id: { get_resource: sdc_private_port }
1105 floating_ip_address: { get_param: sdc_float_ip }
1108 type: OS::Cinder::Volume
1114 type: OS::Nova::Server
1116 image: { get_param: ubuntu_1604_image }
1117 flavor: { get_param: flavor_xlarge }
1122 base: { get_param: vm_base_name }
1123 key_name: { get_resource: vm_key }
1125 - port: { get_resource: sdc_private_port }
1126 block_device_mapping:
1127 - device_name: /dev/vdb
1128 volume_id: {get_resource: sdc_volume_data}
1129 user_data_format: RAW
1133 __nexus_repo__: { get_param: nexus_repo }
1134 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1135 __nexus_username__: { get_param: nexus_username }
1136 __nexus_password__: { get_param: nexus_password }
1137 __env_name__: { get_param: dmaap_topic }
1138 __artifacts_version__: { get_param: artifacts_version }
1139 __dns_ip_addr__: { get_param: dns_ip_addr }
1140 __mr_ip_addr__: { get_param: mr_ip_addr }
1141 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1142 __docker_version__: { get_param: sdc_docker }
1143 __gerrit_branch__: { get_param: sdc_branch }
1144 __cloud_env__: { get_param: cloud_env }
1145 __external_dns__: { get_param: external_dns }
1146 __sdc_repo__: { get_param: sdc_repo }
1150 # Create configuration files
1151 mkdir -p /opt/config
1152 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1153 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1154 echo "__nexus_username__" > /opt/config/nexus_username.txt
1155 echo "__nexus_password__" > /opt/config/nexus_password.txt
1156 echo "__env_name__" > /opt/config/env_name.txt
1157 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1158 echo "__public_ip__" > /opt/config/public_ip.txt
1159 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1160 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1161 echo "__docker_version__" > /opt/config/docker_version.txt
1162 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1163 echo "__cloud_env__" > /opt/config/cloud_env.txt
1164 echo "__external_dns__" > /opt/config/external_dns.txt
1165 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1167 # Download and run install script
1168 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1170 chmod +x sdc_install.sh
1174 # PORTAL instantiation
1175 portal_private_port:
1176 type: OS::Neutron::Port
1178 network: { get_resource: oam_onap }
1179 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1182 type: OS::Neutron::FloatingIP
1184 floating_network_id: { get_param: public_net_id }
1185 port_id: { get_resource: portal_private_port }
1186 floating_ip_address: { get_param: portal_float_ip }
1189 type: OS::Nova::Server
1191 image: { get_param: ubuntu_1404_image }
1192 flavor: { get_param: flavor_large }
1195 template: base-portal
1197 base: { get_param: vm_base_name }
1198 key_name: { get_resource: vm_key }
1200 - port: { get_resource: portal_private_port }
1201 user_data_format: RAW
1205 __nexus_repo__: { get_param: nexus_repo }
1206 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1207 __nexus_username__: { get_param: nexus_username }
1208 __nexus_password__: { get_param: nexus_password }
1209 __artifacts_version__: { get_param: artifacts_version }
1210 __dns_ip_addr__: { get_param: dns_ip_addr }
1211 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1212 __docker_version__: { get_param: portal_docker }
1213 __gerrit_branch__: { get_param: portal_branch }
1214 __cloud_env__: { get_param: cloud_env }
1215 __external_dns__: { get_param: external_dns }
1216 __portal_repo__: { get_param: portal_repo }
1220 # Create configuration files
1221 mkdir -p /opt/config
1222 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1223 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1224 echo "__nexus_username__" > /opt/config/nexus_username.txt
1225 echo "__nexus_password__" > /opt/config/nexus_password.txt
1226 echo "__public_ip__" > /opt/config/public_ip.txt
1227 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1228 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1229 echo "__docker_version__" > /opt/config/docker_version.txt
1230 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1231 echo "__cloud_env__" > /opt/config/cloud_env.txt
1232 echo "__external_dns__" > /opt/config/external_dns.txt
1233 echo "__portal_repo__" > /opt/config/remote_repo.txt
1235 # Download and run install script
1236 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1238 chmod +x portal_install.sh
1242 # DCAE Controller instantiation
1243 dcae_c_private_port:
1244 type: OS::Neutron::Port
1246 network: { get_resource: oam_onap }
1247 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1250 type: OS::Neutron::FloatingIP
1252 floating_network_id: { get_param: public_net_id }
1253 port_id: { get_resource: dcae_c_private_port }
1254 floating_ip_address: { get_param: dcae_float_ip }
1257 type: OS::Nova::Server
1259 image: { get_param: ubuntu_1404_image }
1260 flavor: { get_param: flavor_medium }
1263 template: base-dcae-controller
1265 base: { get_param: vm_base_name }
1266 key_name: { get_resource: vm_key }
1268 - port: { get_resource: dcae_c_private_port }
1269 user_data_format: RAW
1273 __nexus_repo__: { get_param: nexus_repo }
1274 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1275 __nexus_username__: { get_param: nexus_username }
1276 __nexus_password__: { get_param: nexus_password }
1277 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1278 __gitlab_branch__: { get_param: gitlab_branch }
1279 __dns_ip_addr__: { get_param: dns_ip_addr }
1280 __dcae_zone__: { get_param: dcae_zone }
1281 __dcae_state__: { get_param: dcae_state }
1282 __artifacts_version__: { get_param: artifacts_version }
1283 __tenant_id__: { get_param: openstack_tenant_id }
1284 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1285 __openstack_user__: { get_param: openstack_username }
1286 __openstack_password__: { get_param: openstack_api_key }
1287 __openstack_auth_method__: { get_param: openstack_auth_method }
1288 __key_name__: { get_param: key_name }
1289 __rand_str__: { get_resource: random-str }
1290 __pub_key__: { get_param: pub_key }
1291 __nexus_repo_root__: { get_param: nexus_repo_root }
1292 __openstack_region__: { get_param: openstack_region }
1293 __horizon_url__: { get_param: horizon_url }
1294 __keystone_url__: { get_param: keystone_url }
1295 __docker_version__: { get_param: dcae_docker }
1296 __gerrit_branch__: { get_param: dcae_branch }
1297 __dcae_code_version__: { get_param: dcae_code_version }
1298 __cloud_env__: { get_param: cloud_env }
1299 __public_net_id__: { get_param: public_net_id }
1300 __dcae_base_environment__: { get_param: dcae_base_environment }
1301 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1302 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1303 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1304 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1305 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1306 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1307 __dcae_float_ip__: { get_param: dcae_float_ip }
1308 __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1309 __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1310 __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1311 __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1312 __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1313 __external_dns__: { get_param: external_dns }
1314 __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1315 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1316 __flavor_small__: { get_param: flavor_small }
1317 __flavor_medium__: { get_param: flavor_medium }
1318 __flavor_large__: { get_param: flavor_large }
1319 __flavor_xlarge__: { get_param: flavor_xlarge }
1320 __dcae_repo__: { get_param: dcae_repo }
1321 __mr_repo__: { get_param: mr_repo }
1325 # Create configuration files
1326 mkdir -p /opt/config
1327 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1328 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1329 echo "__nexus_username__" > /opt/config/nexus_username.txt
1330 echo "__nexus_password__" > /opt/config/nexus_password.txt
1331 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1332 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1333 echo "__docker_version__" > /opt/config/docker_version.txt
1334 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1335 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1336 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1337 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1338 echo "__dcae_state__" > /opt/config/dcae_state.txt
1339 echo "__tenant_id__" > /opt/config/tenant_id.txt
1340 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1341 echo "__openstack_user__" > /opt/config/openstack_user.txt
1342 echo "__openstack_password__" > /opt/config/openstack_password.txt
1343 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1344 echo "__key_name__" > /opt/config/key_name.txt
1345 echo "__rand_str__" > /opt/config/rand_str.txt
1346 echo "__pub_key__" > /opt/config/pub_key.txt
1347 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1348 echo "__openstack_region__" > /opt/config/openstack_region.txt
1349 echo "__horizon_url__" > /opt/config/horizon_url.txt
1350 echo "__keystone_url__" > /opt/config/keystone_url.txt
1351 echo "__cloud_env__" > /opt/config/cloud_env.txt
1352 echo "__public_net_id__" > /opt/config/public_net_id.txt
1353 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1354 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1355 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1356 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1357 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1358 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1359 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1360 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1361 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1362 echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1363 echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1364 echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1365 echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1366 echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1367 echo "__external_dns__" > /opt/config/external_dns.txt
1368 echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1369 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1370 echo "__flavor_small__" > /opt/config/flavor_small.txt
1371 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1372 echo "__flavor_large__" > /opt/config/flavor_large.txt
1373 echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1374 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1375 echo "__mr_repo__" > /opt/config/mr_repo.txt
1377 # Download and run install script
1378 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1380 chmod +x dcae_install.sh
1384 # Policy Engine instantiation
1385 policy_private_port:
1386 type: OS::Neutron::Port
1388 network: { get_resource: oam_onap }
1389 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1392 type: OS::Neutron::FloatingIP
1394 floating_network_id: { get_param: public_net_id }
1395 port_id: { get_resource: policy_private_port }
1396 floating_ip_address: { get_param: policy_float_ip }
1399 type: OS::Nova::Server
1401 image: { get_param: ubuntu_1404_image }
1402 flavor: { get_param: flavor_xlarge }
1405 template: base-policy
1407 base: { get_param: vm_base_name }
1408 key_name: { get_resource: vm_key }
1410 - port: { get_resource: policy_private_port }
1411 user_data_format: RAW
1415 __nexus_repo__: { get_param: nexus_repo }
1416 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1417 __nexus_username__: { get_param: nexus_username }
1418 __nexus_password__: { get_param: nexus_password }
1419 __artifacts_version__: { get_param: artifacts_version }
1420 __dns_ip_addr__: { get_param: dns_ip_addr }
1421 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1422 __docker_version__: { get_param: policy_docker }
1423 __gerrit_branch__: { get_param: policy_branch }
1424 __cloud_env__: { get_param: cloud_env }
1425 __external_dns__: { get_param: external_dns }
1426 __policy_repo__: { get_param: policy_repo }
1430 # Create configuration files
1431 mkdir -p /opt/config
1432 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1433 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1434 echo "__nexus_username__" > /opt/config/nexus_username.txt
1435 echo "__nexus_password__" > /opt/config/nexus_password.txt
1436 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1437 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1438 echo "__public_ip__" > /opt/config/public_ip.txt
1439 echo "__docker_version__" > /opt/config/docker_version.txt
1440 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1441 echo "__cloud_env__" > /opt/config/cloud_env.txt
1442 echo "__external_dns__" > /opt/config/external_dns.txt
1443 echo "__policy_repo__" > /opt/config/remote_repo.txt
1445 # Download and run install script
1446 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1448 chmod +x policy_install.sh
1452 # APP-C instantiation
1454 type: OS::Neutron::Port
1456 network: { get_resource: oam_onap }
1457 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1460 type: OS::Neutron::FloatingIP
1462 floating_network_id: { get_param: public_net_id }
1463 port_id: { get_resource: appc_private_port }
1464 floating_ip_address: { get_param: appc_float_ip }
1467 type: OS::Nova::Server
1469 image: { get_param: ubuntu_1404_image }
1470 flavor: { get_param: flavor_large }
1475 base: { get_param: vm_base_name }
1476 key_name: { get_resource: vm_key }
1478 - port: { get_resource: appc_private_port }
1479 user_data_format: RAW
1483 __nexus_repo__: { get_param: nexus_repo }
1484 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1485 __nexus_username__: { get_param: nexus_username }
1486 __nexus_password__: { get_param: nexus_password }
1487 __dmaap_topic__: { get_param: dmaap_topic }
1488 __artifacts_version__: { get_param: artifacts_version }
1489 __dns_ip_addr__: { get_param: dns_ip_addr }
1490 __docker_version__: { get_param: appc_docker }
1491 __gerrit_branch__: { get_param: appc_branch }
1492 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1493 __cloud_env__: { get_param: cloud_env }
1494 __external_dns__: { get_param: external_dns }
1495 __appc_repo__: { get_param: appc_repo }
1499 # Create configuration files
1500 mkdir -p /opt/config
1501 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1502 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1503 echo "__nexus_username__" > /opt/config/nexus_username.txt
1504 echo "__nexus_password__" > /opt/config/nexus_password.txt
1505 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1506 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1507 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1508 echo "__docker_version__" > /opt/config/docker_version.txt
1509 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1510 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1511 echo "__cloud_env__" > /opt/config/cloud_env.txt
1512 echo "__external_dns__" > /opt/config/external_dns.txt
1513 echo "__appc_repo__" > /opt/config/remote_repo.txt
1515 # Download and run install script
1516 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1518 chmod +x appc_install.sh
1522 # CLAMP instantiation
1524 type: OS::Neutron::Port
1526 network: { get_resource: oam_onap }
1527 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1530 type: OS::Neutron::FloatingIP
1532 floating_network_id: { get_param: public_net_id }
1533 port_id: { get_resource: clamp_private_port }
1534 floating_ip_address: { get_param: clamp_float_ip }
1537 type: OS::Nova::Server
1539 image: { get_param: ubuntu_1604_image }
1540 flavor: { get_param: flavor_medium }
1543 template: base-clamp
1545 base: { get_param: vm_base_name }
1546 key_name: { get_resource: vm_key }
1548 - port: { get_resource: clamp_private_port }
1549 user_data_format: RAW
1553 __nexus_repo__: { get_param: nexus_repo }
1554 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1555 __nexus_username__: { get_param: nexus_username }
1556 __nexus_password__: { get_param: nexus_password }
1557 __openstack_username__: { get_param: openstack_username }
1558 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1559 __openstack_api_key__: { get_param: openstack_api_key }
1560 __openstack_region__: { get_param: openstack_region }
1561 __keystone_url__: { get_param: keystone_url }
1562 __dmaap_topic__: { get_param: dmaap_topic }
1563 __artifacts_version__: { get_param: artifacts_version }
1564 __dns_ip_addr__: { get_param: dns_ip_addr }
1565 __docker_version__: { get_param: clamp_docker }
1566 __gerrit_branch__: { get_param: clamp_branch }
1567 __cloud_env__: { get_param: cloud_env }
1568 __external_dns__: { get_param: external_dns }
1569 __clamp_repo__: { get_param: clamp_repo }
1573 # Create configuration files
1574 mkdir -p /opt/config
1575 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1576 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1577 echo "__nexus_username__" > /opt/config/nexus_username.txt
1578 echo "__nexus_password__" > /opt/config/nexus_password.txt
1579 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1580 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1581 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1582 echo "__openstack_username__" > /opt/config/openstack_username.txt
1583 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1584 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1585 echo "__openstack_region__" > /opt/config/openstack_region.txt
1586 echo "__keystone_url__" > /opt/config/keystone.txt
1587 echo "__docker_version__" > /opt/config/docker_version.txt
1588 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1589 echo "__cloud_env__" > /opt/config/cloud_env.txt
1590 echo "__external_dns__" > /opt/config/external_dns.txt
1591 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1593 # Download and run install script
1594 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1596 chmod +x clamp_install.sh
1600 # OPEN-O VM instantiation
1602 type: OS::Neutron::Port
1604 network: { get_resource: oam_onap }
1605 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1608 type: OS::Neutron::FloatingIP
1610 floating_network_id: { get_param: public_net_id }
1611 port_id: { get_resource: openo_private_port }
1612 floating_ip_address: { get_param: openo_float_ip }
1615 type: OS::Nova::Server
1617 image: { get_param: ubuntu_1604_image }
1618 flavor: { get_param: flavor_xxlarge }
1621 template: base-openo-server
1623 base: { get_param: vm_base_name }
1624 key_name: { get_resource: vm_key }
1626 - port: { get_resource: openo_private_port }
1627 user_data_format: RAW
1631 __nexus_repo__: { get_param: nexus_repo }
1632 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1633 __nexus_username__: { get_param: nexus_username }
1634 __nexus_password__: { get_param: nexus_password }
1635 __artifacts_version__: { get_param: artifacts_version }
1636 __dns_ip_addr__: { get_param: dns_ip_addr }
1637 __oam_network_cidr__: { get_param: oam_network_cidr }
1638 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1639 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1640 __appc_ip_addr__: { get_param: appc_ip_addr }
1641 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1642 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1643 __so_ip_addr__: { get_param: so_ip_addr }
1644 __mr_ip_addr__: { get_param: mr_ip_addr }
1645 __policy_ip_addr__: { get_param: policy_ip_addr }
1646 __portal_ip_addr__: { get_param: portal_ip_addr }
1647 __robot_ip_addr__: { get_param: robot_ip_addr }
1648 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1649 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1650 __vid_ip_addr__: { get_param: vid_ip_addr }
1651 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1652 __openo_ip_addr__: { get_param: openo_ip_addr }
1653 __cloud_env__: { get_param: cloud_env }
1654 __external_dns__: { get_param: external_dns }
1655 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1656 __msb_docker__: { get_param: msb_docker }
1657 __mvim_docker__: { get_param: mvim_docker }
1658 __vfc_docker__: { get_param: vfc_docker }
1659 __uui_docker__: { get_param: uui_docker }
1660 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1664 # Create configuration files
1665 mkdir -p /opt/config
1666 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1667 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1668 echo "__nexus_username__" > /opt/config/nexus_username.txt
1669 echo "__nexus_password__" > /opt/config/nexus_password.txt
1670 echo "__cloud_env__" > /opt/config/cloud_env.txt
1671 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1672 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1673 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1674 echo "__external_dns__" > /opt/config/external_dns.txt
1675 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1676 echo "__msb_docker__" > /opt/config/msb_docker.txt
1677 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1678 echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1679 echo "__uui_docker__" > /opt/config/uui_docker.txt
1680 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1682 # Create env file with the IP address of all ONAP components
1683 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1684 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1685 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1686 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1687 echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1688 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1689 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1690 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1691 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1692 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1693 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1694 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1695 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1696 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1697 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1699 # Download and run install script
1700 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1702 chmod +x openo_install.sh
1706 # DCAE GEN 2 Controller instantiation
1707 dcae_c_private_port:
1708 type: OS::Neutron::Port
1710 network: { get_resource: oam_onap }
1711 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1714 type: OS::Neutron::FloatingIP
1716 floating_network_id: { get_param: public_net_id }
1717 port_id: { get_resource: dcae_c_private_port }
1720 type: OS::Nova::Server
1722 image: { get_param: ubuntu_1604_image }
1723 flavor: { get_param: flavor_medium }
1726 template: base-dcae-controller
1728 base: { get_param: vm_base_name }
1729 key_name: { get_resource: dcae_vm_key }
1731 - port: { get_resource: dcae_c_private_port }
1732 user_data_format: RAW
1736 __nexus_repo__: { get_param: nexus_repo }
1737 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1738 __nexus_username__: { get_param: nexus_username }
1739 __nexus_password__: { get_param: nexus_password }
1740 __dns_ip_addr__: { get_param: dns_ip_addr }
1741 __dcae_zone__: { get_param: dcae_zone }
1742 __artifacts_version__: { get_param: artifacts_version }
1743 __tenant_id__: { get_param: openstack_tenant_id }
1744 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1745 __openstack_user__: { get_param: openstack_username }
1746 __openstack_password__: { get_param: openstack_api_key }
1747 __key_name__: { get_param: dcae_key_name }
1748 __pub_key__: { get_param: dcae_pub_key }
1749 __private_key__: { get_attr: [ dcae_vm_key, private_key ] }
1750 __openstack_region__: { get_param: openstack_region }
1751 __keystone_url__: { get_param: keystone_url }
1752 __docker_version__: { get_param: dcae_docker }
1753 __dcae_repo__: { get_param: dcae_repo }
1754 __gerrit_branch__: { get_param: dcae_branch }
1755 __cloud_env__: { get_param: cloud_env }
1756 __public_net_id__: { get_param: public_net_id }
1757 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1758 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1759 __external_dns__: { get_param: external_dns }
1760 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1761 __centos_7_image__: { get_param: centos_7_image }
1762 __security_group__ : { get_param: security_group }
1763 __flavor_medium__: { get_param: flavor_medium }
1764 __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1765 __rand_str__: { get_resource: random-str }
1770 # Create configuration files
1771 mkdir -p /opt/config
1772 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1773 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1774 echo "__nexus_username__" > /opt/config/nexus_username.txt
1775 echo "__nexus_password__" > /opt/config/nexus_password.txt
1776 echo "__docker_version__" > /opt/config/docker_version.txt
1777 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1778 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1779 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1780 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1781 echo "__tenant_id__" > /opt/config/tenant_id.txt
1782 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1783 echo "__openstack_user__" > /opt/config/openstack_user.txt
1784 echo "__openstack_password__" > /opt/config/openstack_password.txt
1785 echo "__key_name__" > /opt/config/key_name.txt
1786 echo "__pub_key__" > /opt/config/pub_key.txt
1787 echo "__private_key__" > /opt/config/priv_key
1788 echo "__openstack_region__" > /opt/config/openstack_region.txt
1789 echo "__keystone_url__" > /opt/config/keystone_url.txt
1790 echo "__cloud_env__" > /opt/config/cloud_env.txt
1791 echo "__public_net_id__" > /opt/config/public_net_id.txt
1792 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1793 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1794 echo "__external_dns__" > /opt/config/external_dns.txt
1795 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1796 echo "__centos_7_image__" > /opt/config/centos_7_image.txt
1797 echo "__security_group__" > /opt/config/security_group.txt
1798 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1799 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1800 echo "__mac_addr__" > /opt/config/mac_addr.txt
1801 echo "__rand_str__" > /opt/config/rand_str.txt
1803 # Download and run install script
1804 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1806 chmod +x dcae2_install.sh