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 Small Flavor supported by the cloud provider
69 description: Name of the Medium Flavor supported by the cloud provider
73 description: Name of the Large Flavor supported by the cloud provider
77 description: Name of the Extra Large Flavor supported by the cloud provider
81 description: Name of the Extra Extra Large Flavor supported by the cloud provider
85 description: Base name of ONAP VMs
89 description: Public/Private key pair name
93 description: Public key to be installed on the compute instance
97 description: Complete URL for the Nexus repository.
101 description: Complete URL for the Nexus repository for docker images.
105 description: Nexus Repository username
109 description: Nexus Repository Password
113 description: Artifacts version of ONAP components
117 description: DMaaP Topic name
121 description: Openstack tenant ID
125 description: Openstack username
127 openstack_auth_method:
129 description: Openstack authentication method (password VS. api-key)
133 description: Openstack password or API Key
137 description: URL of Openstack Horizon
141 description: URL of Openstack Keystone
145 description: Cloud Provider Name
148 ######################
150 # Network parameters #
152 ######################
155 type: comma_delimited_list
156 description: List of External DNS for OAM ONAP network
160 description: First element of the dns_list for ONAP network
164 description: CIDR of the OAM ONAP network
166 ### Floating IP addresses ###
208 ### Private IP addresses ###
252 ###########################
254 # Parameters used by DCAE #
256 ###########################
258 dcae_base_environment:
260 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
264 description: DCAE Zone to use in VM names created by DCAE controller
268 description: DCAE State to use in VM names created by DCAE controller
272 description: Root URL of Nexus repository
276 description: Snapshot of Maven repository for DCAE deployment
280 description: Region where the DCAE controller will spin the VMs
284 description: Branch of the Gitlab repository
288 description: DCAE Code Version Number
290 #####################
292 # ONAP repositories #
294 #####################
323 ################################
325 # Docker versions and branches #
327 ################################
400 type: OS::Heat::RandomString
405 # Public key used to access ONAP components
407 type: OS::Nova::KeyPair
413 base: { get_param: key_name }
414 rand: { get_resource: random-str }
415 public_key: { get_param: pub_key }
416 save_private_key: false
419 # ONAP management private network
421 type: OS::Neutron::Net
425 template: oam_onap_rand
427 rand: { get_resource: random-str }
430 type: OS::Neutron::Subnet
434 template: oam_onap_rand
436 rand: { get_resource: random-str }
437 network_id: { get_resource: oam_onap }
438 cidr: { get_param: oam_network_cidr }
439 dns_nameservers: { get_param: dns_list }
442 type: OS::Neutron::Router
444 external_gateway_info:
445 network: { get_param: public_net_id }
447 - ip_address: { get_param: router_gateway_ip }
448 subnet: { get_param: public_subnet_id }
451 type: OS::Neutron::RouterInterface
453 router_id: { get_resource: router }
454 subnet_id: { get_resource: oam_onap_subnet }
457 # DNS Server instantiation
459 type: OS::Neutron::Port
461 network: { get_resource: oam_onap }
462 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
465 type: OS::Neutron::FloatingIP
467 floating_network_id: { get_param: public_net_id }
468 port_id: { get_resource: dns_private_port }
469 floating_ip_address: { get_param: dns_float_ip }
472 type: OS::Nova::Server
474 image: { get_param: ubuntu_1404_image }
475 flavor: { get_param: flavor_small }
478 template: base-dns-server
480 base: { get_param: vm_base_name }
481 key_name: { get_resource: vm_key }
483 - port: { get_resource: dns_private_port }
484 user_data_format: RAW
488 __nexus_repo__: { get_param: nexus_repo }
489 __artifacts_version__: { get_param: artifacts_version }
490 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
491 __dns_ip_addr__: { get_param: dns_ip_addr }
492 __aai1_ip_addr__: { get_param: aai1_ip_addr }
493 __aai2_ip_addr__: { get_param: aai2_ip_addr }
494 __appc_ip_addr__: { get_param: appc_ip_addr }
495 __dcae_ip_addr__: { get_param: dcae_ip_addr }
496 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
497 __so_ip_addr__: { get_param: so_ip_addr }
498 __mr_ip_addr__: { get_param: mr_ip_addr }
499 __policy_ip_addr__: { get_param: policy_ip_addr }
500 __portal_ip_addr__: { get_param: portal_ip_addr }
501 __robot_ip_addr__: { get_param: robot_ip_addr }
502 __sdc_ip_addr__: { get_param: sdc_ip_addr }
503 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
504 __vid_ip_addr__: { get_param: vid_ip_addr }
505 __clamp_ip_addr__: { get_param: clamp_ip_addr }
506 __openo_ip_addr__: { get_param: openo_ip_addr }
507 __cloud_env__: { get_param: cloud_env }
508 __external_dns__: { get_param: external_dns }
512 # Create configuration files
514 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
515 echo "__cloud_env__" > /opt/config/cloud_env.txt
516 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
517 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
518 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
519 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
520 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
521 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
522 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
523 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
524 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
525 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
526 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
527 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
528 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
529 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
530 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
531 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
532 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
533 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
534 echo "__external_dns__" > /opt/config/external_dns.txt
536 # Download and run install script
537 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
539 chmod +x dns_install.sh
543 # A&AI instantiation (2 VMs)
545 type: OS::Neutron::Port
547 network: { get_resource: oam_onap }
548 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
551 type: OS::Neutron::FloatingIP
553 floating_network_id: { get_param: public_net_id }
554 port_id: { get_resource: aai1_private_port }
555 floating_ip_address: { get_param: aai1_float_ip }
558 type: OS::Nova::Server
561 image: { get_param: ubuntu_1404_image }
562 flavor: { get_param: flavor_xlarge }
565 template: base-aai-inst1
567 base: { get_param: vm_base_name }
568 key_name: { get_resource: vm_key }
570 - port: { get_resource: aai1_private_port }
571 user_data_format: RAW
575 __nexus_repo__: { get_param: nexus_repo }
576 __nexus_docker_repo__: { get_param: nexus_docker_repo }
577 __nexus_username__: { get_param: nexus_username }
578 __nexus_password__: { get_param: nexus_password }
579 __dmaap_topic__: { get_param: dmaap_topic }
580 __artifacts_version__: { get_param: artifacts_version }
581 __dns_ip_addr__: { get_param: dns_ip_addr }
582 __docker_version__: { get_param: aai_docker }
583 __cloud_env__: { get_param: cloud_env }
584 __gerrit_branch__: { get_param: aai_branch }
585 __external_dns__: { get_param: external_dns }
586 __aai_repo__: { get_param: aai_repo }
590 # Create configuration files
592 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
593 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
594 echo "__nexus_username__" > /opt/config/nexus_username.txt
595 echo "__nexus_password__" > /opt/config/nexus_password.txt
596 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
597 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
598 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
599 echo "__docker_version__" > /opt/config/docker_version.txt
600 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
601 echo "aai_instance_1" > /opt/config/aai_instance.txt
602 echo "__cloud_env__" > /opt/config/cloud_env.txt
603 echo "__external_dns__" > /opt/config/external_dns.txt
604 echo "__aai_repo__" > /opt/config/remote_repo.txt
606 # Download and run install script
607 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
609 chmod +x aai_install.sh
614 type: OS::Neutron::Port
616 network: { get_resource: oam_onap }
617 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
620 type: OS::Neutron::FloatingIP
622 floating_network_id: { get_param: public_net_id }
623 port_id: { get_resource: aai2_private_port }
624 floating_ip_address: { get_param: aai2_float_ip }
627 type: OS::Nova::Server
629 image: { get_param: ubuntu_1404_image }
630 flavor: { get_param: flavor_xlarge }
633 template: base-aai-inst2
635 base: { get_param: vm_base_name }
636 key_name: { get_resource: vm_key }
638 - port: { get_resource: aai2_private_port }
639 user_data_format: RAW
643 __nexus_repo__: { get_param: nexus_repo }
644 __nexus_docker_repo__: { get_param: nexus_docker_repo }
645 __nexus_username__: { get_param: nexus_username }
646 __nexus_password__: { get_param: nexus_password }
647 __dmaap_topic__: { get_param: dmaap_topic }
648 __artifacts_version__: { get_param: artifacts_version }
649 __dns_ip_addr__: { get_param: dns_ip_addr }
650 __docker_version__: { get_param: aai_docker }
651 __cloud_env__: { get_param: cloud_env }
652 __gerrit_branch__: { get_param: aai_branch }
653 __external_dns__: { get_param: external_dns }
654 __aai_repo__: { get_param: aai_repo }
658 # Create configuration files
660 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
661 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
662 echo "__nexus_username__" > /opt/config/nexus_username.txt
663 echo "__nexus_password__" > /opt/config/nexus_password.txt
664 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
665 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
666 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
667 echo "__docker_version__" > /opt/config/docker_version.txt
668 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
669 echo "aai_instance_2" > /opt/config/aai_instance.txt
670 echo "__cloud_env__" > /opt/config/cloud_env.txt
671 echo "__external_dns__" > /opt/config/external_dns.txt
672 echo "__aai_repo__" > /opt/config/remote_repo.txt
674 # Download and run install script
675 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
677 chmod +x aai_install.sh
683 type: OS::Neutron::Port
685 network: { get_resource: oam_onap }
686 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
689 type: OS::Neutron::FloatingIP
691 floating_network_id: { get_param: public_net_id }
692 port_id: { get_resource: so_private_port }
693 floating_ip_address: { get_param: so_float_ip }
696 type: OS::Nova::Server
698 image: { get_param: ubuntu_1604_image }
699 flavor: { get_param: flavor_large }
704 base: { get_param: vm_base_name }
705 key_name: { get_resource: vm_key }
707 - port: { get_resource: so_private_port }
708 user_data_format: RAW
712 __nexus_repo__: { get_param: nexus_repo }
713 __nexus_docker_repo__: { get_param: nexus_docker_repo }
714 __nexus_username__: { get_param: nexus_username }
715 __nexus_password__: { get_param: nexus_password }
716 __openstack_username__: { get_param: openstack_username }
717 __openstack_tenant_id__: { get_param: openstack_tenant_id }
718 __openstack_api_key__: { get_param: openstack_api_key }
719 __openstack_region__: { get_param: openstack_region }
720 __keystone_url__: { get_param: keystone_url }
721 __dmaap_topic__: { get_param: dmaap_topic }
722 __artifacts_version__: { get_param: artifacts_version }
723 __dns_ip_addr__: { get_param: dns_ip_addr }
724 __docker_version__: { get_param: so_docker }
725 __gerrit_branch__: { get_param: so_branch }
726 __cloud_env__: { get_param: cloud_env }
727 __external_dns__: { get_param: external_dns }
728 __so_repo__: { get_param: so_repo }
732 # Create configuration files
734 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
735 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
736 echo "__nexus_username__" > /opt/config/nexus_username.txt
737 echo "__nexus_password__" > /opt/config/nexus_password.txt
738 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
739 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
740 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
741 echo "__openstack_username__" > /opt/config/openstack_username.txt
742 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
743 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
744 echo "__openstack_region__" > /opt/config/openstack_region.txt
745 echo "__keystone_url__" > /opt/config/keystone.txt
746 echo "__docker_version__" > /opt/config/docker_version.txt
747 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
748 echo "__cloud_env__" > /opt/config/cloud_env.txt
749 echo "__external_dns__" > /opt/config/external_dns.txt
750 echo "__so_repo__" > /opt/config/remote_repo.txt
752 # Download and run install script
753 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
755 chmod +x so_install.sh
759 # Message Router instantiation
760 mrouter_private_port:
761 type: OS::Neutron::Port
763 network: { get_resource: oam_onap }
764 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
767 type: OS::Neutron::FloatingIP
769 floating_network_id: { get_param: public_net_id }
770 port_id: { get_resource: mrouter_private_port }
771 floating_ip_address: { get_param: mr_float_ip }
774 type: OS::Nova::Server
776 image: { get_param: ubuntu_1404_image }
777 flavor: { get_param: flavor_large }
780 template: base-message-router
782 base: { get_param: vm_base_name }
783 key_name: { get_resource: vm_key }
785 - port: { get_resource: mrouter_private_port }
786 user_data_format: RAW
790 __nexus_repo__: { get_param: nexus_repo }
791 __nexus_docker_repo__: { get_param: nexus_docker_repo }
792 __nexus_username__: { get_param: nexus_username }
793 __nexus_password__: { get_param: nexus_password }
794 __artifacts_version__: { get_param: artifacts_version }
795 __dns_ip_addr__: { get_param: dns_ip_addr }
796 __gerrit_branch__: { get_param: mr_branch }
797 __cloud_env__: { get_param: cloud_env }
798 __external_dns__: { get_param: external_dns }
799 __mr_repo__: { get_param: mr_repo }
803 # Create configuration files
805 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
806 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
807 echo "__nexus_username__" > /opt/config/nexus_username.txt
808 echo "__nexus_password__" > /opt/config/nexus_password.txt
809 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
810 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
811 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
812 echo "__cloud_env__" > /opt/config/cloud_env.txt
813 echo "__external_dns__" > /opt/config/external_dns.txt
814 echo "__mr_repo__" > /opt/config/remote_repo.txt
816 # Download and run install script
817 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
819 chmod +x mr_install.sh
823 # Robot Framework instantiation
825 type: OS::Neutron::Port
827 network: { get_resource: oam_onap }
828 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
831 type: OS::Neutron::FloatingIP
833 floating_network_id: { get_param: public_net_id }
834 port_id: { get_resource: robot_private_port }
835 floating_ip_address: { get_param: robot_float_ip }
838 type: OS::Nova::Server
840 image: { get_param: ubuntu_1604_image }
841 flavor: { get_param: flavor_small }
846 base: { get_param: vm_base_name }
847 key_name: { get_resource: vm_key }
849 - port: { get_resource: robot_private_port }
850 user_data_format: RAW
854 __nexus_repo__: { get_param: nexus_repo }
855 __nexus_docker_repo__: { get_param: nexus_docker_repo }
856 __nexus_username__: { get_param: nexus_username }
857 __nexus_password__: { get_param: nexus_password }
858 __network_name__: { get_attr: [oam_onap, name] }
859 __openstack_username__: { get_param: openstack_username }
860 __openstack_api_key__: { get_param : openstack_api_key }
861 __openstack_tenant_id__: { get_param: openstack_tenant_id }
862 __artifacts_version__: { get_param: artifacts_version }
863 __openstack_region__: { get_param: openstack_region }
864 __dns_ip_addr__: { get_param: dns_ip_addr }
865 __docker_version__: { get_param: robot_docker }
866 __gerrit_branch__: { get_param: robot_branch }
867 __keystone_url__: { get_param: keystone_url }
868 __aai1_ip_addr__: { get_param: aai1_ip_addr }
869 __aai2_ip_addr__: { get_param: aai2_ip_addr }
870 __appc_ip_addr__: { get_param: appc_ip_addr }
871 __dcae_ip_addr__: { get_param: dcae_ip_addr }
872 __so_ip_addr__: { get_param: so_ip_addr }
873 __mr_ip_addr__: { get_param: mr_ip_addr }
874 __policy_ip_addr__: { get_param: policy_ip_addr }
875 __portal_ip_addr__: { get_param: portal_ip_addr }
876 __sdc_ip_addr__: { get_param: sdc_ip_addr }
877 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
878 __vid_ip_addr__: { get_param: vid_ip_addr }
879 __clamp_ip_addr__: { get_param: clamp_ip_addr }
880 __openo_ip_addr__: { get_param: openo_ip_addr }
881 __cloud_env__: { get_param: cloud_env }
882 __external_dns__: { get_param: external_dns }
883 __vm_image_name__: { get_param: ubuntu_1404_image }
884 __vm_flavor__: { get_param: flavor_medium }
885 __robot_repo__: { get_param: robot_repo }
889 # Create configuration files
891 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
892 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
893 echo "__nexus_username__" > /opt/config/nexus_username.txt
894 echo "__nexus_password__" > /opt/config/nexus_password.txt
895 echo "__network_name__" > /opt/config/network.txt
896 echo "__openstack_username__" > /opt/config/openstack_username.txt
897 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
898 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
899 echo "__openstack_region__" > /opt/config/region.txt
900 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
901 echo "__docker_version__" > /opt/config/docker_version.txt
902 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
903 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
904 echo "__keystone_url__" > /opt/config/keystone.txt
905 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
906 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
907 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
908 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
909 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
910 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
911 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
912 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
913 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
914 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
915 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
916 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
917 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
918 echo "__cloud_env__" > /opt/config/cloud_env.txt
919 echo "__external_dns__" > /opt/config/external_dns.txt
920 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
921 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
922 echo "__robot_repo__" > /opt/config/remote_repo.txt
924 # Download and run install script
925 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
927 chmod +x robot_install.sh
933 type: OS::Neutron::Port
935 network: { get_resource: oam_onap }
936 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
939 type: OS::Neutron::FloatingIP
941 floating_network_id: { get_param: public_net_id }
942 port_id: { get_resource: vid_private_port }
943 floating_ip_address: { get_param: vid_float_ip }
946 type: OS::Nova::Server
948 image: { get_param: ubuntu_1404_image }
949 flavor: { get_param: flavor_medium }
954 base: { get_param: vm_base_name }
955 key_name: { get_resource: vm_key }
957 - port: { get_resource: vid_private_port }
958 user_data_format: RAW
962 __nexus_repo__: { get_param: nexus_repo }
963 __nexus_docker_repo__: { get_param: nexus_docker_repo }
964 __nexus_username__: { get_param: nexus_username }
965 __nexus_password__: { get_param: nexus_password }
966 __artifacts_version__: { get_param: artifacts_version }
967 __dns_ip_addr__: { get_param: dns_ip_addr }
968 __docker_version__: { get_param: vid_docker }
969 __gerrit_branch__: { get_param: vid_branch }
970 __cloud_env__: { get_param: cloud_env }
971 __external_dns__: { get_param: external_dns }
972 __vid_repo__: { get_param: vid_repo }
976 # Create configuration files
978 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
979 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
980 echo "__nexus_username__" > /opt/config/nexus_username.txt
981 echo "__nexus_password__" > /opt/config/nexus_password.txt
982 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
983 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
984 echo "__docker_version__" > /opt/config/docker_version.txt
985 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
986 echo "__cloud_env__" > /opt/config/cloud_env.txt
987 echo "__external_dns__" > /opt/config/external_dns.txt
988 echo "__vid_repo__" > /opt/config/remote_repo.txt
990 # Download and run install script
991 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
993 chmod +x vid_install.sh
997 # SDN-C instantiation
999 type: OS::Neutron::Port
1001 network: { get_resource: oam_onap }
1002 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
1005 type: OS::Neutron::FloatingIP
1007 floating_network_id: { get_param: public_net_id }
1008 port_id: { get_resource: sdnc_private_port }
1009 floating_ip_address: { get_param: sdnc_float_ip }
1012 type: OS::Nova::Server
1014 image: { get_param: ubuntu_1404_image }
1015 flavor: { get_param: flavor_large }
1020 base: { get_param: vm_base_name }
1021 key_name: { get_resource: vm_key }
1023 - port: { get_resource: sdnc_private_port }
1024 user_data_format: RAW
1028 __nexus_repo__: { get_param: nexus_repo }
1029 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1030 __nexus_username__: { get_param: nexus_username }
1031 __nexus_password__: { get_param: nexus_password }
1032 __artifacts_version__: { get_param: artifacts_version }
1033 __dns_ip_addr__: { get_param: dns_ip_addr }
1034 __docker_version__: { get_param: sdnc_docker }
1035 __gerrit_branch__: { get_param: sdnc_branch }
1036 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1037 __cloud_env__: { get_param: cloud_env }
1038 __external_dns__: { get_param: external_dns }
1039 __sdnc_repo__: { get_param: sdnc_repo }
1043 # Create configuration files
1044 mkdir -p /opt/config
1045 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1046 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1047 echo "__nexus_username__" > /opt/config/nexus_username.txt
1048 echo "__nexus_password__" > /opt/config/nexus_password.txt
1049 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1050 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1051 echo "__docker_version__" > /opt/config/docker_version.txt
1052 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1053 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1054 echo "__cloud_env__" > /opt/config/cloud_env.txt
1055 echo "__external_dns__" > /opt/config/external_dns.txt
1056 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1058 # Download and run install script
1059 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1061 chmod +x sdnc_install.sh
1067 type: OS::Neutron::Port
1069 network: { get_resource: oam_onap }
1070 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1073 type: OS::Neutron::FloatingIP
1075 floating_network_id: { get_param: public_net_id }
1076 port_id: { get_resource: sdc_private_port }
1077 floating_ip_address: { get_param: sdc_float_ip }
1080 type: OS::Cinder::Volume
1086 type: OS::Nova::Server
1088 image: { get_param: ubuntu_1604_image }
1089 flavor: { get_param: flavor_xlarge }
1094 base: { get_param: vm_base_name }
1095 key_name: { get_resource: vm_key }
1097 - port: { get_resource: sdc_private_port }
1098 block_device_mapping:
1099 - device_name: /dev/vdb
1100 volume_id: {get_resource: sdc_volume_data}
1101 user_data_format: RAW
1105 __nexus_repo__: { get_param: nexus_repo }
1106 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1107 __nexus_username__: { get_param: nexus_username }
1108 __nexus_password__: { get_param: nexus_password }
1109 __env_name__: { get_param: dmaap_topic }
1110 __artifacts_version__: { get_param: artifacts_version }
1111 __dns_ip_addr__: { get_param: dns_ip_addr }
1112 __mr_ip_addr__: { get_param: mr_ip_addr }
1113 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1114 __docker_version__: { get_param: sdc_docker }
1115 __gerrit_branch__: { get_param: sdc_branch }
1116 __cloud_env__: { get_param: cloud_env }
1117 __external_dns__: { get_param: external_dns }
1118 __sdc_repo__: { get_param: sdc_repo }
1122 # Create configuration files
1123 mkdir -p /opt/config
1124 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1125 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1126 echo "__nexus_username__" > /opt/config/nexus_username.txt
1127 echo "__nexus_password__" > /opt/config/nexus_password.txt
1128 echo "__env_name__" > /opt/config/env_name.txt
1129 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1130 echo "__public_ip__" > /opt/config/public_ip.txt
1131 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1132 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1133 echo "__docker_version__" > /opt/config/docker_version.txt
1134 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1135 echo "__cloud_env__" > /opt/config/cloud_env.txt
1136 echo "__external_dns__" > /opt/config/external_dns.txt
1137 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1139 # Download and run install script
1140 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1142 chmod +x sdc_install.sh
1146 # PORTAL instantiation
1147 portal_private_port:
1148 type: OS::Neutron::Port
1150 network: { get_resource: oam_onap }
1151 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1154 type: OS::Neutron::FloatingIP
1156 floating_network_id: { get_param: public_net_id }
1157 port_id: { get_resource: portal_private_port }
1158 floating_ip_address: { get_param: portal_float_ip }
1161 type: OS::Nova::Server
1163 image: { get_param: ubuntu_1404_image }
1164 flavor: { get_param: flavor_large }
1167 template: base-portal
1169 base: { get_param: vm_base_name }
1170 key_name: { get_resource: vm_key }
1172 - port: { get_resource: portal_private_port }
1173 user_data_format: RAW
1177 __nexus_repo__: { get_param: nexus_repo }
1178 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1179 __nexus_username__: { get_param: nexus_username }
1180 __nexus_password__: { get_param: nexus_password }
1181 __artifacts_version__: { get_param: artifacts_version }
1182 __dns_ip_addr__: { get_param: dns_ip_addr }
1183 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1184 __docker_version__: { get_param: portal_docker }
1185 __gerrit_branch__: { get_param: portal_branch }
1186 __cloud_env__: { get_param: cloud_env }
1187 __external_dns__: { get_param: external_dns }
1188 __portal_repo__: { get_param: portal_repo }
1192 # Create configuration files
1193 mkdir -p /opt/config
1194 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1195 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1196 echo "__nexus_username__" > /opt/config/nexus_username.txt
1197 echo "__nexus_password__" > /opt/config/nexus_password.txt
1198 echo "__public_ip__" > /opt/config/public_ip.txt
1199 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1200 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1201 echo "__docker_version__" > /opt/config/docker_version.txt
1202 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1203 echo "__cloud_env__" > /opt/config/cloud_env.txt
1204 echo "__external_dns__" > /opt/config/external_dns.txt
1205 echo "__portal_repo__" > /opt/config/remote_repo.txt
1207 # Download and run install script
1208 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1210 chmod +x portal_install.sh
1214 # DCAE Controller instantiation
1215 dcae_c_private_port:
1216 type: OS::Neutron::Port
1218 network: { get_resource: oam_onap }
1219 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1222 type: OS::Neutron::FloatingIP
1224 floating_network_id: { get_param: public_net_id }
1225 port_id: { get_resource: dcae_c_private_port }
1226 floating_ip_address: { get_param: dcae_float_ip }
1229 type: OS::Nova::Server
1231 image: { get_param: ubuntu_1404_image }
1232 flavor: { get_param: flavor_medium }
1235 template: base-dcae-controller
1237 base: { get_param: vm_base_name }
1238 key_name: { get_resource: vm_key }
1240 - port: { get_resource: dcae_c_private_port }
1241 user_data_format: RAW
1245 __nexus_repo__: { get_param: nexus_repo }
1246 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1247 __nexus_username__: { get_param: nexus_username }
1248 __nexus_password__: { get_param: nexus_password }
1249 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1250 __gitlab_branch__: { get_param: gitlab_branch }
1251 __dns_ip_addr__: { get_param: dns_ip_addr }
1252 __dcae_zone__: { get_param: dcae_zone }
1253 __dcae_state__: { get_param: dcae_state }
1254 __artifacts_version__: { get_param: artifacts_version }
1255 __tenant_id__: { get_param: openstack_tenant_id }
1256 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1257 __openstack_user__: { get_param: openstack_username }
1258 __openstack_password__: { get_param: openstack_api_key }
1259 __openstack_auth_method__: { get_param: openstack_auth_method }
1260 __key_name__: { get_param: key_name }
1261 __rand_str__: { get_resource: random-str }
1262 __pub_key__: { get_param: pub_key }
1263 __nexus_repo_root__: { get_param: nexus_repo_root }
1264 __openstack_region__: { get_param: openstack_region }
1265 __horizon_url__: { get_param: horizon_url }
1266 __keystone_url__: { get_param: keystone_url }
1267 __docker_version__: { get_param: dcae_docker }
1268 __gerrit_branch__: { get_param: dcae_branch }
1269 __dcae_code_version__: { get_param: dcae_code_version }
1270 __cloud_env__: { get_param: cloud_env }
1271 __public_net_id__: { get_param: public_net_id }
1272 __dcae_base_environment__: { get_param: dcae_base_environment }
1273 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1274 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1275 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1276 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1277 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1278 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1279 __dcae_float_ip__: { get_param: dcae_float_ip }
1280 __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1281 __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1282 __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1283 __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1284 __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1285 __external_dns__: { get_param: external_dns }
1286 __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1287 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1288 __flavor_small__: { get_param: flavor_small }
1289 __flavor_medium__: { get_param: flavor_medium }
1290 __flavor_large__: { get_param: flavor_large }
1291 __flavor_xlarge__: { get_param: flavor_xlarge }
1292 __dcae_repo__: { get_param: dcae_repo }
1293 __mr_repo__: { get_param: mr_repo }
1297 # Create configuration files
1298 mkdir -p /opt/config
1299 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1300 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1301 echo "__nexus_username__" > /opt/config/nexus_username.txt
1302 echo "__nexus_password__" > /opt/config/nexus_password.txt
1303 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1304 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1305 echo "__docker_version__" > /opt/config/docker_version.txt
1306 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1307 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1308 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1309 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1310 echo "__dcae_state__" > /opt/config/dcae_state.txt
1311 echo "__tenant_id__" > /opt/config/tenant_id.txt
1312 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1313 echo "__openstack_user__" > /opt/config/openstack_user.txt
1314 echo "__openstack_password__" > /opt/config/openstack_password.txt
1315 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1316 echo "__key_name__" > /opt/config/key_name.txt
1317 echo "__rand_str__" > /opt/config/rand_str.txt
1318 echo "__pub_key__" > /opt/config/pub_key.txt
1319 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1320 echo "__openstack_region__" > /opt/config/openstack_region.txt
1321 echo "__horizon_url__" > /opt/config/horizon_url.txt
1322 echo "__keystone_url__" > /opt/config/keystone_url.txt
1323 echo "__cloud_env__" > /opt/config/cloud_env.txt
1324 echo "__public_net_id__" > /opt/config/public_net_id.txt
1325 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1326 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1327 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1328 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1329 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1330 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1331 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1332 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1333 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1334 echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1335 echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1336 echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1337 echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1338 echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1339 echo "__external_dns__" > /opt/config/external_dns.txt
1340 echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1341 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1342 echo "__flavor_small__" > /opt/config/flavor_small.txt
1343 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1344 echo "__flavor_large__" > /opt/config/flavor_large.txt
1345 echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1346 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1347 echo "__mr_repo__" > /opt/config/mr_repo.txt
1349 # Download and run install script
1350 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1352 chmod +x dcae_install.sh
1356 # Policy Engine instantiation
1357 policy_private_port:
1358 type: OS::Neutron::Port
1360 network: { get_resource: oam_onap }
1361 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1364 type: OS::Neutron::FloatingIP
1366 floating_network_id: { get_param: public_net_id }
1367 port_id: { get_resource: policy_private_port }
1368 floating_ip_address: { get_param: policy_float_ip }
1371 type: OS::Nova::Server
1373 image: { get_param: ubuntu_1404_image }
1374 flavor: { get_param: flavor_xlarge }
1377 template: base-policy
1379 base: { get_param: vm_base_name }
1380 key_name: { get_resource: vm_key }
1382 - port: { get_resource: policy_private_port }
1383 user_data_format: RAW
1387 __nexus_repo__: { get_param: nexus_repo }
1388 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1389 __nexus_username__: { get_param: nexus_username }
1390 __nexus_password__: { get_param: nexus_password }
1391 __artifacts_version__: { get_param: artifacts_version }
1392 __dns_ip_addr__: { get_param: dns_ip_addr }
1393 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1394 __docker_version__: { get_param: policy_docker }
1395 __gerrit_branch__: { get_param: policy_branch }
1396 __cloud_env__: { get_param: cloud_env }
1397 __external_dns__: { get_param: external_dns }
1398 __policy_repo__: { get_param: policy_repo }
1402 # Create configuration files
1403 mkdir -p /opt/config
1404 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1405 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1406 echo "__nexus_username__" > /opt/config/nexus_username.txt
1407 echo "__nexus_password__" > /opt/config/nexus_password.txt
1408 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1409 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1410 echo "__public_ip__" > /opt/config/public_ip.txt
1411 echo "__docker_version__" > /opt/config/docker_version.txt
1412 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1413 echo "__cloud_env__" > /opt/config/cloud_env.txt
1414 echo "__external_dns__" > /opt/config/external_dns.txt
1415 echo "__policy_repo__" > /opt/config/remote_repo.txt
1417 # Download and run install script
1418 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1420 chmod +x policy_install.sh
1424 # APP-C instantiation
1426 type: OS::Neutron::Port
1428 network: { get_resource: oam_onap }
1429 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1432 type: OS::Neutron::FloatingIP
1434 floating_network_id: { get_param: public_net_id }
1435 port_id: { get_resource: appc_private_port }
1436 floating_ip_address: { get_param: appc_float_ip }
1439 type: OS::Nova::Server
1441 image: { get_param: ubuntu_1404_image }
1442 flavor: { get_param: flavor_large }
1447 base: { get_param: vm_base_name }
1448 key_name: { get_resource: vm_key }
1450 - port: { get_resource: appc_private_port }
1451 user_data_format: RAW
1455 __nexus_repo__: { get_param: nexus_repo }
1456 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1457 __nexus_username__: { get_param: nexus_username }
1458 __nexus_password__: { get_param: nexus_password }
1459 __dmaap_topic__: { get_param: dmaap_topic }
1460 __artifacts_version__: { get_param: artifacts_version }
1461 __dns_ip_addr__: { get_param: dns_ip_addr }
1462 __docker_version__: { get_param: appc_docker }
1463 __gerrit_branch__: { get_param: appc_branch }
1464 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1465 __cloud_env__: { get_param: cloud_env }
1466 __external_dns__: { get_param: external_dns }
1467 __appc_repo__: { get_param: appc_repo }
1471 # Create configuration files
1472 mkdir -p /opt/config
1473 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1474 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1475 echo "__nexus_username__" > /opt/config/nexus_username.txt
1476 echo "__nexus_password__" > /opt/config/nexus_password.txt
1477 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1478 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1479 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1480 echo "__docker_version__" > /opt/config/docker_version.txt
1481 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1482 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1483 echo "__cloud_env__" > /opt/config/cloud_env.txt
1484 echo "__external_dns__" > /opt/config/external_dns.txt
1485 echo "__appc_repo__" > /opt/config/remote_repo.txt
1487 # Download and run install script
1488 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1490 chmod +x appc_install.sh
1494 # CLAMP instantiation
1496 type: OS::Neutron::Port
1498 network: { get_resource: oam_onap }
1499 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1502 type: OS::Neutron::FloatingIP
1504 floating_network_id: { get_param: public_net_id }
1505 port_id: { get_resource: clamp_private_port }
1506 floating_ip_address: { get_param: clamp_float_ip }
1509 type: OS::Nova::Server
1511 image: { get_param: ubuntu_1604_image }
1512 flavor: { get_param: flavor_medium }
1515 template: base-clamp
1517 base: { get_param: vm_base_name }
1518 key_name: { get_resource: vm_key }
1520 - port: { get_resource: clamp_private_port }
1521 user_data_format: RAW
1525 __nexus_repo__: { get_param: nexus_repo }
1526 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1527 __nexus_username__: { get_param: nexus_username }
1528 __nexus_password__: { get_param: nexus_password }
1529 __openstack_username__: { get_param: openstack_username }
1530 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1531 __openstack_api_key__: { get_param: openstack_api_key }
1532 __openstack_region__: { get_param: openstack_region }
1533 __keystone_url__: { get_param: keystone_url }
1534 __dmaap_topic__: { get_param: dmaap_topic }
1535 __artifacts_version__: { get_param: artifacts_version }
1536 __dns_ip_addr__: { get_param: dns_ip_addr }
1537 __docker_version__: { get_param: clamp_docker }
1538 __gerrit_branch__: { get_param: clamp_branch }
1539 __cloud_env__: { get_param: cloud_env }
1540 __external_dns__: { get_param: external_dns }
1541 __clamp_repo__: { get_param: clamp_repo }
1545 # Create configuration files
1546 mkdir -p /opt/config
1547 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1548 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1549 echo "__nexus_username__" > /opt/config/nexus_username.txt
1550 echo "__nexus_password__" > /opt/config/nexus_password.txt
1551 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1552 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1553 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1554 echo "__openstack_username__" > /opt/config/openstack_username.txt
1555 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1556 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1557 echo "__openstack_region__" > /opt/config/openstack_region.txt
1558 echo "__keystone_url__" > /opt/config/keystone.txt
1559 echo "__docker_version__" > /opt/config/docker_version.txt
1560 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1561 echo "__cloud_env__" > /opt/config/cloud_env.txt
1562 echo "__external_dns__" > /opt/config/external_dns.txt
1563 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1565 # Download and run install script
1566 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1568 chmod +x clamp_install.sh
1572 # OPEN-O VM instantiation
1574 type: OS::Neutron::Port
1576 network: { get_resource: oam_onap }
1577 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1580 type: OS::Neutron::FloatingIP
1582 floating_network_id: { get_param: public_net_id }
1583 port_id: { get_resource: openo_private_port }
1584 floating_ip_address: { get_param: openo_float_ip }
1587 type: OS::Nova::Server
1589 image: { get_param: ubuntu_1604_image }
1590 flavor: { get_param: flavor_xxlarge }
1593 template: base-openo-server
1595 base: { get_param: vm_base_name }
1596 key_name: { get_resource: vm_key }
1598 - port: { get_resource: openo_private_port }
1599 user_data_format: RAW
1603 __nexus_repo__: { get_param: nexus_repo }
1604 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1605 __nexus_username__: { get_param: nexus_username }
1606 __nexus_password__: { get_param: nexus_password }
1607 __artifacts_version__: { get_param: artifacts_version }
1608 __dns_ip_addr__: { get_param: dns_ip_addr }
1609 __oam_network_cidr__: { get_param: oam_network_cidr }
1610 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1611 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1612 __appc_ip_addr__: { get_param: appc_ip_addr }
1613 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1614 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1615 __so_ip_addr__: { get_param: so_ip_addr }
1616 __mr_ip_addr__: { get_param: mr_ip_addr }
1617 __policy_ip_addr__: { get_param: policy_ip_addr }
1618 __portal_ip_addr__: { get_param: portal_ip_addr }
1619 __robot_ip_addr__: { get_param: robot_ip_addr }
1620 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1621 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1622 __vid_ip_addr__: { get_param: vid_ip_addr }
1623 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1624 __openo_ip_addr__: { get_param: openo_ip_addr }
1625 __cloud_env__: { get_param: cloud_env }
1626 __external_dns__: { get_param: external_dns }
1627 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1628 __msb_docker__: { get_param: msb_docker }
1629 __mvim_docker__: { get_param: mvim_docker }
1630 __vfc_docker__: { get_param: vfc_docker }
1631 __uui_docker__: { get_param: uui_docker }
1632 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1636 # Create configuration files
1637 mkdir -p /opt/config
1638 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1639 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1640 echo "__nexus_username__" > /opt/config/nexus_username.txt
1641 echo "__nexus_password__" > /opt/config/nexus_password.txt
1642 echo "__cloud_env__" > /opt/config/cloud_env.txt
1643 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1644 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1645 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1646 echo "__external_dns__" > /opt/config/external_dns.txt
1647 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1648 echo "__msb_docker__" > /opt/config/msb_docker.txt
1649 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1650 echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1651 echo "__uui_docker__" > /opt/config/uui_docker.txt
1652 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1654 # Create env file with the IP address of all ONAP components
1655 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1656 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1657 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1658 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1659 echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1660 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1661 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1662 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1663 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1664 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1665 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1666 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1667 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1668 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1669 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1671 # Download and run install script
1672 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1674 chmod +x openo_install.sh