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 CentOS 7 image
61 description: Name of the Small Flavor supported by the cloud provider
65 description: Name of the Medium Flavor supported by the cloud provider
69 description: Name of the Large Flavor supported by the cloud provider
73 description: Name of the Extra Large Flavor supported by the cloud provider
77 description: Name of the Extra Extra Large Flavor supported by the cloud provider
81 description: Security group used by DCAE GEN 2
85 description: Base name of ONAP VMs
89 description: Public/Private key pair name
93 description: Public/Private key pair name for DCAE GEN 2
97 description: Public key to be installed on the compute instance
101 description: Public key to be installed on the DCAE GEN 2 compute instance
105 description: Complete URL for the Nexus repository.
109 description: Complete URL for the Nexus repository for docker images.
113 description: Nexus Repository username
117 description: Nexus Repository Password
121 description: Artifacts version of ONAP components
125 description: DMaaP Topic name
129 description: Openstack tenant ID
133 description: Openstack username
135 openstack_auth_method:
137 description: Openstack authentication method (password VS. api-key)
141 description: Openstack password or API Key
145 description: URL of Openstack Horizon
149 description: URL of Openstack Keystone
153 description: Cloud Provider Name
155 ######################
157 # Network parameters #
159 ######################
162 type: comma_delimited_list
163 description: List of External DNS for OAM ONAP network
167 description: First element of the dns_list for ONAP network
171 description: CIDR of the OAM ONAP network
173 ### Private IP addresses ###
225 ###########################
227 # Parameters used by DCAE #
229 ###########################
231 dcae_base_environment:
233 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
237 description: DCAE Zone to use in VM names created by DCAE controller
241 description: DCAE State to use in VM names created by DCAE controller
245 description: Root URL of Nexus repository
249 description: Snapshot of Maven repository for DCAE deployment
253 description: Region where the DCAE controller will spin the VMs
257 description: Branch of the Gitlab repository
261 description: DCAE Code Version Number
263 #####################
265 # ONAP repositories #
267 #####################
296 ################################
298 # Docker versions and branches #
300 ################################
377 type: OS::Heat::RandomString
382 # Public key used to access ONAP components
384 type: OS::Nova::KeyPair
390 base: { get_param: key_name }
391 rand: { get_resource: random-str }
392 public_key: { get_param: pub_key }
393 save_private_key: false
395 # Public key used to access DCAE GEN 2
397 type: OS::Nova::KeyPair
403 base: { get_param: dcae_key_name }
404 rand: { get_resource: random-str }
405 public_key: { get_param: dcae_pub_key }
406 save_private_key: true
408 # ONAP management private network
410 type: OS::Neutron::Net
414 template: oam_onap_rand
416 rand: { get_resource: random-str }
419 type: OS::Neutron::Subnet
423 template: oam_onap_rand
425 rand: { get_resource: random-str }
426 network_id: { get_resource: oam_onap }
427 cidr: { get_param: oam_network_cidr }
428 dns_nameservers: { get_param: dns_list }
431 type: OS::Neutron::Router
433 external_gateway_info:
434 network: { get_param: public_net_id }
437 type: OS::Neutron::RouterInterface
439 router_id: { get_resource: router }
440 subnet_id: { get_resource: oam_onap_subnet }
443 # DNS Server instantiation
445 type: OS::Neutron::Port
447 network: { get_resource: oam_onap }
448 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
451 type: OS::Neutron::FloatingIP
453 floating_network_id: { get_param: public_net_id }
454 port_id: { get_resource: dns_private_port }
457 type: OS::Nova::Server
459 image: { get_param: ubuntu_1404_image }
460 flavor: { get_param: flavor_small }
463 template: base-dns-server
465 base: { get_param: vm_base_name }
466 key_name: { get_resource: vm_key }
468 - port: { get_resource: dns_private_port }
469 user_data_format: RAW
473 __nexus_repo__: { get_param: nexus_repo }
474 __artifacts_version__: { get_param: artifacts_version }
475 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
476 __dns_ip_addr__: { get_param: dns_ip_addr }
477 __aai1_ip_addr__: { get_param: aai1_ip_addr }
478 __aai2_ip_addr__: { get_param: aai2_ip_addr }
479 __appc_ip_addr__: { get_param: appc_ip_addr }
480 __dcae_ip_addr__: { get_param: dcae_ip_addr }
481 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
482 __so_ip_addr__: { get_param: so_ip_addr }
483 __mr_ip_addr__: { get_param: mr_ip_addr }
484 __policy_ip_addr__: { get_param: policy_ip_addr }
485 __portal_ip_addr__: { get_param: portal_ip_addr }
486 __robot_ip_addr__: { get_param: robot_ip_addr }
487 __sdc_ip_addr__: { get_param: sdc_ip_addr }
488 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
489 __vid_ip_addr__: { get_param: vid_ip_addr }
490 __clamp_ip_addr__: { get_param: clamp_ip_addr }
491 __openo_ip_addr__: { get_param: openo_ip_addr }
492 __cloud_env__: { get_param: cloud_env }
493 __external_dns__: { get_param: external_dns }
497 # Create configuration files
499 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
500 echo "__cloud_env__" > /opt/config/cloud_env.txt
501 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
502 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
503 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
504 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
505 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
506 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
507 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
508 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
509 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
510 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
511 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
512 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
513 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
514 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
515 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
516 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
517 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
518 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
519 echo "__external_dns__" > /opt/config/external_dns.txt
521 # Download and run install script
522 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
524 chmod +x dns_install.sh
528 # A&AI instantiation (2 VMs)
530 type: OS::Neutron::Port
532 network: { get_resource: oam_onap }
533 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
536 type: OS::Neutron::FloatingIP
538 floating_network_id: { get_param: public_net_id }
539 port_id: { get_resource: aai1_private_port }
542 type: OS::Nova::Server
545 image: { get_param: ubuntu_1404_image }
546 flavor: { get_param: flavor_xlarge }
549 template: base-aai-inst1
551 base: { get_param: vm_base_name }
552 key_name: { get_resource: vm_key }
554 - port: { get_resource: aai1_private_port }
555 user_data_format: RAW
559 __nexus_repo__: { get_param: nexus_repo }
560 __nexus_docker_repo__: { get_param: nexus_docker_repo }
561 __nexus_username__: { get_param: nexus_username }
562 __nexus_password__: { get_param: nexus_password }
563 __dmaap_topic__: { get_param: dmaap_topic }
564 __artifacts_version__: { get_param: artifacts_version }
565 __dns_ip_addr__: { get_param: dns_ip_addr }
566 __docker_version__: { get_param: aai_docker }
567 __gerrit_branch__: { get_param: aai_branch }
568 __cloud_env__: { get_param: cloud_env }
569 __external_dns__: { get_param: external_dns }
570 __aai_repo__: { get_param: aai_repo }
574 # Create configuration files
576 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
577 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
578 echo "__nexus_username__" > /opt/config/nexus_username.txt
579 echo "__nexus_password__" > /opt/config/nexus_password.txt
580 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
581 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
582 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
583 echo "__docker_version__" > /opt/config/docker_version.txt
584 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
585 echo "aai_instance_1" > /opt/config/aai_instance.txt
586 echo "__cloud_env__" > /opt/config/cloud_env.txt
587 echo "__external_dns__" > /opt/config/external_dns.txt
588 echo "__aai_repo__" > /opt/config/remote_repo.txt
590 # Download and run install script
591 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
593 chmod +x aai_install.sh
598 type: OS::Neutron::Port
600 network: { get_resource: oam_onap }
601 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
604 type: OS::Neutron::FloatingIP
606 floating_network_id: { get_param: public_net_id }
607 port_id: { get_resource: aai2_private_port }
610 type: OS::Nova::Server
612 image: { get_param: ubuntu_1404_image }
613 flavor: { get_param: flavor_xlarge }
616 template: base-aai-inst2
618 base: { get_param: vm_base_name }
619 key_name: { get_resource: vm_key }
621 - port: { get_resource: aai2_private_port }
622 user_data_format: RAW
626 __nexus_repo__: { get_param: nexus_repo }
627 __nexus_docker_repo__: { get_param: nexus_docker_repo }
628 __nexus_username__: { get_param: nexus_username }
629 __nexus_password__: { get_param: nexus_password }
630 __dmaap_topic__: { get_param: dmaap_topic }
631 __artifacts_version__: { get_param: artifacts_version }
632 __dns_ip_addr__: { get_param: dns_ip_addr }
633 __docker_version__: { get_param: aai_docker }
634 __gerrit_branch__: { get_param: aai_branch }
635 __cloud_env__: { get_param: cloud_env }
636 __external_dns__: { get_param: external_dns }
637 __aai_repo__: { get_param: aai_repo }
641 # Create configuration files
643 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
644 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
645 echo "__nexus_username__" > /opt/config/nexus_username.txt
646 echo "__nexus_password__" > /opt/config/nexus_password.txt
647 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
648 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
649 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
650 echo "__docker_version__" > /opt/config/docker_version.txt
651 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
652 echo "aai_instance_2" > /opt/config/aai_instance.txt
653 echo "__cloud_env__" > /opt/config/cloud_env.txt
654 echo "__external_dns__" > /opt/config/external_dns.txt
655 echo "__aai_repo__" > /opt/config/remote_repo.txt
657 # Download and run install script
658 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
660 chmod +x aai_install.sh
666 type: OS::Neutron::Port
668 network: { get_resource: oam_onap }
669 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
672 type: OS::Neutron::FloatingIP
674 floating_network_id: { get_param: public_net_id }
675 port_id: { get_resource: so_private_port }
678 type: OS::Nova::Server
680 image: { get_param: ubuntu_1604_image }
681 flavor: { get_param: flavor_large }
686 base: { get_param: vm_base_name }
687 key_name: { get_resource: vm_key }
689 - port: { get_resource: so_private_port }
690 user_data_format: RAW
694 __nexus_repo__: { get_param: nexus_repo }
695 __nexus_docker_repo__: { get_param: nexus_docker_repo }
696 __nexus_username__: { get_param: nexus_username }
697 __nexus_password__: { get_param: nexus_password }
698 __openstack_username__: { get_param: openstack_username }
699 __openstack_tenant_id__: { get_param: openstack_tenant_id }
700 __openstack_api_key__: { get_param: openstack_api_key }
701 __openstack_region__: { get_param: openstack_region }
702 __keystone_url__: { get_param: keystone_url }
703 __dmaap_topic__: { get_param: dmaap_topic }
704 __artifacts_version__: { get_param: artifacts_version }
705 __dns_ip_addr__: { get_param: dns_ip_addr }
706 __docker_version__: { get_param: so_docker }
707 __gerrit_branch__: { get_param: so_branch }
708 __cloud_env__: { get_param: cloud_env }
709 __external_dns__: { get_param: external_dns }
710 __so_repo__: { get_param: so_repo }
714 # Create configuration files
716 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
717 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
718 echo "__nexus_username__" > /opt/config/nexus_username.txt
719 echo "__nexus_password__" > /opt/config/nexus_password.txt
720 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
721 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
722 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
723 echo "__openstack_username__" > /opt/config/openstack_username.txt
724 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
725 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
726 echo "__openstack_region__" > /opt/config/openstack_region.txt
727 echo "__keystone_url__" > /opt/config/keystone.txt
728 echo "__docker_version__" > /opt/config/docker_version.txt
729 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
730 echo "__cloud_env__" > /opt/config/cloud_env.txt
731 echo "__external_dns__" > /opt/config/external_dns.txt
732 echo "__so_repo__" > /opt/config/remote_repo.txt
734 # Download and run install script
735 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
737 chmod +x so_install.sh
741 # Message Router instantiation
742 mrouter_private_port:
743 type: OS::Neutron::Port
745 network: { get_resource: oam_onap }
746 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
749 type: OS::Neutron::FloatingIP
751 floating_network_id: { get_param: public_net_id }
752 port_id: { get_resource: mrouter_private_port }
755 type: OS::Nova::Server
757 image: { get_param: ubuntu_1404_image }
758 flavor: { get_param: flavor_large }
761 template: base-message-router
763 base: { get_param: vm_base_name }
764 key_name: { get_resource: vm_key }
766 - port: { get_resource: mrouter_private_port }
767 user_data_format: RAW
771 __nexus_repo__: { get_param: nexus_repo }
772 __nexus_docker_repo__: { get_param: nexus_docker_repo }
773 __nexus_username__: { get_param: nexus_username }
774 __nexus_password__: { get_param: nexus_password }
775 __artifacts_version__: { get_param: artifacts_version }
776 __dns_ip_addr__: { get_param: dns_ip_addr }
777 __gerrit_branch__: { get_param: mr_branch }
778 __cloud_env__: { get_param: cloud_env }
779 __external_dns__: { get_param: external_dns }
780 __mr_repo__: { get_param: mr_repo }
784 # Create configuration files
786 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
787 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
788 echo "__nexus_username__" > /opt/config/nexus_username.txt
789 echo "__nexus_password__" > /opt/config/nexus_password.txt
790 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
791 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
792 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
793 echo "__cloud_env__" > /opt/config/cloud_env.txt
794 echo "__external_dns__" > /opt/config/external_dns.txt
795 echo "__mr_repo__" > /opt/config/remote_repo.txt
797 # Download and run install script
798 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
800 chmod +x mr_install.sh
804 # Robot Framework instantiation
806 type: OS::Neutron::Port
808 network: { get_resource: oam_onap }
809 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
812 type: OS::Neutron::FloatingIP
814 floating_network_id: { get_param: public_net_id }
815 port_id: { get_resource: robot_private_port }
818 type: OS::Nova::Server
820 image: { get_param: ubuntu_1604_image }
821 flavor: { get_param: flavor_medium }
826 base: { get_param: vm_base_name }
827 key_name: { get_resource: vm_key }
829 - port: { get_resource: robot_private_port }
830 user_data_format: RAW
834 __nexus_repo__: { get_param: nexus_repo }
835 __nexus_docker_repo__: { get_param: nexus_docker_repo }
836 __nexus_username__: { get_param: nexus_username }
837 __nexus_password__: { get_param: nexus_password }
838 __network_name__: { get_attr: [oam_onap, name] }
839 __openstack_username__: { get_param: openstack_username }
840 __openstack_api_key__: { get_param : openstack_api_key }
841 __openstack_tenant_id__: { get_param: openstack_tenant_id }
842 __artifacts_version__: { get_param: artifacts_version }
843 __openstack_region__: { get_param: openstack_region }
844 __dns_ip_addr__: { get_param: dns_ip_addr }
845 __docker_version__: { get_param: mr_docker }
846 __gerrit_branch__: { get_param: mr_branch }
847 __cloud_env__: { get_param: cloud_env }
848 __keystone_url__: { get_param: keystone_url }
849 __aai1_ip_addr__: { get_param: aai1_ip_addr }
850 __aai2_ip_addr__: { get_param: aai2_ip_addr }
851 __appc_ip_addr__: { get_param: appc_ip_addr }
852 __dcae_ip_addr__: { get_param: dcae_ip_addr }
853 __so_ip_addr__: { get_param: so_ip_addr }
854 __mr_ip_addr__: { get_param: mr_ip_addr }
855 __policy_ip_addr__: { get_param: policy_ip_addr }
856 __portal_ip_addr__: { get_param: portal_ip_addr }
857 __sdc_ip_addr__: { get_param: sdc_ip_addr }
858 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
859 __vid_ip_addr__: { get_param: vid_ip_addr }
860 __clamp_ip_addr__: { get_param: clamp_ip_addr }
861 __openo_ip_addr__: { get_param: openo_ip_addr }
862 __external_dns__: { get_param: external_dns }
863 __vm_image_name__: { get_param: ubuntu_1404_image }
864 __vm_flavor__: { get_param: flavor_medium }
865 __robot_repo__: { get_param: robot_repo }
869 # Create configuration files
871 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
872 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
873 echo "__nexus_username__" > /opt/config/nexus_username.txt
874 echo "__nexus_password__" > /opt/config/nexus_password.txt
875 echo "__network_name__" > /opt/config/network.txt
876 echo "__openstack_username__" > /opt/config/openstack_username.txt
877 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
878 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
879 echo "__openstack_region__" > /opt/config/region.txt
880 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
881 echo "__docker_version__" > /opt/config/docker_version.txt
882 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
883 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
884 echo "__keystone_url__" > /opt/config/keystone.txt
885 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
886 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
887 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
888 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
889 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
890 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
891 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
892 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
893 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
894 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
895 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
896 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
897 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
898 echo "__cloud_env__" > /opt/config/cloud_env.txt
899 echo "__external_dns__" > /opt/config/external_dns.txt
900 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
901 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
902 echo "__robot_repo__" > /opt/config/remote_repo.txt
904 # Download and run install script
905 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
907 chmod +x robot_install.sh
913 type: OS::Neutron::Port
915 network: { get_resource: oam_onap }
916 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
919 type: OS::Neutron::FloatingIP
921 floating_network_id: { get_param: public_net_id }
922 port_id: { get_resource: vid_private_port }
925 type: OS::Nova::Server
927 image: { get_param: ubuntu_1404_image }
928 flavor: { get_param: flavor_medium }
933 base: { get_param: vm_base_name }
934 key_name: { get_resource: vm_key }
936 - port: { get_resource: vid_private_port }
937 user_data_format: RAW
941 __nexus_repo__: { get_param: nexus_repo }
942 __nexus_docker_repo__: { get_param: nexus_docker_repo }
943 __nexus_username__: { get_param: nexus_username }
944 __nexus_password__: { get_param: nexus_password }
945 __artifacts_version__: { get_param: artifacts_version }
946 __dns_ip_addr__: { get_param: dns_ip_addr }
947 __docker_version__: { get_param: vid_docker }
948 __gerrit_branch__: { get_param: vid_branch }
949 __cloud_env__: { get_param: cloud_env }
950 __external_dns__: { get_param: external_dns }
951 __vid_repo__: { get_param: vid_repo }
955 # Create configuration files
957 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
958 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
959 echo "__nexus_username__" > /opt/config/nexus_username.txt
960 echo "__nexus_password__" > /opt/config/nexus_password.txt
961 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
962 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
963 echo "__docker_version__" > /opt/config/docker_version.txt
964 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
965 echo "__cloud_env__" > /opt/config/cloud_env.txt
966 echo "__external_dns__" > /opt/config/external_dns.txt
967 echo "__vid_repo__" > /opt/config/remote_repo.txt
969 # Download and run install script
970 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
972 chmod +x vid_install.sh
976 # SDN-C instantiation
978 type: OS::Neutron::Port
980 network: { get_resource: oam_onap }
981 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
984 type: OS::Neutron::FloatingIP
986 floating_network_id: { get_param: public_net_id }
987 port_id: { get_resource: sdnc_private_port }
990 type: OS::Nova::Server
992 image: { get_param: ubuntu_1404_image }
993 flavor: { get_param: flavor_large }
998 base: { get_param: vm_base_name }
999 key_name: { get_resource: vm_key }
1001 - port: { get_resource: sdnc_private_port }
1002 user_data_format: RAW
1006 __nexus_repo__: { get_param: nexus_repo }
1007 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1008 __nexus_username__: { get_param: nexus_username }
1009 __nexus_password__: { get_param: nexus_password }
1010 __artifacts_version__: { get_param: artifacts_version }
1011 __dns_ip_addr__: { get_param: dns_ip_addr }
1012 __docker_version__: { get_param: sdnc_docker }
1013 __gerrit_branch__: { get_param: sdnc_branch }
1014 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1015 __cloud_env__: { get_param: cloud_env }
1016 __external_dns__: { get_param: external_dns }
1017 __sdnc_repo__: { get_param: sdnc_repo }
1021 # Create configuration files
1022 mkdir -p /opt/config
1023 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1024 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1025 echo "__nexus_username__" > /opt/config/nexus_username.txt
1026 echo "__nexus_password__" > /opt/config/nexus_password.txt
1027 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1028 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1029 echo "__docker_version__" > /opt/config/docker_version.txt
1030 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1031 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1032 echo "__cloud_env__" > /opt/config/cloud_env.txt
1033 echo "__external_dns__" > /opt/config/external_dns.txt
1034 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1036 # Download and run install script
1037 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1039 chmod +x sdnc_install.sh
1045 type: OS::Neutron::Port
1047 network: { get_resource: oam_onap }
1048 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1051 type: OS::Neutron::FloatingIP
1053 floating_network_id: { get_param: public_net_id }
1054 port_id: { get_resource: sdc_private_port }
1057 type: OS::Cinder::Volume
1063 type: OS::Nova::Server
1065 image: { get_param: ubuntu_1604_image }
1066 flavor: { get_param: flavor_xlarge }
1071 base: { get_param: vm_base_name }
1072 key_name: { get_resource: vm_key }
1074 - port: { get_resource: sdc_private_port }
1075 block_device_mapping:
1076 - device_name: /dev/vdb
1077 volume_id: {get_resource: sdc_volume_data}
1078 user_data_format: RAW
1082 __nexus_repo__: { get_param: nexus_repo }
1083 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1084 __nexus_username__: { get_param: nexus_username }
1085 __nexus_password__: { get_param: nexus_password }
1086 __env_name__: { get_param: dmaap_topic }
1087 __artifacts_version__: { get_param: artifacts_version }
1088 __dns_ip_addr__: { get_param: dns_ip_addr }
1089 __mr_ip_addr__: { get_param: mr_ip_addr }
1090 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1091 __docker_version__: { get_param: sdc_docker }
1092 __gerrit_branch__: { get_param: sdc_branch }
1093 __cloud_env__: { get_param: cloud_env }
1094 __external_dns__: { get_param: external_dns }
1095 __sdc_repo__: { get_param: sdc_repo }
1099 # Create configuration files
1100 mkdir -p /opt/config
1101 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1102 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1103 echo "__nexus_username__" > /opt/config/nexus_username.txt
1104 echo "__nexus_password__" > /opt/config/nexus_password.txt
1105 echo "__env_name__" > /opt/config/env_name.txt
1106 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1107 echo "__public_ip__" > /opt/config/public_ip.txt
1108 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1109 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1110 echo "__docker_version__" > /opt/config/docker_version.txt
1111 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1112 echo "__cloud_env__" > /opt/config/cloud_env.txt
1113 echo "__external_dns__" > /opt/config/external_dns.txt
1114 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1116 # Download and run install script
1117 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1119 chmod +x sdc_install.sh
1123 # PORTAL instantiation
1124 portal_private_port:
1125 type: OS::Neutron::Port
1127 network: { get_resource: oam_onap }
1128 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1131 type: OS::Neutron::FloatingIP
1133 floating_network_id: { get_param: public_net_id }
1134 port_id: { get_resource: portal_private_port }
1137 type: OS::Nova::Server
1139 image: { get_param: ubuntu_1404_image }
1140 flavor: { get_param: flavor_large }
1143 template: base-portal
1145 base: { get_param: vm_base_name }
1146 key_name: { get_resource: vm_key }
1148 - port: { get_resource: portal_private_port }
1149 user_data_format: RAW
1153 __nexus_repo__: { get_param: nexus_repo }
1154 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1155 __nexus_username__: { get_param: nexus_username }
1156 __nexus_password__: { get_param: nexus_password }
1157 __artifacts_version__: { get_param: artifacts_version }
1158 __dns_ip_addr__: { get_param: dns_ip_addr }
1159 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1160 __docker_version__: { get_param: portal_docker }
1161 __gerrit_branch__: { get_param: portal_branch }
1162 __cli_docker__: { get_param: cli_docker }
1163 __cloud_env__: { get_param: cloud_env }
1164 __external_dns__: { get_param: external_dns }
1165 __portal_repo__: { get_param: portal_repo }
1169 # Create configuration files
1170 mkdir -p /opt/config
1171 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1172 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1173 echo "__nexus_username__" > /opt/config/nexus_username.txt
1174 echo "__nexus_password__" > /opt/config/nexus_password.txt
1175 echo "__public_ip__" > /opt/config/public_ip.txt
1176 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1177 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1178 echo "__docker_version__" > /opt/config/docker_version.txt
1179 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1180 echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1181 echo "__cloud_env__" > /opt/config/cloud_env.txt
1182 echo "__external_dns__" > /opt/config/external_dns.txt
1183 echo "__portal_repo__" > /opt/config/remote_repo.txt
1185 # Download and run install script
1186 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1188 chmod +x portal_install.sh
1192 # DCAE Controller instantiation
1193 # dcae_c_private_port:
1194 # type: OS::Neutron::Port
1196 # network: { get_resource: oam_onap }
1197 # fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1199 # dcae_c_floating_ip:
1200 # type: OS::Neutron::FloatingIP
1202 # floating_network_id: { get_param: public_net_id }
1203 # port_id: { get_resource: dcae_c_private_port }
1206 # type: OS::Nova::Server
1208 # image: { get_param: ubuntu_1404_image }
1209 # flavor: { get_param: flavor_medium }
1212 # template: base-dcae-controller
1214 # base: { get_param: vm_base_name }
1215 # key_name: { get_resource: vm_key }
1217 # - port: { get_resource: dcae_c_private_port }
1218 # user_data_format: RAW
1222 # __nexus_repo__: { get_param: nexus_repo }
1223 # __nexus_docker_repo__: { get_param: nexus_docker_repo }
1224 # __nexus_username__: { get_param: nexus_username }
1225 # __nexus_password__: { get_param: nexus_password }
1226 # __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1227 # __gitlab_branch__: { get_param: gitlab_branch }
1228 # __dns_ip_addr__: { get_param: dns_ip_addr }
1229 # __dcae_zone__: { get_param: dcae_zone }
1230 # __dcae_state__: { get_param: dcae_state }
1231 # __artifacts_version__: { get_param: artifacts_version }
1232 # __tenant_id__: { get_param: openstack_tenant_id }
1233 # __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1234 # __openstack_user__: { get_param: openstack_username }
1235 # __openstack_password__: { get_param: openstack_api_key }
1236 # __openstack_auth_method__: { get_param: openstack_auth_method }
1237 # __key_name__: { get_param: key_name }
1238 # __rand_str__: { get_resource: random-str }
1239 # __pub_key__: { get_param: pub_key }
1240 # __nexus_repo_root__: { get_param: nexus_repo_root }
1241 # __openstack_region__: { get_param: openstack_region }
1242 # __horizon_url__: { get_param: horizon_url }
1243 # __keystone_url__: { get_param: keystone_url }
1244 # __docker_version__: { get_param: dcae_docker }
1245 # __gerrit_branch__: { get_param: dcae_branch }
1246 # __dcae_code_version__: { get_param: dcae_code_version }
1247 # __cloud_env__: { get_param: cloud_env }
1248 # __public_net_id__: { get_param: public_net_id }
1249 # __dcae_base_environment__: { get_param: dcae_base_environment }
1250 # __dcae_ip_addr__: { get_param: dcae_ip_addr }
1251 # __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1252 # __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1253 # __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1254 # __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1255 # __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1256 # __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1257 # __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1258 # __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1259 # __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1260 # __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1261 # __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1262 # __external_dns__: { get_param: external_dns }
1263 # __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1264 # __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1265 # __flavor_small__: { get_param: flavor_small }
1266 # __flavor_medium__: { get_param: flavor_medium }
1267 # __flavor_large__: { get_param: flavor_large }
1268 # __flavor_xlarge__: { get_param: flavor_xlarge }
1269 # __dcae_repo__: { get_param: dcae_repo }
1270 # __mr_repo__: { get_param: mr_repo }
1274 # Create configuration files
1275 # mkdir -p /opt/config
1276 # echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1277 # echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1278 # echo "__nexus_username__" > /opt/config/nexus_username.txt
1279 # echo "__nexus_password__" > /opt/config/nexus_password.txt
1280 # echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1281 # echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1282 # echo "__docker_version__" > /opt/config/docker_version.txt
1283 # echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1284 # echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1285 # echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1286 # echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1287 # echo "__dcae_state__" > /opt/config/dcae_state.txt
1288 # echo "__tenant_id__" > /opt/config/tenant_id.txt
1289 # echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1290 # echo "__openstack_user__" > /opt/config/openstack_user.txt
1291 # echo "__openstack_password__" > /opt/config/openstack_password.txt
1292 # echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1293 # echo "__key_name__" > /opt/config/key_name.txt
1294 # echo "__rand_str__" > /opt/config/rand_str.txt
1295 # echo "__pub_key__" > /opt/config/pub_key.txt
1296 # echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1297 # echo "__openstack_region__" > /opt/config/openstack_region.txt
1298 # echo "__horizon_url__" > /opt/config/horizon_url.txt
1299 # echo "__keystone_url__" > /opt/config/keystone_url.txt
1300 # echo "__cloud_env__" > /opt/config/cloud_env.txt
1301 # echo "__public_net_id__" > /opt/config/public_net_id.txt
1302 # echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1303 # echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1304 # echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1305 # echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1306 # echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1307 # echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1308 # echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1309 # echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1310 # echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1311 # echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1312 # echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1313 # echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1314 # echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1315 # echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1316 # echo "__external_dns__" > /opt/config/external_dns.txt
1317 # echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1318 # echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1319 # echo "__flavor_small__" > /opt/config/flavor_small.txt
1320 # echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1321 # echo "__flavor_large__" > /opt/config/flavor_large.txt
1322 # echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1323 # echo "__dcae_repo__" > /opt/config/remote_repo.txt
1324 # echo "__mr_repo__" > /opt/config/mr_repo.txt
1326 # Download and run install script
1327 # curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1329 # chmod +x dcae_install.sh
1333 # Policy Engine instantiation
1334 policy_private_port:
1335 type: OS::Neutron::Port
1337 network: { get_resource: oam_onap }
1338 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1341 type: OS::Neutron::FloatingIP
1343 floating_network_id: { get_param: public_net_id }
1344 port_id: { get_resource: policy_private_port }
1347 type: OS::Nova::Server
1349 image: { get_param: ubuntu_1404_image }
1350 flavor: { get_param: flavor_xlarge }
1353 template: base-policy
1355 base: { get_param: vm_base_name }
1356 key_name: { get_resource: vm_key }
1358 - port: { get_resource: policy_private_port }
1359 user_data_format: RAW
1363 __nexus_repo__: { get_param: nexus_repo }
1364 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1365 __nexus_username__: { get_param: nexus_username }
1366 __nexus_password__: { get_param: nexus_password }
1367 __artifacts_version__: { get_param: artifacts_version }
1368 __dns_ip_addr__: { get_param: dns_ip_addr }
1369 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1370 __docker_version__: { get_param: policy_docker }
1371 __gerrit_branch__: { get_param: policy_branch }
1372 __cloud_env__: { get_param: cloud_env }
1373 __external_dns__: { get_param: external_dns }
1374 __policy_repo__: { get_param: policy_repo }
1378 # Create configuration files
1379 mkdir -p /opt/config
1380 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1381 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1382 echo "__nexus_username__" > /opt/config/nexus_username.txt
1383 echo "__nexus_password__" > /opt/config/nexus_password.txt
1384 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1385 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1386 echo "__public_ip__" > /opt/config/public_ip.txt
1387 echo "__docker_version__" > /opt/config/docker_version.txt
1388 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1389 echo "__cloud_env__" > /opt/config/cloud_env.txt
1390 echo "__external_dns__" > /opt/config/external_dns.txt
1391 echo "__policy_repo__" > /opt/config/remote_repo.txt
1393 # Download and run install script
1394 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1396 chmod +x policy_install.sh
1400 # APP-C instantiation
1402 type: OS::Neutron::Port
1404 network: { get_resource: oam_onap }
1405 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1408 type: OS::Neutron::FloatingIP
1410 floating_network_id: { get_param: public_net_id }
1411 port_id: { get_resource: appc_private_port }
1414 type: OS::Nova::Server
1416 image: { get_param: ubuntu_1404_image }
1417 flavor: { get_param: flavor_large }
1422 base: { get_param: vm_base_name }
1423 key_name: { get_resource: vm_key }
1425 - port: { get_resource: appc_private_port }
1426 user_data_format: RAW
1430 __nexus_repo__: { get_param: nexus_repo }
1431 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1432 __nexus_username__: { get_param: nexus_username }
1433 __nexus_password__: { get_param: nexus_password }
1434 __dmaap_topic__: { get_param: dmaap_topic }
1435 __artifacts_version__: { get_param: artifacts_version }
1436 __dns_ip_addr__: { get_param: dns_ip_addr }
1437 __docker_version__: { get_param: appc_docker }
1438 __gerrit_branch__: { get_param: appc_branch }
1439 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1440 __cloud_env__: { get_param: cloud_env }
1441 __external_dns__: { get_param: external_dns }
1442 __appc_repo__: { get_param: appc_repo }
1446 # Create configuration files
1447 mkdir -p /opt/config
1448 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1449 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1450 echo "__nexus_username__" > /opt/config/nexus_username.txt
1451 echo "__nexus_password__" > /opt/config/nexus_password.txt
1452 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1453 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1454 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1455 echo "__docker_version__" > /opt/config/docker_version.txt
1456 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1457 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1458 echo "__cloud_env__" > /opt/config/cloud_env.txt
1459 echo "__external_dns__" > /opt/config/external_dns.txt
1460 echo "__appc_repo__" > /opt/config/remote_repo.txt
1462 # Download and run install script
1463 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1465 chmod +x appc_install.sh
1469 # CLAMP instantiation
1471 type: OS::Neutron::Port
1473 network: { get_resource: oam_onap }
1474 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1477 type: OS::Neutron::FloatingIP
1479 floating_network_id: { get_param: public_net_id }
1480 port_id: { get_resource: clamp_private_port }
1483 type: OS::Nova::Server
1485 image: { get_param: ubuntu_1604_image }
1486 flavor: { get_param: flavor_medium }
1489 template: base-clamp
1491 base: { get_param: vm_base_name }
1492 key_name: { get_resource: vm_key }
1494 - port: { get_resource: clamp_private_port }
1495 user_data_format: RAW
1499 __nexus_repo__: { get_param: nexus_repo }
1500 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1501 __nexus_username__: { get_param: nexus_username }
1502 __nexus_password__: { get_param: nexus_password }
1503 __openstack_username__: { get_param: openstack_username }
1504 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1505 __openstack_api_key__: { get_param: openstack_api_key }
1506 __openstack_region__: { get_param: openstack_region }
1507 __keystone_url__: { get_param: keystone_url }
1508 __dmaap_topic__: { get_param: dmaap_topic }
1509 __artifacts_version__: { get_param: artifacts_version }
1510 __dns_ip_addr__: { get_param: dns_ip_addr }
1511 __docker_version__: { get_param: clamp_docker }
1512 __gerrit_branch__: { get_param: clamp_branch }
1513 __cloud_env__: { get_param: cloud_env }
1514 __external_dns__: { get_param: external_dns }
1515 __clamp_repo__: { get_param: clamp_repo }
1519 # Create configuration files
1520 mkdir -p /opt/config
1521 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1522 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1523 echo "__nexus_username__" > /opt/config/nexus_username.txt
1524 echo "__nexus_password__" > /opt/config/nexus_password.txt
1525 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1526 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1527 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1528 echo "__openstack_username__" > /opt/config/openstack_username.txt
1529 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1530 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1531 echo "__openstack_region__" > /opt/config/openstack_region.txt
1532 echo "__keystone_url__" > /opt/config/keystone.txt
1533 echo "__docker_version__" > /opt/config/docker_version.txt
1534 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1535 echo "__cloud_env__" > /opt/config/cloud_env.txt
1536 echo "__external_dns__" > /opt/config/external_dns.txt
1537 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1539 # Download and run install script
1540 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1542 chmod +x clamp_install.sh
1546 # OPEN-O VM instantiation
1548 type: OS::Neutron::Port
1550 network: { get_resource: oam_onap }
1551 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1554 type: OS::Neutron::FloatingIP
1556 floating_network_id: { get_param: public_net_id }
1557 port_id: { get_resource: openo_private_port }
1560 type: OS::Nova::Server
1562 image: { get_param: ubuntu_1604_image }
1563 flavor: { get_param: flavor_xxlarge }
1566 template: base-openo-server
1568 base: { get_param: vm_base_name }
1569 key_name: { get_resource: vm_key }
1571 - port: { get_resource: openo_private_port }
1572 user_data_format: RAW
1576 __nexus_repo__: { get_param: nexus_repo }
1577 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1578 __nexus_username__: { get_param: nexus_username }
1579 __nexus_password__: { get_param: nexus_password }
1580 __artifacts_version__: { get_param: artifacts_version }
1581 __dns_ip_addr__: { get_param: dns_ip_addr }
1582 __oam_network_cidr__: { get_param: oam_network_cidr }
1583 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1584 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1585 __appc_ip_addr__: { get_param: appc_ip_addr }
1586 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1587 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1588 __so_ip_addr__: { get_param: so_ip_addr }
1589 __mr_ip_addr__: { get_param: mr_ip_addr }
1590 __policy_ip_addr__: { get_param: policy_ip_addr }
1591 __portal_ip_addr__: { get_param: portal_ip_addr }
1592 __robot_ip_addr__: { get_param: robot_ip_addr }
1593 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1594 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1595 __vid_ip_addr__: { get_param: vid_ip_addr }
1596 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1597 __openo_ip_addr__: { get_param: openo_ip_addr }
1598 __cloud_env__: { get_param: cloud_env }
1599 __external_dns__: { get_param: external_dns }
1600 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1601 __msb_docker__: { get_param: msb_docker }
1602 __mvim_docker__: { get_param: mvim_docker }
1603 __vfc_docker__: { get_param: vfc_docker }
1604 __uui_docker__: { get_param: uui_docker }
1605 __esr_docker__: { get_param: esr_docker }
1606 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1610 # Create configuration files
1611 mkdir -p /opt/config
1612 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1613 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1614 echo "__nexus_username__" > /opt/config/nexus_username.txt
1615 echo "__nexus_password__" > /opt/config/nexus_password.txt
1616 echo "__cloud_env__" > /opt/config/cloud_env.txt
1617 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1618 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1619 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1620 echo "__external_dns__" > /opt/config/external_dns.txt
1621 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1622 echo "__msb_docker__" > /opt/config/msb_docker.txt
1623 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1624 echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1625 echo "__uui_docker__" > /opt/config/uui_docker.txt
1626 echo "__esr_docker__" > /opt/config/esr_docker.txt
1627 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1629 # Create env file with the IP address of all ONAP components
1630 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1631 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1632 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1633 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1634 echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1635 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1636 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1637 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1638 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1639 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1640 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1641 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1642 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1643 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1644 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1646 # Download and run install script
1647 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1649 chmod +x openo_install.sh
1653 # DCAE GEN 2 Controller instantiation
1654 dcae_c_private_port:
1655 type: OS::Neutron::Port
1657 network: { get_resource: oam_onap }
1658 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1661 type: OS::Neutron::FloatingIP
1663 floating_network_id: { get_param: public_net_id }
1664 port_id: { get_resource: dcae_c_private_port }
1667 type: OS::Nova::Server
1669 image: { get_param: ubuntu_1604_image }
1670 flavor: { get_param: flavor_medium }
1673 template: base-dcae-controller
1675 base: { get_param: vm_base_name }
1676 key_name: { get_resource: dcae_vm_key }
1678 - port: { get_resource: dcae_c_private_port }
1679 user_data_format: RAW
1683 __nexus_repo__: { get_param: nexus_repo }
1684 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1685 __nexus_username__: { get_param: nexus_username }
1686 __nexus_password__: { get_param: nexus_password }
1687 __dns_ip_addr__: { get_param: dns_ip_addr }
1688 __dcae_zone__: { get_param: dcae_zone }
1689 __artifacts_version__: { get_param: artifacts_version }
1690 __tenant_id__: { get_param: openstack_tenant_id }
1691 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1692 __openstack_user__: { get_param: openstack_username }
1693 __openstack_password__: { get_param: openstack_api_key }
1694 __key_name__: { get_param: dcae_key_name }
1695 __pub_key__: { get_param: dcae_pub_key }
1696 __private_key__: { get_attr: [ dcae_vm_key, private_key ] }
1697 __openstack_region__: { get_param: openstack_region }
1698 __keystone_url__: { get_param: keystone_url }
1699 __docker_version__: { get_param: dcae_docker }
1700 __dcae_repo__: { get_param: dcae_repo }
1701 __gerrit_branch__: { get_param: dcae_branch }
1702 __cloud_env__: { get_param: cloud_env }
1703 __public_net_id__: { get_param: public_net_id }
1704 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1705 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1706 __external_dns__: { get_param: external_dns }
1707 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1708 __centos_7_image__: { get_param: centos_7_image }
1709 __security_group__ : { get_param: security_group }
1710 __flavor_medium__: { get_param: flavor_medium }
1711 __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1712 __rand_str__: { get_resource: random-str }
1713 __mr_ip_addr__: { get_param: mr_ip_addr }
1714 #__mr_float_ip__: { get_attr: [mr_floating_ip, floating_ip_address] }
1715 __policy_ip_addr__: { get_param: policy_ip_addr }
1716 #__policy_float_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1717 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1718 #__sdc_float_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1723 # Create configuration files
1724 mkdir -p /opt/config
1725 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1726 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1727 echo "__nexus_username__" > /opt/config/nexus_username.txt
1728 echo "__nexus_password__" > /opt/config/nexus_password.txt
1729 echo "__docker_version__" > /opt/config/docker_version.txt
1730 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1731 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1732 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1733 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1734 echo "__tenant_id__" > /opt/config/tenant_id.txt
1735 echo "__tenant_id__" > /opt/config/tenant_name.txt
1736 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1737 echo "__openstack_user__" > /opt/config/openstack_user.txt
1738 echo "__openstack_password__" > /opt/config/openstack_password.txt
1739 echo "__key_name__" > /opt/config/key_name.txt
1740 echo "__pub_key__" > /opt/config/pub_key.txt
1741 echo "__private_key__" > /opt/config/priv_key
1742 echo "__openstack_region__" > /opt/config/openstack_region.txt
1743 echo "__keystone_url__" > /opt/config/keystone_url.txt
1744 echo "__cloud_env__" > /opt/config/cloud_env.txt
1745 echo "__public_net_id__" > /opt/config/public_net_id.txt
1746 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1747 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1748 echo "__external_dns__" > /opt/config/external_dns.txt
1749 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1750 echo "__centos_7_image__" > /opt/config/centos_7_image.txt
1751 echo "__security_group__" > /opt/config/security_group.txt
1752 echo "__flavor_medium__" > /opt/config/flavor_id.txt
1753 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1754 echo "__mac_addr__" > /opt/config/mac_addr.txt
1755 echo "__rand_str__" > /opt/config/rand_str.txt
1756 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1757 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
1758 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
1759 #echo "__mr_floating_ip_addr__" > /opt/config/mr_floating_ip_addr.txt
1760 #echo "__policy_floating_ip_addr__" > /opt/config/policy_floating_ip_addr.txt
1761 #echo "__sdc_floating_ip_addr__" > /opt/config/sdc_floating_ip_addr.txt
1764 # Download and run install script
1765 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1767 chmod +x dcae2_install.sh