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: Name of the Ubuntu 14.04 image
53 description: Name of the Ubuntu 16.04 image
57 description: Name of the Small Flavor supported by the cloud provider
61 description: Name of the Medium Flavor supported by the cloud provider
65 description: Name of the Large Flavor supported by the cloud provider
69 description: Name of the Extra Large Flavor supported by the cloud provider
73 description: Name of the Extra Extra Large Flavor supported by the cloud provider
77 description: Base name of ONAP VMs
81 description: Public/Private key pair name
85 description: Public key to be installed on the compute instance
89 description: Complete URL for the Nexus repository.
93 description: Complete URL for the Nexus repository for docker images.
97 description: Nexus Repository username
101 description: Nexus Repository Password
105 description: Artifacts version of ONAP components
109 description: DMaaP Topic name
113 description: Openstack tenant ID
117 description: Openstack username
119 openstack_auth_method:
121 description: Openstack authentication method (password VS. api-key)
125 description: Openstack password or API Key
129 description: URL of Openstack Horizon
133 description: URL of Openstack Keystone
137 description: Cloud Provider Name
140 ######################
142 # Network parameters #
144 ######################
147 type: comma_delimited_list
148 description: List of External DNS for OAM ONAP network
152 description: First element of the dns_list for ONAP network
156 description: CIDR of the OAM ONAP network
158 ### Floating IP addresses ###
200 ### Private IP addresses ###
244 ###########################
246 # Parameters used by DCAE #
248 ###########################
250 dcae_base_environment:
252 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
256 description: DCAE Zone to use in VM names created by DCAE controller
260 description: DCAE State to use in VM names created by DCAE controller
264 description: Root URL of Nexus repository
268 description: Snapshot of Maven repository for DCAE deployment
272 description: Region where the DCAE controller will spin the VMs
276 description: Branch of the Gitlab repository
280 description: DCAE Code Version Number
282 #####################
284 # ONAP repositories #
286 #####################
315 ################################
317 # Docker versions and branches #
319 ################################
392 type: OS::Heat::RandomString
397 # Public key used to access ONAP components
399 type: OS::Nova::KeyPair
405 base: { get_param: key_name }
406 rand: { get_resource: random-str }
407 public_key: { get_param: pub_key }
408 save_private_key: false
411 # ONAP management private network
413 type: OS::Neutron::Net
417 template: oam_onap_rand
419 rand: { get_resource: random-str }
422 type: OS::Neutron::Subnet
426 template: oam_onap_rand
428 rand: { get_resource: random-str }
429 network_id: { get_resource: oam_onap }
430 cidr: { get_param: oam_network_cidr }
431 dns_nameservers: { get_param: dns_list }
434 type: OS::Neutron::Router
436 external_gateway_info:
437 network: { get_param: public_net_id }
439 - ip_address: { get_param: router_gateway_ip }
440 subnet: { get_param: public_subnet_id }
443 type: OS::Neutron::RouterInterface
445 router_id: { get_resource: router }
446 subnet_id: { get_resource: oam_onap_subnet }
449 # DNS Server instantiation
451 type: OS::Neutron::Port
453 network: { get_resource: oam_onap }
454 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
457 type: OS::Neutron::FloatingIP
459 floating_network_id: { get_param: public_net_id }
460 port_id: { get_resource: dns_private_port }
461 floating_ip_address: { get_param: dns_float_ip }
464 type: OS::Nova::Server
466 image: { get_param: ubuntu_1404_image }
467 flavor: { get_param: flavor_small }
470 template: base-dns-server
472 base: { get_param: vm_base_name }
473 key_name: { get_resource: vm_key }
475 - port: { get_resource: dns_private_port }
476 user_data_format: RAW
480 __nexus_repo__: { get_param: nexus_repo }
481 __artifacts_version__: { get_param: artifacts_version }
482 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
483 __dns_ip_addr__: { get_param: dns_ip_addr }
484 __aai1_ip_addr__: { get_param: aai1_ip_addr }
485 __aai2_ip_addr__: { get_param: aai2_ip_addr }
486 __appc_ip_addr__: { get_param: appc_ip_addr }
487 __dcae_ip_addr__: { get_param: dcae_ip_addr }
488 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
489 __so_ip_addr__: { get_param: so_ip_addr }
490 __mr_ip_addr__: { get_param: mr_ip_addr }
491 __policy_ip_addr__: { get_param: policy_ip_addr }
492 __portal_ip_addr__: { get_param: portal_ip_addr }
493 __robot_ip_addr__: { get_param: robot_ip_addr }
494 __sdc_ip_addr__: { get_param: sdc_ip_addr }
495 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
496 __vid_ip_addr__: { get_param: vid_ip_addr }
497 __clamp_ip_addr__: { get_param: clamp_ip_addr }
498 __openo_ip_addr__: { get_param: openo_ip_addr }
499 __cloud_env__: { get_param: cloud_env }
500 __external_dns__: { get_param: external_dns }
504 # Create configuration files
506 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
507 echo "__cloud_env__" > /opt/config/cloud_env.txt
508 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
509 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
510 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
511 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
512 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
513 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
514 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
515 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
516 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
517 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
518 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
519 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
520 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
521 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
522 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
523 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
524 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
525 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
526 echo "__external_dns__" > /opt/config/external_dns.txt
528 # Download and run install script
529 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
531 chmod +x dns_install.sh
535 # A&AI instantiation (2 VMs)
537 type: OS::Neutron::Port
539 network: { get_resource: oam_onap }
540 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
543 type: OS::Neutron::FloatingIP
545 floating_network_id: { get_param: public_net_id }
546 port_id: { get_resource: aai1_private_port }
547 floating_ip_address: { get_param: aai1_float_ip }
550 type: OS::Nova::Server
553 image: { get_param: ubuntu_1404_image }
554 flavor: { get_param: flavor_xlarge }
557 template: base-aai-inst1
559 base: { get_param: vm_base_name }
560 key_name: { get_resource: vm_key }
562 - port: { get_resource: aai1_private_port }
563 user_data_format: RAW
567 __nexus_repo__: { get_param: nexus_repo }
568 __nexus_docker_repo__: { get_param: nexus_docker_repo }
569 __nexus_username__: { get_param: nexus_username }
570 __nexus_password__: { get_param: nexus_password }
571 __dmaap_topic__: { get_param: dmaap_topic }
572 __artifacts_version__: { get_param: artifacts_version }
573 __dns_ip_addr__: { get_param: dns_ip_addr }
574 __docker_version__: { get_param: aai_docker }
575 __cloud_env__: { get_param: cloud_env }
576 __gerrit_branch__: { get_param: aai_branch }
577 __external_dns__: { get_param: external_dns }
578 __aai_repo__: { get_param: aai_repo }
582 # Create configuration files
584 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
585 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
586 echo "__nexus_username__" > /opt/config/nexus_username.txt
587 echo "__nexus_password__" > /opt/config/nexus_password.txt
588 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
589 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
590 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
591 echo "__docker_version__" > /opt/config/docker_version.txt
592 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
593 echo "aai_instance_1" > /opt/config/aai_instance.txt
594 echo "__cloud_env__" > /opt/config/cloud_env.txt
595 echo "__external_dns__" > /opt/config/external_dns.txt
596 echo "__aai_repo__" > /opt/config/remote_repo.txt
598 # Download and run install script
599 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
601 chmod +x aai_install.sh
606 type: OS::Neutron::Port
608 network: { get_resource: oam_onap }
609 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
612 type: OS::Neutron::FloatingIP
614 floating_network_id: { get_param: public_net_id }
615 port_id: { get_resource: aai2_private_port }
616 floating_ip_address: { get_param: aai2_float_ip }
619 type: OS::Nova::Server
621 image: { get_param: ubuntu_1404_image }
622 flavor: { get_param: flavor_xlarge }
625 template: base-aai-inst2
627 base: { get_param: vm_base_name }
628 key_name: { get_resource: vm_key }
630 - port: { get_resource: aai2_private_port }
631 user_data_format: RAW
635 __nexus_repo__: { get_param: nexus_repo }
636 __nexus_docker_repo__: { get_param: nexus_docker_repo }
637 __nexus_username__: { get_param: nexus_username }
638 __nexus_password__: { get_param: nexus_password }
639 __dmaap_topic__: { get_param: dmaap_topic }
640 __artifacts_version__: { get_param: artifacts_version }
641 __dns_ip_addr__: { get_param: dns_ip_addr }
642 __docker_version__: { get_param: aai_docker }
643 __cloud_env__: { get_param: cloud_env }
644 __gerrit_branch__: { get_param: aai_branch }
645 __external_dns__: { get_param: external_dns }
646 __aai_repo__: { get_param: aai_repo }
650 # Create configuration files
652 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
653 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
654 echo "__nexus_username__" > /opt/config/nexus_username.txt
655 echo "__nexus_password__" > /opt/config/nexus_password.txt
656 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
657 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
658 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
659 echo "__docker_version__" > /opt/config/docker_version.txt
660 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
661 echo "aai_instance_2" > /opt/config/aai_instance.txt
662 echo "__cloud_env__" > /opt/config/cloud_env.txt
663 echo "__external_dns__" > /opt/config/external_dns.txt
664 echo "__aai_repo__" > /opt/config/remote_repo.txt
666 # Download and run install script
667 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
669 chmod +x aai_install.sh
675 type: OS::Neutron::Port
677 network: { get_resource: oam_onap }
678 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
681 type: OS::Neutron::FloatingIP
683 floating_network_id: { get_param: public_net_id }
684 port_id: { get_resource: so_private_port }
685 floating_ip_address: { get_param: so_float_ip }
688 type: OS::Nova::Server
690 image: { get_param: ubuntu_1604_image }
691 flavor: { get_param: flavor_large }
696 base: { get_param: vm_base_name }
697 key_name: { get_resource: vm_key }
699 - port: { get_resource: so_private_port }
700 user_data_format: RAW
704 __nexus_repo__: { get_param: nexus_repo }
705 __nexus_docker_repo__: { get_param: nexus_docker_repo }
706 __nexus_username__: { get_param: nexus_username }
707 __nexus_password__: { get_param: nexus_password }
708 __openstack_username__: { get_param: openstack_username }
709 __openstack_tenant_id__: { get_param: openstack_tenant_id }
710 __openstack_api_key__: { get_param: openstack_api_key }
711 __openstack_region__: { get_param: openstack_region }
712 __keystone_url__: { get_param: keystone_url }
713 __dmaap_topic__: { get_param: dmaap_topic }
714 __artifacts_version__: { get_param: artifacts_version }
715 __dns_ip_addr__: { get_param: dns_ip_addr }
716 __docker_version__: { get_param: so_docker }
717 __gerrit_branch__: { get_param: so_branch }
718 __cloud_env__: { get_param: cloud_env }
719 __external_dns__: { get_param: external_dns }
720 __so_repo__: { get_param: so_repo }
724 # Create configuration files
726 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
727 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
728 echo "__nexus_username__" > /opt/config/nexus_username.txt
729 echo "__nexus_password__" > /opt/config/nexus_password.txt
730 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
731 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
732 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
733 echo "__openstack_username__" > /opt/config/openstack_username.txt
734 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
735 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
736 echo "__openstack_region__" > /opt/config/openstack_region.txt
737 echo "__keystone_url__" > /opt/config/keystone.txt
738 echo "__docker_version__" > /opt/config/docker_version.txt
739 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
740 echo "__cloud_env__" > /opt/config/cloud_env.txt
741 echo "__external_dns__" > /opt/config/external_dns.txt
742 echo "__so_repo__" > /opt/config/remote_repo.txt
744 # Download and run install script
745 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
747 chmod +x so_install.sh
751 # Message Router instantiation
752 mrouter_private_port:
753 type: OS::Neutron::Port
755 network: { get_resource: oam_onap }
756 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
759 type: OS::Neutron::FloatingIP
761 floating_network_id: { get_param: public_net_id }
762 port_id: { get_resource: mrouter_private_port }
763 floating_ip_address: { get_param: mr_float_ip }
766 type: OS::Nova::Server
768 image: { get_param: ubuntu_1404_image }
769 flavor: { get_param: flavor_large }
772 template: base-message-router
774 base: { get_param: vm_base_name }
775 key_name: { get_resource: vm_key }
777 - port: { get_resource: mrouter_private_port }
778 user_data_format: RAW
782 __nexus_repo__: { get_param: nexus_repo }
783 __nexus_docker_repo__: { get_param: nexus_docker_repo }
784 __nexus_username__: { get_param: nexus_username }
785 __nexus_password__: { get_param: nexus_password }
786 __artifacts_version__: { get_param: artifacts_version }
787 __dns_ip_addr__: { get_param: dns_ip_addr }
788 __gerrit_branch__: { get_param: mr_branch }
789 __cloud_env__: { get_param: cloud_env }
790 __external_dns__: { get_param: external_dns }
791 __mr_repo__: { get_param: mr_repo }
795 # Create configuration files
797 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
798 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
799 echo "__nexus_username__" > /opt/config/nexus_username.txt
800 echo "__nexus_password__" > /opt/config/nexus_password.txt
801 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
802 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
803 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
804 echo "__cloud_env__" > /opt/config/cloud_env.txt
805 echo "__external_dns__" > /opt/config/external_dns.txt
806 echo "__mr_repo__" > /opt/config/remote_repo.txt
808 # Download and run install script
809 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
811 chmod +x mr_install.sh
815 # Robot Framework instantiation
817 type: OS::Neutron::Port
819 network: { get_resource: oam_onap }
820 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
823 type: OS::Neutron::FloatingIP
825 floating_network_id: { get_param: public_net_id }
826 port_id: { get_resource: robot_private_port }
827 floating_ip_address: { get_param: robot_float_ip }
830 type: OS::Nova::Server
832 image: { get_param: ubuntu_1604_image }
833 flavor: { get_param: flavor_small }
838 base: { get_param: vm_base_name }
839 key_name: { get_resource: vm_key }
841 - port: { get_resource: robot_private_port }
842 user_data_format: RAW
846 __nexus_repo__: { get_param: nexus_repo }
847 __nexus_docker_repo__: { get_param: nexus_docker_repo }
848 __nexus_username__: { get_param: nexus_username }
849 __nexus_password__: { get_param: nexus_password }
850 __network_name__: { get_attr: [oam_onap, name] }
851 __openstack_username__: { get_param: openstack_username }
852 __openstack_api_key__: { get_param : openstack_api_key }
853 __openstack_tenant_id__: { get_param: openstack_tenant_id }
854 __artifacts_version__: { get_param: artifacts_version }
855 __openstack_region__: { get_param: openstack_region }
856 __dns_ip_addr__: { get_param: dns_ip_addr }
857 __docker_version__: { get_param: robot_docker }
858 __gerrit_branch__: { get_param: robot_branch }
859 __keystone_url__: { get_param: keystone_url }
860 __aai1_ip_addr__: { get_param: aai1_ip_addr }
861 __aai2_ip_addr__: { get_param: aai2_ip_addr }
862 __appc_ip_addr__: { get_param: appc_ip_addr }
863 __dcae_ip_addr__: { get_param: dcae_ip_addr }
864 __so_ip_addr__: { get_param: so_ip_addr }
865 __mr_ip_addr__: { get_param: mr_ip_addr }
866 __policy_ip_addr__: { get_param: policy_ip_addr }
867 __portal_ip_addr__: { get_param: portal_ip_addr }
868 __sdc_ip_addr__: { get_param: sdc_ip_addr }
869 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
870 __vid_ip_addr__: { get_param: vid_ip_addr }
871 __clamp_ip_addr__: { get_param: clamp_ip_addr }
872 __openo_ip_addr__: { get_param: openo_ip_addr }
873 __cloud_env__: { get_param: cloud_env }
874 __external_dns__: { get_param: external_dns }
875 __vm_image_name__: { get_param: ubuntu_1404_image }
876 __vm_flavor__: { get_param: flavor_medium }
877 __robot_repo__: { get_param: robot_repo }
881 # Create configuration files
883 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
884 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
885 echo "__nexus_username__" > /opt/config/nexus_username.txt
886 echo "__nexus_password__" > /opt/config/nexus_password.txt
887 echo "__network_name__" > /opt/config/network.txt
888 echo "__openstack_username__" > /opt/config/openstack_username.txt
889 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
890 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
891 echo "__openstack_region__" > /opt/config/region.txt
892 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
893 echo "__docker_version__" > /opt/config/docker_version.txt
894 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
895 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
896 echo "__keystone_url__" > /opt/config/keystone.txt
897 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
898 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
899 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
900 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
901 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
902 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
903 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
904 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
905 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
906 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
907 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
908 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
909 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
910 echo "__cloud_env__" > /opt/config/cloud_env.txt
911 echo "__external_dns__" > /opt/config/external_dns.txt
912 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
913 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
914 echo "__robot_repo__" > /opt/config/remote_repo.txt
916 # Download and run install script
917 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
919 chmod +x robot_install.sh
925 type: OS::Neutron::Port
927 network: { get_resource: oam_onap }
928 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
931 type: OS::Neutron::FloatingIP
933 floating_network_id: { get_param: public_net_id }
934 port_id: { get_resource: vid_private_port }
935 floating_ip_address: { get_param: vid_float_ip }
938 type: OS::Nova::Server
940 image: { get_param: ubuntu_1404_image }
941 flavor: { get_param: flavor_medium }
946 base: { get_param: vm_base_name }
947 key_name: { get_resource: vm_key }
949 - port: { get_resource: vid_private_port }
950 user_data_format: RAW
954 __nexus_repo__: { get_param: nexus_repo }
955 __nexus_docker_repo__: { get_param: nexus_docker_repo }
956 __nexus_username__: { get_param: nexus_username }
957 __nexus_password__: { get_param: nexus_password }
958 __artifacts_version__: { get_param: artifacts_version }
959 __dns_ip_addr__: { get_param: dns_ip_addr }
960 __docker_version__: { get_param: vid_docker }
961 __gerrit_branch__: { get_param: vid_branch }
962 __cloud_env__: { get_param: cloud_env }
963 __external_dns__: { get_param: external_dns }
964 __vid_repo__: { get_param: vid_repo }
968 # Create configuration files
970 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
971 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
972 echo "__nexus_username__" > /opt/config/nexus_username.txt
973 echo "__nexus_password__" > /opt/config/nexus_password.txt
974 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
975 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
976 echo "__docker_version__" > /opt/config/docker_version.txt
977 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
978 echo "__cloud_env__" > /opt/config/cloud_env.txt
979 echo "__external_dns__" > /opt/config/external_dns.txt
980 echo "__vid_repo__" > /opt/config/remote_repo.txt
982 # Download and run install script
983 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
985 chmod +x vid_install.sh
989 # SDN-C instantiation
991 type: OS::Neutron::Port
993 network: { get_resource: oam_onap }
994 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
997 type: OS::Neutron::FloatingIP
999 floating_network_id: { get_param: public_net_id }
1000 port_id: { get_resource: sdnc_private_port }
1001 floating_ip_address: { get_param: sdnc_float_ip }
1004 type: OS::Nova::Server
1006 image: { get_param: ubuntu_1404_image }
1007 flavor: { get_param: flavor_large }
1012 base: { get_param: vm_base_name }
1013 key_name: { get_resource: vm_key }
1015 - port: { get_resource: sdnc_private_port }
1016 user_data_format: RAW
1020 __nexus_repo__: { get_param: nexus_repo }
1021 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1022 __nexus_username__: { get_param: nexus_username }
1023 __nexus_password__: { get_param: nexus_password }
1024 __artifacts_version__: { get_param: artifacts_version }
1025 __dns_ip_addr__: { get_param: dns_ip_addr }
1026 __docker_version__: { get_param: sdnc_docker }
1027 __gerrit_branch__: { get_param: sdnc_branch }
1028 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1029 __cloud_env__: { get_param: cloud_env }
1030 __external_dns__: { get_param: external_dns }
1031 __sdnc_repo__: { get_param: sdnc_repo }
1035 # Create configuration files
1036 mkdir -p /opt/config
1037 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1038 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1039 echo "__nexus_username__" > /opt/config/nexus_username.txt
1040 echo "__nexus_password__" > /opt/config/nexus_password.txt
1041 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1042 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1043 echo "__docker_version__" > /opt/config/docker_version.txt
1044 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1045 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1046 echo "__cloud_env__" > /opt/config/cloud_env.txt
1047 echo "__external_dns__" > /opt/config/external_dns.txt
1048 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1050 # Download and run install script
1051 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1053 chmod +x sdnc_install.sh
1059 type: OS::Neutron::Port
1061 network: { get_resource: oam_onap }
1062 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1065 type: OS::Neutron::FloatingIP
1067 floating_network_id: { get_param: public_net_id }
1068 port_id: { get_resource: sdc_private_port }
1069 floating_ip_address: { get_param: sdc_float_ip }
1072 type: OS::Cinder::Volume
1078 type: OS::Nova::Server
1080 image: { get_param: ubuntu_1604_image }
1081 flavor: { get_param: flavor_xlarge }
1086 base: { get_param: vm_base_name }
1087 key_name: { get_resource: vm_key }
1089 - port: { get_resource: sdc_private_port }
1090 block_device_mapping:
1091 - device_name: /dev/vdb
1092 volume_id: {get_resource: sdc_volume_data}
1093 user_data_format: RAW
1097 __nexus_repo__: { get_param: nexus_repo }
1098 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1099 __nexus_username__: { get_param: nexus_username }
1100 __nexus_password__: { get_param: nexus_password }
1101 __env_name__: { get_param: dmaap_topic }
1102 __artifacts_version__: { get_param: artifacts_version }
1103 __dns_ip_addr__: { get_param: dns_ip_addr }
1104 __mr_ip_addr__: { get_param: mr_ip_addr }
1105 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1106 __docker_version__: { get_param: sdc_docker }
1107 __gerrit_branch__: { get_param: sdc_branch }
1108 __cloud_env__: { get_param: cloud_env }
1109 __external_dns__: { get_param: external_dns }
1110 __sdc_repo__: { get_param: sdc_repo }
1114 # Create configuration files
1115 mkdir -p /opt/config
1116 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1117 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1118 echo "__nexus_username__" > /opt/config/nexus_username.txt
1119 echo "__nexus_password__" > /opt/config/nexus_password.txt
1120 echo "__env_name__" > /opt/config/env_name.txt
1121 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1122 echo "__public_ip__" > /opt/config/public_ip.txt
1123 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1124 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1125 echo "__docker_version__" > /opt/config/docker_version.txt
1126 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1127 echo "__cloud_env__" > /opt/config/cloud_env.txt
1128 echo "__external_dns__" > /opt/config/external_dns.txt
1129 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1131 # Download and run install script
1132 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1134 chmod +x sdc_install.sh
1138 # PORTAL instantiation
1139 portal_private_port:
1140 type: OS::Neutron::Port
1142 network: { get_resource: oam_onap }
1143 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1146 type: OS::Neutron::FloatingIP
1148 floating_network_id: { get_param: public_net_id }
1149 port_id: { get_resource: portal_private_port }
1150 floating_ip_address: { get_param: portal_float_ip }
1153 type: OS::Nova::Server
1155 image: { get_param: ubuntu_1404_image }
1156 flavor: { get_param: flavor_large }
1159 template: base-portal
1161 base: { get_param: vm_base_name }
1162 key_name: { get_resource: vm_key }
1164 - port: { get_resource: portal_private_port }
1165 user_data_format: RAW
1169 __nexus_repo__: { get_param: nexus_repo }
1170 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1171 __nexus_username__: { get_param: nexus_username }
1172 __nexus_password__: { get_param: nexus_password }
1173 __artifacts_version__: { get_param: artifacts_version }
1174 __dns_ip_addr__: { get_param: dns_ip_addr }
1175 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1176 __docker_version__: { get_param: portal_docker }
1177 __gerrit_branch__: { get_param: portal_branch }
1178 __cloud_env__: { get_param: cloud_env }
1179 __external_dns__: { get_param: external_dns }
1180 __portal_repo__: { get_param: portal_repo }
1184 # Create configuration files
1185 mkdir -p /opt/config
1186 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1187 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1188 echo "__nexus_username__" > /opt/config/nexus_username.txt
1189 echo "__nexus_password__" > /opt/config/nexus_password.txt
1190 echo "__public_ip__" > /opt/config/public_ip.txt
1191 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1192 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1193 echo "__docker_version__" > /opt/config/docker_version.txt
1194 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1195 echo "__cloud_env__" > /opt/config/cloud_env.txt
1196 echo "__external_dns__" > /opt/config/external_dns.txt
1197 echo "__portal_repo__" > /opt/config/remote_repo.txt
1199 # Download and run install script
1200 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1202 chmod +x portal_install.sh
1206 # DCAE Controller instantiation
1207 dcae_c_private_port:
1208 type: OS::Neutron::Port
1210 network: { get_resource: oam_onap }
1211 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1214 type: OS::Neutron::FloatingIP
1216 floating_network_id: { get_param: public_net_id }
1217 port_id: { get_resource: dcae_c_private_port }
1218 floating_ip_address: { get_param: dcae_float_ip }
1221 type: OS::Nova::Server
1223 image: { get_param: ubuntu_1404_image }
1224 flavor: { get_param: flavor_medium }
1227 template: base-dcae-controller
1229 base: { get_param: vm_base_name }
1230 key_name: { get_resource: vm_key }
1232 - port: { get_resource: dcae_c_private_port }
1233 user_data_format: RAW
1237 __nexus_repo__: { get_param: nexus_repo }
1238 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1239 __nexus_username__: { get_param: nexus_username }
1240 __nexus_password__: { get_param: nexus_password }
1241 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1242 __gitlab_branch__: { get_param: gitlab_branch }
1243 __dns_ip_addr__: { get_param: dns_ip_addr }
1244 __dcae_zone__: { get_param: dcae_zone }
1245 __dcae_state__: { get_param: dcae_state }
1246 __artifacts_version__: { get_param: artifacts_version }
1247 __tenant_id__: { get_param: openstack_tenant_id }
1248 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1249 __openstack_user__: { get_param: openstack_username }
1250 __openstack_password__: { get_param: openstack_api_key }
1251 __openstack_auth_method__: { get_param: openstack_auth_method }
1252 __key_name__: { get_param: key_name }
1253 __rand_str__: { get_resource: random-str }
1254 __pub_key__: { get_param: pub_key }
1255 __nexus_repo_root__: { get_param: nexus_repo_root }
1256 __openstack_region__: { get_param: openstack_region }
1257 __horizon_url__: { get_param: horizon_url }
1258 __keystone_url__: { get_param: keystone_url }
1259 __docker_version__: { get_param: dcae_docker }
1260 __gerrit_branch__: { get_param: dcae_branch }
1261 __dcae_code_version__: { get_param: dcae_code_version }
1262 __cloud_env__: { get_param: cloud_env }
1263 __public_net_id__: { get_param: public_net_id }
1264 __dcae_base_environment__: { get_param: dcae_base_environment }
1265 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1266 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1267 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1268 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1269 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1270 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1271 __dcae_float_ip__: { get_param: dcae_float_ip }
1272 __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1273 __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1274 __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1275 __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1276 __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1277 __external_dns__: { get_param: external_dns }
1278 __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1279 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1280 __flavor_small__: { get_param: flavor_small }
1281 __flavor_medium__: { get_param: flavor_medium }
1282 __flavor_large__: { get_param: flavor_large }
1283 __flavor_xlarge__: { get_param: flavor_xlarge }
1284 __dcae_repo__: { get_param: dcae_repo }
1285 __mr_repo__: { get_param: mr_repo }
1289 # Create configuration files
1290 mkdir -p /opt/config
1291 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1292 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1293 echo "__nexus_username__" > /opt/config/nexus_username.txt
1294 echo "__nexus_password__" > /opt/config/nexus_password.txt
1295 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1296 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1297 echo "__docker_version__" > /opt/config/docker_version.txt
1298 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1299 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1300 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1301 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1302 echo "__dcae_state__" > /opt/config/dcae_state.txt
1303 echo "__tenant_id__" > /opt/config/tenant_id.txt
1304 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1305 echo "__openstack_user__" > /opt/config/openstack_user.txt
1306 echo "__openstack_password__" > /opt/config/openstack_password.txt
1307 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1308 echo "__key_name__" > /opt/config/key_name.txt
1309 echo "__rand_str__" > /opt/config/rand_str.txt
1310 echo "__pub_key__" > /opt/config/pub_key.txt
1311 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1312 echo "__openstack_region__" > /opt/config/openstack_region.txt
1313 echo "__horizon_url__" > /opt/config/horizon_url.txt
1314 echo "__keystone_url__" > /opt/config/keystone_url.txt
1315 echo "__cloud_env__" > /opt/config/cloud_env.txt
1316 echo "__public_net_id__" > /opt/config/public_net_id.txt
1317 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1318 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1319 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1320 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1321 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1322 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1323 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1324 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1325 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1326 echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1327 echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1328 echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1329 echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1330 echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1331 echo "__external_dns__" > /opt/config/external_dns.txt
1332 echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1333 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1334 echo "__flavor_small__" > /opt/config/flavor_small.txt
1335 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1336 echo "__flavor_large__" > /opt/config/flavor_large.txt
1337 echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1338 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1339 echo "__mr_repo__" > /opt/config/mr_repo.txt
1341 # Download and run install script
1342 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1344 chmod +x dcae_install.sh
1348 # Policy Engine instantiation
1349 policy_private_port:
1350 type: OS::Neutron::Port
1352 network: { get_resource: oam_onap }
1353 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1356 type: OS::Neutron::FloatingIP
1358 floating_network_id: { get_param: public_net_id }
1359 port_id: { get_resource: policy_private_port }
1360 floating_ip_address: { get_param: policy_float_ip }
1363 type: OS::Nova::Server
1365 image: { get_param: ubuntu_1404_image }
1366 flavor: { get_param: flavor_xlarge }
1369 template: base-policy
1371 base: { get_param: vm_base_name }
1372 key_name: { get_resource: vm_key }
1374 - port: { get_resource: policy_private_port }
1375 user_data_format: RAW
1379 __nexus_repo__: { get_param: nexus_repo }
1380 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1381 __nexus_username__: { get_param: nexus_username }
1382 __nexus_password__: { get_param: nexus_password }
1383 __artifacts_version__: { get_param: artifacts_version }
1384 __dns_ip_addr__: { get_param: dns_ip_addr }
1385 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1386 __docker_version__: { get_param: policy_docker }
1387 __gerrit_branch__: { get_param: policy_branch }
1388 __cloud_env__: { get_param: cloud_env }
1389 __external_dns__: { get_param: external_dns }
1390 __policy_repo__: { get_param: policy_repo }
1394 # Create configuration files
1395 mkdir -p /opt/config
1396 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1397 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1398 echo "__nexus_username__" > /opt/config/nexus_username.txt
1399 echo "__nexus_password__" > /opt/config/nexus_password.txt
1400 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1401 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1402 echo "__public_ip__" > /opt/config/public_ip.txt
1403 echo "__docker_version__" > /opt/config/docker_version.txt
1404 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1405 echo "__cloud_env__" > /opt/config/cloud_env.txt
1406 echo "__external_dns__" > /opt/config/external_dns.txt
1407 echo "__policy_repo__" > /opt/config/remote_repo.txt
1409 # Download and run install script
1410 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1412 chmod +x policy_install.sh
1416 # APP-C instantiation
1418 type: OS::Neutron::Port
1420 network: { get_resource: oam_onap }
1421 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1424 type: OS::Neutron::FloatingIP
1426 floating_network_id: { get_param: public_net_id }
1427 port_id: { get_resource: appc_private_port }
1428 floating_ip_address: { get_param: appc_float_ip }
1431 type: OS::Nova::Server
1433 image: { get_param: ubuntu_1404_image }
1434 flavor: { get_param: flavor_large }
1439 base: { get_param: vm_base_name }
1440 key_name: { get_resource: vm_key }
1442 - port: { get_resource: appc_private_port }
1443 user_data_format: RAW
1447 __nexus_repo__: { get_param: nexus_repo }
1448 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1449 __nexus_username__: { get_param: nexus_username }
1450 __nexus_password__: { get_param: nexus_password }
1451 __dmaap_topic__: { get_param: dmaap_topic }
1452 __artifacts_version__: { get_param: artifacts_version }
1453 __dns_ip_addr__: { get_param: dns_ip_addr }
1454 __docker_version__: { get_param: appc_docker }
1455 __gerrit_branch__: { get_param: appc_branch }
1456 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1457 __cloud_env__: { get_param: cloud_env }
1458 __external_dns__: { get_param: external_dns }
1459 __appc_repo__: { get_param: appc_repo }
1463 # Create configuration files
1464 mkdir -p /opt/config
1465 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1466 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1467 echo "__nexus_username__" > /opt/config/nexus_username.txt
1468 echo "__nexus_password__" > /opt/config/nexus_password.txt
1469 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1470 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1471 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1472 echo "__docker_version__" > /opt/config/docker_version.txt
1473 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1474 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1475 echo "__cloud_env__" > /opt/config/cloud_env.txt
1476 echo "__external_dns__" > /opt/config/external_dns.txt
1477 echo "__appc_repo__" > /opt/config/remote_repo.txt
1479 # Download and run install script
1480 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1482 chmod +x appc_install.sh
1486 # CLAMP instantiation
1488 type: OS::Neutron::Port
1490 network: { get_resource: oam_onap }
1491 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1494 type: OS::Neutron::FloatingIP
1496 floating_network_id: { get_param: public_net_id }
1497 port_id: { get_resource: clamp_private_port }
1498 floating_ip_address: { get_param: clamp_float_ip }
1501 type: OS::Nova::Server
1503 image: { get_param: ubuntu_1604_image }
1504 flavor: { get_param: flavor_medium }
1507 template: base-clamp
1509 base: { get_param: vm_base_name }
1510 key_name: { get_resource: vm_key }
1512 - port: { get_resource: clamp_private_port }
1513 user_data_format: RAW
1517 __nexus_repo__: { get_param: nexus_repo }
1518 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1519 __nexus_username__: { get_param: nexus_username }
1520 __nexus_password__: { get_param: nexus_password }
1521 __openstack_username__: { get_param: openstack_username }
1522 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1523 __openstack_api_key__: { get_param: openstack_api_key }
1524 __openstack_region__: { get_param: openstack_region }
1525 __keystone_url__: { get_param: keystone_url }
1526 __dmaap_topic__: { get_param: dmaap_topic }
1527 __artifacts_version__: { get_param: artifacts_version }
1528 __dns_ip_addr__: { get_param: dns_ip_addr }
1529 __docker_version__: { get_param: clamp_docker }
1530 __gerrit_branch__: { get_param: clamp_branch }
1531 __cloud_env__: { get_param: cloud_env }
1532 __external_dns__: { get_param: external_dns }
1533 __clamp_repo__: { get_param: clamp_repo }
1537 # Create configuration files
1538 mkdir -p /opt/config
1539 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1540 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1541 echo "__nexus_username__" > /opt/config/nexus_username.txt
1542 echo "__nexus_password__" > /opt/config/nexus_password.txt
1543 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1544 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1545 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1546 echo "__openstack_username__" > /opt/config/openstack_username.txt
1547 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1548 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1549 echo "__openstack_region__" > /opt/config/openstack_region.txt
1550 echo "__keystone_url__" > /opt/config/keystone.txt
1551 echo "__docker_version__" > /opt/config/docker_version.txt
1552 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1553 echo "__cloud_env__" > /opt/config/cloud_env.txt
1554 echo "__external_dns__" > /opt/config/external_dns.txt
1555 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1557 # Download and run install script
1558 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1560 chmod +x clamp_install.sh
1564 # OPEN-O VM instantiation
1566 type: OS::Neutron::Port
1568 network: { get_resource: oam_onap }
1569 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1572 type: OS::Neutron::FloatingIP
1574 floating_network_id: { get_param: public_net_id }
1575 port_id: { get_resource: openo_private_port }
1576 floating_ip_address: { get_param: onap_float_ip }
1579 type: OS::Nova::Server
1581 image: { get_param: ubuntu_1604_image }
1582 flavor: { get_param: flavor_xxlarge }
1585 template: base-openo-server
1587 base: { get_param: vm_base_name }
1588 key_name: { get_resource: vm_key }
1590 - port: { get_resource: openo_private_port }
1591 user_data_format: RAW
1595 __nexus_repo__: { get_param: nexus_repo }
1596 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1597 __nexus_username__: { get_param: nexus_username }
1598 __nexus_password__: { get_param: nexus_password }
1599 __artifacts_version__: { get_param: artifacts_version }
1600 __dns_ip_addr__: { get_param: dns_ip_addr }
1601 __oam_network_cidr__: { get_param: oam_network_cidr }
1602 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1603 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1604 __appc_ip_addr__: { get_param: appc_ip_addr }
1605 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1606 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1607 __so_ip_addr__: { get_param: so_ip_addr }
1608 __mr_ip_addr__: { get_param: mr_ip_addr }
1609 __policy_ip_addr__: { get_param: policy_ip_addr }
1610 __portal_ip_addr__: { get_param: portal_ip_addr }
1611 __robot_ip_addr__: { get_param: robot_ip_addr }
1612 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1613 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1614 __vid_ip_addr__: { get_param: vid_ip_addr }
1615 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1616 __openo_ip_addr__: { get_param: openo_ip_addr }
1617 __cloud_env__: { get_param: cloud_env }
1618 __external_dns__: { get_param: external_dns }
1619 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1620 __msb_docker__: { get_param: msb_docker }
1621 __mvim_docker__: { get_param: mvim_docker }
1622 __vfc_docker__: { get_param: vfc_docker }
1623 __uui_docker__: { get_param: uui_docker }
1624 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1628 # Create configuration files
1629 mkdir -p /opt/config
1630 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1631 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1632 echo "__nexus_username__" > /opt/config/nexus_username.txt
1633 echo "__nexus_password__" > /opt/config/nexus_password.txt
1634 echo "__cloud_env__" > /opt/config/cloud_env.txt
1635 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1636 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1637 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1638 echo "__external_dns__" > /opt/config/external_dns.txt
1639 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1640 echo "__msb_docker__" > /opt/config/msb_docker.txt
1641 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1642 echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1643 echo "__uui_docker__" > /opt/config/uui_docker.txt
1644 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1646 # Create env file with the IP address of all ONAP components
1647 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1648 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1649 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1650 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1651 echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1652 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1653 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1654 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1655 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1656 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1657 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1658 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1659 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1660 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1661 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1663 # Download and run install script
1664 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1666 chmod +x openo_install.sh