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 ################################
373 type: OS::Heat::RandomString
378 # Public key used to access ONAP components
380 type: OS::Nova::KeyPair
386 base: { get_param: key_name }
387 rand: { get_resource: random-str }
388 public_key: { get_param: pub_key }
389 save_private_key: false
391 # Public key used to access DCAE GEN 2
393 type: OS::Nova::KeyPair
399 base: { get_param: dcae_key_name }
400 rand: { get_resource: random-str }
401 public_key: { get_param: dcae_pub_key }
402 save_private_key: true
404 # ONAP management private network
406 type: OS::Neutron::Net
410 template: oam_onap_rand
412 rand: { get_resource: random-str }
415 type: OS::Neutron::Subnet
419 template: oam_onap_rand
421 rand: { get_resource: random-str }
422 network_id: { get_resource: oam_onap }
423 cidr: { get_param: oam_network_cidr }
424 dns_nameservers: { get_param: dns_list }
427 type: OS::Neutron::Router
429 external_gateway_info:
430 network: { get_param: public_net_id }
433 type: OS::Neutron::RouterInterface
435 router_id: { get_resource: router }
436 subnet_id: { get_resource: oam_onap_subnet }
439 # DNS Server instantiation
441 type: OS::Neutron::Port
443 network: { get_resource: oam_onap }
444 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
447 type: OS::Neutron::FloatingIP
449 floating_network_id: { get_param: public_net_id }
450 port_id: { get_resource: dns_private_port }
453 type: OS::Nova::Server
455 image: { get_param: ubuntu_1404_image }
456 flavor: { get_param: flavor_small }
459 template: base-dns-server
461 base: { get_param: vm_base_name }
462 key_name: { get_resource: vm_key }
464 - port: { get_resource: dns_private_port }
465 user_data_format: RAW
469 __nexus_repo__: { get_param: nexus_repo }
470 __artifacts_version__: { get_param: artifacts_version }
471 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
472 __dns_ip_addr__: { get_param: dns_ip_addr }
473 __aai1_ip_addr__: { get_param: aai1_ip_addr }
474 __aai2_ip_addr__: { get_param: aai2_ip_addr }
475 __appc_ip_addr__: { get_param: appc_ip_addr }
476 __dcae_ip_addr__: { get_param: dcae_ip_addr }
477 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
478 __so_ip_addr__: { get_param: so_ip_addr }
479 __mr_ip_addr__: { get_param: mr_ip_addr }
480 __policy_ip_addr__: { get_param: policy_ip_addr }
481 __portal_ip_addr__: { get_param: portal_ip_addr }
482 __robot_ip_addr__: { get_param: robot_ip_addr }
483 __sdc_ip_addr__: { get_param: sdc_ip_addr }
484 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
485 __vid_ip_addr__: { get_param: vid_ip_addr }
486 __clamp_ip_addr__: { get_param: clamp_ip_addr }
487 __openo_ip_addr__: { get_param: openo_ip_addr }
488 __cloud_env__: { get_param: cloud_env }
489 __external_dns__: { get_param: external_dns }
493 # Create configuration files
495 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
496 echo "__cloud_env__" > /opt/config/cloud_env.txt
497 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
498 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
499 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
500 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
501 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
502 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
503 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
504 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
505 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
506 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
507 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
508 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
509 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
510 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
511 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
512 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
513 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
514 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
515 echo "__external_dns__" > /opt/config/external_dns.txt
517 # Download and run install script
518 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
520 chmod +x dns_install.sh
524 # A&AI instantiation (2 VMs)
526 type: OS::Neutron::Port
528 network: { get_resource: oam_onap }
529 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
532 type: OS::Neutron::FloatingIP
534 floating_network_id: { get_param: public_net_id }
535 port_id: { get_resource: aai1_private_port }
538 type: OS::Nova::Server
541 image: { get_param: ubuntu_1404_image }
542 flavor: { get_param: flavor_xlarge }
545 template: base-aai-inst1
547 base: { get_param: vm_base_name }
548 key_name: { get_resource: vm_key }
550 - port: { get_resource: aai1_private_port }
551 user_data_format: RAW
555 __nexus_repo__: { get_param: nexus_repo }
556 __nexus_docker_repo__: { get_param: nexus_docker_repo }
557 __nexus_username__: { get_param: nexus_username }
558 __nexus_password__: { get_param: nexus_password }
559 __dmaap_topic__: { get_param: dmaap_topic }
560 __artifacts_version__: { get_param: artifacts_version }
561 __dns_ip_addr__: { get_param: dns_ip_addr }
562 __docker_version__: { get_param: aai_docker }
563 __gerrit_branch__: { get_param: aai_branch }
564 __cloud_env__: { get_param: cloud_env }
565 __external_dns__: { get_param: external_dns }
566 __aai_repo__: { get_param: aai_repo }
570 # Create configuration files
572 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
573 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
574 echo "__nexus_username__" > /opt/config/nexus_username.txt
575 echo "__nexus_password__" > /opt/config/nexus_password.txt
576 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
577 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
578 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
579 echo "__docker_version__" > /opt/config/docker_version.txt
580 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
581 echo "aai_instance_1" > /opt/config/aai_instance.txt
582 echo "__cloud_env__" > /opt/config/cloud_env.txt
583 echo "__external_dns__" > /opt/config/external_dns.txt
584 echo "__aai_repo__" > /opt/config/remote_repo.txt
586 # Download and run install script
587 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
589 chmod +x aai_install.sh
594 type: OS::Neutron::Port
596 network: { get_resource: oam_onap }
597 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
600 type: OS::Neutron::FloatingIP
602 floating_network_id: { get_param: public_net_id }
603 port_id: { get_resource: aai2_private_port }
606 type: OS::Nova::Server
608 image: { get_param: ubuntu_1404_image }
609 flavor: { get_param: flavor_xlarge }
612 template: base-aai-inst2
614 base: { get_param: vm_base_name }
615 key_name: { get_resource: vm_key }
617 - port: { get_resource: aai2_private_port }
618 user_data_format: RAW
622 __nexus_repo__: { get_param: nexus_repo }
623 __nexus_docker_repo__: { get_param: nexus_docker_repo }
624 __nexus_username__: { get_param: nexus_username }
625 __nexus_password__: { get_param: nexus_password }
626 __dmaap_topic__: { get_param: dmaap_topic }
627 __artifacts_version__: { get_param: artifacts_version }
628 __dns_ip_addr__: { get_param: dns_ip_addr }
629 __docker_version__: { get_param: aai_docker }
630 __gerrit_branch__: { get_param: aai_branch }
631 __cloud_env__: { get_param: cloud_env }
632 __external_dns__: { get_param: external_dns }
633 __aai_repo__: { get_param: aai_repo }
637 # Create configuration files
639 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
640 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
641 echo "__nexus_username__" > /opt/config/nexus_username.txt
642 echo "__nexus_password__" > /opt/config/nexus_password.txt
643 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
644 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
645 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
646 echo "__docker_version__" > /opt/config/docker_version.txt
647 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
648 echo "aai_instance_2" > /opt/config/aai_instance.txt
649 echo "__cloud_env__" > /opt/config/cloud_env.txt
650 echo "__external_dns__" > /opt/config/external_dns.txt
651 echo "__aai_repo__" > /opt/config/remote_repo.txt
653 # Download and run install script
654 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
656 chmod +x aai_install.sh
662 type: OS::Neutron::Port
664 network: { get_resource: oam_onap }
665 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
668 type: OS::Neutron::FloatingIP
670 floating_network_id: { get_param: public_net_id }
671 port_id: { get_resource: so_private_port }
674 type: OS::Nova::Server
676 image: { get_param: ubuntu_1604_image }
677 flavor: { get_param: flavor_large }
682 base: { get_param: vm_base_name }
683 key_name: { get_resource: vm_key }
685 - port: { get_resource: so_private_port }
686 user_data_format: RAW
690 __nexus_repo__: { get_param: nexus_repo }
691 __nexus_docker_repo__: { get_param: nexus_docker_repo }
692 __nexus_username__: { get_param: nexus_username }
693 __nexus_password__: { get_param: nexus_password }
694 __openstack_username__: { get_param: openstack_username }
695 __openstack_tenant_id__: { get_param: openstack_tenant_id }
696 __openstack_api_key__: { get_param: openstack_api_key }
697 __openstack_region__: { get_param: openstack_region }
698 __keystone_url__: { get_param: keystone_url }
699 __dmaap_topic__: { get_param: dmaap_topic }
700 __artifacts_version__: { get_param: artifacts_version }
701 __dns_ip_addr__: { get_param: dns_ip_addr }
702 __docker_version__: { get_param: so_docker }
703 __gerrit_branch__: { get_param: so_branch }
704 __cloud_env__: { get_param: cloud_env }
705 __external_dns__: { get_param: external_dns }
706 __so_repo__: { get_param: so_repo }
710 # Create configuration files
712 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
713 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
714 echo "__nexus_username__" > /opt/config/nexus_username.txt
715 echo "__nexus_password__" > /opt/config/nexus_password.txt
716 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
717 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
718 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
719 echo "__openstack_username__" > /opt/config/openstack_username.txt
720 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
721 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
722 echo "__openstack_region__" > /opt/config/openstack_region.txt
723 echo "__keystone_url__" > /opt/config/keystone.txt
724 echo "__docker_version__" > /opt/config/docker_version.txt
725 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
726 echo "__cloud_env__" > /opt/config/cloud_env.txt
727 echo "__external_dns__" > /opt/config/external_dns.txt
728 echo "__so_repo__" > /opt/config/remote_repo.txt
730 # Download and run install script
731 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
733 chmod +x so_install.sh
737 # Message Router instantiation
738 mrouter_private_port:
739 type: OS::Neutron::Port
741 network: { get_resource: oam_onap }
742 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
745 type: OS::Neutron::FloatingIP
747 floating_network_id: { get_param: public_net_id }
748 port_id: { get_resource: mrouter_private_port }
751 type: OS::Nova::Server
753 image: { get_param: ubuntu_1404_image }
754 flavor: { get_param: flavor_large }
757 template: base-message-router
759 base: { get_param: vm_base_name }
760 key_name: { get_resource: vm_key }
762 - port: { get_resource: mrouter_private_port }
763 user_data_format: RAW
767 __nexus_repo__: { get_param: nexus_repo }
768 __nexus_docker_repo__: { get_param: nexus_docker_repo }
769 __nexus_username__: { get_param: nexus_username }
770 __nexus_password__: { get_param: nexus_password }
771 __artifacts_version__: { get_param: artifacts_version }
772 __dns_ip_addr__: { get_param: dns_ip_addr }
773 __gerrit_branch__: { get_param: mr_branch }
774 __cloud_env__: { get_param: cloud_env }
775 __external_dns__: { get_param: external_dns }
776 __mr_repo__: { get_param: mr_repo }
780 # Create configuration files
782 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
783 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
784 echo "__nexus_username__" > /opt/config/nexus_username.txt
785 echo "__nexus_password__" > /opt/config/nexus_password.txt
786 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
787 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
788 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
789 echo "__cloud_env__" > /opt/config/cloud_env.txt
790 echo "__external_dns__" > /opt/config/external_dns.txt
791 echo "__mr_repo__" > /opt/config/remote_repo.txt
793 # Download and run install script
794 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
796 chmod +x mr_install.sh
800 # Robot Framework instantiation
802 type: OS::Neutron::Port
804 network: { get_resource: oam_onap }
805 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
808 type: OS::Neutron::FloatingIP
810 floating_network_id: { get_param: public_net_id }
811 port_id: { get_resource: robot_private_port }
814 type: OS::Nova::Server
816 image: { get_param: ubuntu_1604_image }
817 flavor: { get_param: flavor_medium }
822 base: { get_param: vm_base_name }
823 key_name: { get_resource: vm_key }
825 - port: { get_resource: robot_private_port }
826 user_data_format: RAW
830 __nexus_repo__: { get_param: nexus_repo }
831 __nexus_docker_repo__: { get_param: nexus_docker_repo }
832 __nexus_username__: { get_param: nexus_username }
833 __nexus_password__: { get_param: nexus_password }
834 __network_name__: { get_attr: [oam_onap, name] }
835 __openstack_username__: { get_param: openstack_username }
836 __openstack_api_key__: { get_param : openstack_api_key }
837 __openstack_tenant_id__: { get_param: openstack_tenant_id }
838 __artifacts_version__: { get_param: artifacts_version }
839 __openstack_region__: { get_param: openstack_region }
840 __dns_ip_addr__: { get_param: dns_ip_addr }
841 __docker_version__: { get_param: mr_docker }
842 __gerrit_branch__: { get_param: mr_branch }
843 __cloud_env__: { get_param: cloud_env }
844 __keystone_url__: { get_param: keystone_url }
845 __aai1_ip_addr__: { get_param: aai1_ip_addr }
846 __aai2_ip_addr__: { get_param: aai2_ip_addr }
847 __appc_ip_addr__: { get_param: appc_ip_addr }
848 __dcae_ip_addr__: { get_param: dcae_ip_addr }
849 __so_ip_addr__: { get_param: so_ip_addr }
850 __mr_ip_addr__: { get_param: mr_ip_addr }
851 __policy_ip_addr__: { get_param: policy_ip_addr }
852 __portal_ip_addr__: { get_param: portal_ip_addr }
853 __sdc_ip_addr__: { get_param: sdc_ip_addr }
854 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
855 __vid_ip_addr__: { get_param: vid_ip_addr }
856 __clamp_ip_addr__: { get_param: clamp_ip_addr }
857 __openo_ip_addr__: { get_param: openo_ip_addr }
858 __external_dns__: { get_param: external_dns }
859 __vm_image_name__: { get_param: ubuntu_1404_image }
860 __vm_flavor__: { get_param: flavor_medium }
861 __robot_repo__: { get_param: robot_repo }
865 # Create configuration files
867 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
868 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
869 echo "__nexus_username__" > /opt/config/nexus_username.txt
870 echo "__nexus_password__" > /opt/config/nexus_password.txt
871 echo "__network_name__" > /opt/config/network.txt
872 echo "__openstack_username__" > /opt/config/openstack_username.txt
873 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
874 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
875 echo "__openstack_region__" > /opt/config/region.txt
876 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
877 echo "__docker_version__" > /opt/config/docker_version.txt
878 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
879 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
880 echo "__keystone_url__" > /opt/config/keystone.txt
881 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
882 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
883 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
884 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
885 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
886 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
887 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
888 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
889 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
890 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
891 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
892 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
893 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
894 echo "__cloud_env__" > /opt/config/cloud_env.txt
895 echo "__external_dns__" > /opt/config/external_dns.txt
896 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
897 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
898 echo "__robot_repo__" > /opt/config/remote_repo.txt
900 # Download and run install script
901 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
903 chmod +x robot_install.sh
909 type: OS::Neutron::Port
911 network: { get_resource: oam_onap }
912 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
915 type: OS::Neutron::FloatingIP
917 floating_network_id: { get_param: public_net_id }
918 port_id: { get_resource: vid_private_port }
921 type: OS::Nova::Server
923 image: { get_param: ubuntu_1404_image }
924 flavor: { get_param: flavor_medium }
929 base: { get_param: vm_base_name }
930 key_name: { get_resource: vm_key }
932 - port: { get_resource: vid_private_port }
933 user_data_format: RAW
937 __nexus_repo__: { get_param: nexus_repo }
938 __nexus_docker_repo__: { get_param: nexus_docker_repo }
939 __nexus_username__: { get_param: nexus_username }
940 __nexus_password__: { get_param: nexus_password }
941 __artifacts_version__: { get_param: artifacts_version }
942 __dns_ip_addr__: { get_param: dns_ip_addr }
943 __docker_version__: { get_param: vid_docker }
944 __gerrit_branch__: { get_param: vid_branch }
945 __cloud_env__: { get_param: cloud_env }
946 __external_dns__: { get_param: external_dns }
947 __vid_repo__: { get_param: vid_repo }
951 # Create configuration files
953 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
954 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
955 echo "__nexus_username__" > /opt/config/nexus_username.txt
956 echo "__nexus_password__" > /opt/config/nexus_password.txt
957 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
958 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
959 echo "__docker_version__" > /opt/config/docker_version.txt
960 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
961 echo "__cloud_env__" > /opt/config/cloud_env.txt
962 echo "__external_dns__" > /opt/config/external_dns.txt
963 echo "__vid_repo__" > /opt/config/remote_repo.txt
965 # Download and run install script
966 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
968 chmod +x vid_install.sh
972 # SDN-C instantiation
974 type: OS::Neutron::Port
976 network: { get_resource: oam_onap }
977 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
980 type: OS::Neutron::FloatingIP
982 floating_network_id: { get_param: public_net_id }
983 port_id: { get_resource: sdnc_private_port }
986 type: OS::Nova::Server
988 image: { get_param: ubuntu_1404_image }
989 flavor: { get_param: flavor_large }
994 base: { get_param: vm_base_name }
995 key_name: { get_resource: vm_key }
997 - port: { get_resource: sdnc_private_port }
998 user_data_format: RAW
1002 __nexus_repo__: { get_param: nexus_repo }
1003 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1004 __nexus_username__: { get_param: nexus_username }
1005 __nexus_password__: { get_param: nexus_password }
1006 __artifacts_version__: { get_param: artifacts_version }
1007 __dns_ip_addr__: { get_param: dns_ip_addr }
1008 __docker_version__: { get_param: sdnc_docker }
1009 __gerrit_branch__: { get_param: sdnc_branch }
1010 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1011 __cloud_env__: { get_param: cloud_env }
1012 __external_dns__: { get_param: external_dns }
1013 __sdnc_repo__: { get_param: sdnc_repo }
1017 # Create configuration files
1018 mkdir -p /opt/config
1019 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1020 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1021 echo "__nexus_username__" > /opt/config/nexus_username.txt
1022 echo "__nexus_password__" > /opt/config/nexus_password.txt
1023 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1024 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1025 echo "__docker_version__" > /opt/config/docker_version.txt
1026 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1027 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1028 echo "__cloud_env__" > /opt/config/cloud_env.txt
1029 echo "__external_dns__" > /opt/config/external_dns.txt
1030 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1032 # Download and run install script
1033 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1035 chmod +x sdnc_install.sh
1041 type: OS::Neutron::Port
1043 network: { get_resource: oam_onap }
1044 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1047 type: OS::Neutron::FloatingIP
1049 floating_network_id: { get_param: public_net_id }
1050 port_id: { get_resource: sdc_private_port }
1053 type: OS::Cinder::Volume
1059 type: OS::Nova::Server
1061 image: { get_param: ubuntu_1604_image }
1062 flavor: { get_param: flavor_xlarge }
1067 base: { get_param: vm_base_name }
1068 key_name: { get_resource: vm_key }
1070 - port: { get_resource: sdc_private_port }
1071 block_device_mapping:
1072 - device_name: /dev/vdb
1073 volume_id: {get_resource: sdc_volume_data}
1074 user_data_format: RAW
1078 __nexus_repo__: { get_param: nexus_repo }
1079 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1080 __nexus_username__: { get_param: nexus_username }
1081 __nexus_password__: { get_param: nexus_password }
1082 __env_name__: { get_param: dmaap_topic }
1083 __artifacts_version__: { get_param: artifacts_version }
1084 __dns_ip_addr__: { get_param: dns_ip_addr }
1085 __mr_ip_addr__: { get_param: mr_ip_addr }
1086 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1087 __docker_version__: { get_param: sdc_docker }
1088 __gerrit_branch__: { get_param: sdc_branch }
1089 __cloud_env__: { get_param: cloud_env }
1090 __external_dns__: { get_param: external_dns }
1091 __sdc_repo__: { get_param: sdc_repo }
1095 # Create configuration files
1096 mkdir -p /opt/config
1097 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1098 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1099 echo "__nexus_username__" > /opt/config/nexus_username.txt
1100 echo "__nexus_password__" > /opt/config/nexus_password.txt
1101 echo "__env_name__" > /opt/config/env_name.txt
1102 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1103 echo "__public_ip__" > /opt/config/public_ip.txt
1104 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1105 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1106 echo "__docker_version__" > /opt/config/docker_version.txt
1107 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1108 echo "__cloud_env__" > /opt/config/cloud_env.txt
1109 echo "__external_dns__" > /opt/config/external_dns.txt
1110 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1112 # Download and run install script
1113 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1115 chmod +x sdc_install.sh
1119 # PORTAL instantiation
1120 portal_private_port:
1121 type: OS::Neutron::Port
1123 network: { get_resource: oam_onap }
1124 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1127 type: OS::Neutron::FloatingIP
1129 floating_network_id: { get_param: public_net_id }
1130 port_id: { get_resource: portal_private_port }
1133 type: OS::Nova::Server
1135 image: { get_param: ubuntu_1404_image }
1136 flavor: { get_param: flavor_large }
1139 template: base-portal
1141 base: { get_param: vm_base_name }
1142 key_name: { get_resource: vm_key }
1144 - port: { get_resource: portal_private_port }
1145 user_data_format: RAW
1149 __nexus_repo__: { get_param: nexus_repo }
1150 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1151 __nexus_username__: { get_param: nexus_username }
1152 __nexus_password__: { get_param: nexus_password }
1153 __artifacts_version__: { get_param: artifacts_version }
1154 __dns_ip_addr__: { get_param: dns_ip_addr }
1155 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1156 __docker_version__: { get_param: portal_docker }
1157 __gerrit_branch__: { get_param: portal_branch }
1158 __cloud_env__: { get_param: cloud_env }
1159 __external_dns__: { get_param: external_dns }
1160 __portal_repo__: { get_param: portal_repo }
1164 # Create configuration files
1165 mkdir -p /opt/config
1166 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1167 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1168 echo "__nexus_username__" > /opt/config/nexus_username.txt
1169 echo "__nexus_password__" > /opt/config/nexus_password.txt
1170 echo "__public_ip__" > /opt/config/public_ip.txt
1171 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1172 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1173 echo "__docker_version__" > /opt/config/docker_version.txt
1174 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1175 echo "__cloud_env__" > /opt/config/cloud_env.txt
1176 echo "__external_dns__" > /opt/config/external_dns.txt
1177 echo "__portal_repo__" > /opt/config/remote_repo.txt
1179 # Download and run install script
1180 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1182 chmod +x portal_install.sh
1186 # DCAE Controller instantiation
1187 # dcae_c_private_port:
1188 # type: OS::Neutron::Port
1190 # network: { get_resource: oam_onap }
1191 # fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1193 # dcae_c_floating_ip:
1194 # type: OS::Neutron::FloatingIP
1196 # floating_network_id: { get_param: public_net_id }
1197 # port_id: { get_resource: dcae_c_private_port }
1200 # type: OS::Nova::Server
1202 # image: { get_param: ubuntu_1404_image }
1203 # flavor: { get_param: flavor_medium }
1206 # template: base-dcae-controller
1208 # base: { get_param: vm_base_name }
1209 # key_name: { get_resource: vm_key }
1211 # - port: { get_resource: dcae_c_private_port }
1212 # user_data_format: RAW
1216 # __nexus_repo__: { get_param: nexus_repo }
1217 # __nexus_docker_repo__: { get_param: nexus_docker_repo }
1218 # __nexus_username__: { get_param: nexus_username }
1219 # __nexus_password__: { get_param: nexus_password }
1220 # __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1221 # __gitlab_branch__: { get_param: gitlab_branch }
1222 # __dns_ip_addr__: { get_param: dns_ip_addr }
1223 # __dcae_zone__: { get_param: dcae_zone }
1224 # __dcae_state__: { get_param: dcae_state }
1225 # __artifacts_version__: { get_param: artifacts_version }
1226 # __tenant_id__: { get_param: openstack_tenant_id }
1227 # __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1228 # __openstack_user__: { get_param: openstack_username }
1229 # __openstack_password__: { get_param: openstack_api_key }
1230 # __openstack_auth_method__: { get_param: openstack_auth_method }
1231 # __key_name__: { get_param: key_name }
1232 # __rand_str__: { get_resource: random-str }
1233 # __pub_key__: { get_param: pub_key }
1234 # __nexus_repo_root__: { get_param: nexus_repo_root }
1235 # __openstack_region__: { get_param: openstack_region }
1236 # __horizon_url__: { get_param: horizon_url }
1237 # __keystone_url__: { get_param: keystone_url }
1238 # __docker_version__: { get_param: dcae_docker }
1239 # __gerrit_branch__: { get_param: dcae_branch }
1240 # __dcae_code_version__: { get_param: dcae_code_version }
1241 # __cloud_env__: { get_param: cloud_env }
1242 # __public_net_id__: { get_param: public_net_id }
1243 # __dcae_base_environment__: { get_param: dcae_base_environment }
1244 # __dcae_ip_addr__: { get_param: dcae_ip_addr }
1245 # __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1246 # __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1247 # __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1248 # __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1249 # __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1250 # __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1251 # __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1252 # __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1253 # __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1254 # __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1255 # __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1256 # __external_dns__: { get_param: external_dns }
1257 # __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1258 # __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1259 # __flavor_small__: { get_param: flavor_small }
1260 # __flavor_medium__: { get_param: flavor_medium }
1261 # __flavor_large__: { get_param: flavor_large }
1262 # __flavor_xlarge__: { get_param: flavor_xlarge }
1263 # __dcae_repo__: { get_param: dcae_repo }
1264 # __mr_repo__: { get_param: mr_repo }
1268 # Create configuration files
1269 # mkdir -p /opt/config
1270 # echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1271 # echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1272 # echo "__nexus_username__" > /opt/config/nexus_username.txt
1273 # echo "__nexus_password__" > /opt/config/nexus_password.txt
1274 # echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1275 # echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1276 # echo "__docker_version__" > /opt/config/docker_version.txt
1277 # echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1278 # echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1279 # echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1280 # echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1281 # echo "__dcae_state__" > /opt/config/dcae_state.txt
1282 # echo "__tenant_id__" > /opt/config/tenant_id.txt
1283 # echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1284 # echo "__openstack_user__" > /opt/config/openstack_user.txt
1285 # echo "__openstack_password__" > /opt/config/openstack_password.txt
1286 # echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1287 # echo "__key_name__" > /opt/config/key_name.txt
1288 # echo "__rand_str__" > /opt/config/rand_str.txt
1289 # echo "__pub_key__" > /opt/config/pub_key.txt
1290 # echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1291 # echo "__openstack_region__" > /opt/config/openstack_region.txt
1292 # echo "__horizon_url__" > /opt/config/horizon_url.txt
1293 # echo "__keystone_url__" > /opt/config/keystone_url.txt
1294 # echo "__cloud_env__" > /opt/config/cloud_env.txt
1295 # echo "__public_net_id__" > /opt/config/public_net_id.txt
1296 # echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1297 # echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1298 # echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1299 # echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1300 # echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1301 # echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1302 # echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1303 # echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1304 # echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1305 # echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1306 # echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1307 # echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1308 # echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1309 # echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1310 # echo "__external_dns__" > /opt/config/external_dns.txt
1311 # echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1312 # echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1313 # echo "__flavor_small__" > /opt/config/flavor_small.txt
1314 # echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1315 # echo "__flavor_large__" > /opt/config/flavor_large.txt
1316 # echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1317 # echo "__dcae_repo__" > /opt/config/remote_repo.txt
1318 # echo "__mr_repo__" > /opt/config/mr_repo.txt
1320 # Download and run install script
1321 # curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1323 # chmod +x dcae_install.sh
1327 # Policy Engine instantiation
1328 policy_private_port:
1329 type: OS::Neutron::Port
1331 network: { get_resource: oam_onap }
1332 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1335 type: OS::Neutron::FloatingIP
1337 floating_network_id: { get_param: public_net_id }
1338 port_id: { get_resource: policy_private_port }
1341 type: OS::Nova::Server
1343 image: { get_param: ubuntu_1404_image }
1344 flavor: { get_param: flavor_xlarge }
1347 template: base-policy
1349 base: { get_param: vm_base_name }
1350 key_name: { get_resource: vm_key }
1352 - port: { get_resource: policy_private_port }
1353 user_data_format: RAW
1357 __nexus_repo__: { get_param: nexus_repo }
1358 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1359 __nexus_username__: { get_param: nexus_username }
1360 __nexus_password__: { get_param: nexus_password }
1361 __artifacts_version__: { get_param: artifacts_version }
1362 __dns_ip_addr__: { get_param: dns_ip_addr }
1363 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1364 __docker_version__: { get_param: policy_docker }
1365 __gerrit_branch__: { get_param: policy_branch }
1366 __cloud_env__: { get_param: cloud_env }
1367 __external_dns__: { get_param: external_dns }
1368 __policy_repo__: { get_param: policy_repo }
1372 # Create configuration files
1373 mkdir -p /opt/config
1374 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1375 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1376 echo "__nexus_username__" > /opt/config/nexus_username.txt
1377 echo "__nexus_password__" > /opt/config/nexus_password.txt
1378 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1379 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1380 echo "__public_ip__" > /opt/config/public_ip.txt
1381 echo "__docker_version__" > /opt/config/docker_version.txt
1382 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1383 echo "__cloud_env__" > /opt/config/cloud_env.txt
1384 echo "__external_dns__" > /opt/config/external_dns.txt
1385 echo "__policy_repo__" > /opt/config/remote_repo.txt
1387 # Download and run install script
1388 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1390 chmod +x policy_install.sh
1394 # APP-C instantiation
1396 type: OS::Neutron::Port
1398 network: { get_resource: oam_onap }
1399 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1402 type: OS::Neutron::FloatingIP
1404 floating_network_id: { get_param: public_net_id }
1405 port_id: { get_resource: appc_private_port }
1408 type: OS::Nova::Server
1410 image: { get_param: ubuntu_1404_image }
1411 flavor: { get_param: flavor_large }
1416 base: { get_param: vm_base_name }
1417 key_name: { get_resource: vm_key }
1419 - port: { get_resource: appc_private_port }
1420 user_data_format: RAW
1424 __nexus_repo__: { get_param: nexus_repo }
1425 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1426 __nexus_username__: { get_param: nexus_username }
1427 __nexus_password__: { get_param: nexus_password }
1428 __dmaap_topic__: { get_param: dmaap_topic }
1429 __artifacts_version__: { get_param: artifacts_version }
1430 __dns_ip_addr__: { get_param: dns_ip_addr }
1431 __docker_version__: { get_param: appc_docker }
1432 __gerrit_branch__: { get_param: appc_branch }
1433 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1434 __cloud_env__: { get_param: cloud_env }
1435 __external_dns__: { get_param: external_dns }
1436 __appc_repo__: { get_param: appc_repo }
1440 # Create configuration files
1441 mkdir -p /opt/config
1442 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1443 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1444 echo "__nexus_username__" > /opt/config/nexus_username.txt
1445 echo "__nexus_password__" > /opt/config/nexus_password.txt
1446 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1447 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1448 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1449 echo "__docker_version__" > /opt/config/docker_version.txt
1450 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1451 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1452 echo "__cloud_env__" > /opt/config/cloud_env.txt
1453 echo "__external_dns__" > /opt/config/external_dns.txt
1454 echo "__appc_repo__" > /opt/config/remote_repo.txt
1456 # Download and run install script
1457 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1459 chmod +x appc_install.sh
1463 # CLAMP instantiation
1465 type: OS::Neutron::Port
1467 network: { get_resource: oam_onap }
1468 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1471 type: OS::Neutron::FloatingIP
1473 floating_network_id: { get_param: public_net_id }
1474 port_id: { get_resource: clamp_private_port }
1477 type: OS::Nova::Server
1479 image: { get_param: ubuntu_1604_image }
1480 flavor: { get_param: flavor_medium }
1483 template: base-clamp
1485 base: { get_param: vm_base_name }
1486 key_name: { get_resource: vm_key }
1488 - port: { get_resource: clamp_private_port }
1489 user_data_format: RAW
1493 __nexus_repo__: { get_param: nexus_repo }
1494 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1495 __nexus_username__: { get_param: nexus_username }
1496 __nexus_password__: { get_param: nexus_password }
1497 __openstack_username__: { get_param: openstack_username }
1498 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1499 __openstack_api_key__: { get_param: openstack_api_key }
1500 __openstack_region__: { get_param: openstack_region }
1501 __keystone_url__: { get_param: keystone_url }
1502 __dmaap_topic__: { get_param: dmaap_topic }
1503 __artifacts_version__: { get_param: artifacts_version }
1504 __dns_ip_addr__: { get_param: dns_ip_addr }
1505 __docker_version__: { get_param: clamp_docker }
1506 __gerrit_branch__: { get_param: clamp_branch }
1507 __cloud_env__: { get_param: cloud_env }
1508 __external_dns__: { get_param: external_dns }
1509 __clamp_repo__: { get_param: clamp_repo }
1513 # Create configuration files
1514 mkdir -p /opt/config
1515 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1516 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1517 echo "__nexus_username__" > /opt/config/nexus_username.txt
1518 echo "__nexus_password__" > /opt/config/nexus_password.txt
1519 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1520 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1521 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1522 echo "__openstack_username__" > /opt/config/openstack_username.txt
1523 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1524 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1525 echo "__openstack_region__" > /opt/config/openstack_region.txt
1526 echo "__keystone_url__" > /opt/config/keystone.txt
1527 echo "__docker_version__" > /opt/config/docker_version.txt
1528 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1529 echo "__cloud_env__" > /opt/config/cloud_env.txt
1530 echo "__external_dns__" > /opt/config/external_dns.txt
1531 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1533 # Download and run install script
1534 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1536 chmod +x clamp_install.sh
1540 # OPEN-O VM instantiation
1542 type: OS::Neutron::Port
1544 network: { get_resource: oam_onap }
1545 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1548 type: OS::Neutron::FloatingIP
1550 floating_network_id: { get_param: public_net_id }
1551 port_id: { get_resource: openo_private_port }
1554 type: OS::Nova::Server
1556 image: { get_param: ubuntu_1604_image }
1557 flavor: { get_param: flavor_xxlarge }
1560 template: base-openo-server
1562 base: { get_param: vm_base_name }
1563 key_name: { get_resource: vm_key }
1565 - port: { get_resource: openo_private_port }
1566 user_data_format: RAW
1570 __nexus_repo__: { get_param: nexus_repo }
1571 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1572 __nexus_username__: { get_param: nexus_username }
1573 __nexus_password__: { get_param: nexus_password }
1574 __artifacts_version__: { get_param: artifacts_version }
1575 __dns_ip_addr__: { get_param: dns_ip_addr }
1576 __oam_network_cidr__: { get_param: oam_network_cidr }
1577 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1578 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1579 __appc_ip_addr__: { get_param: appc_ip_addr }
1580 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1581 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1582 __so_ip_addr__: { get_param: so_ip_addr }
1583 __mr_ip_addr__: { get_param: mr_ip_addr }
1584 __policy_ip_addr__: { get_param: policy_ip_addr }
1585 __portal_ip_addr__: { get_param: portal_ip_addr }
1586 __robot_ip_addr__: { get_param: robot_ip_addr }
1587 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1588 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1589 __vid_ip_addr__: { get_param: vid_ip_addr }
1590 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1591 __openo_ip_addr__: { get_param: openo_ip_addr }
1592 __cloud_env__: { get_param: cloud_env }
1593 __external_dns__: { get_param: external_dns }
1594 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1595 __msb_docker__: { get_param: msb_docker }
1596 __mvim_docker__: { get_param: mvim_docker }
1597 __vfc_docker__: { get_param: vfc_docker }
1598 __uui_docker__: { get_param: uui_docker }
1599 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1603 # Create configuration files
1604 mkdir -p /opt/config
1605 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1606 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1607 echo "__nexus_username__" > /opt/config/nexus_username.txt
1608 echo "__nexus_password__" > /opt/config/nexus_password.txt
1609 echo "__cloud_env__" > /opt/config/cloud_env.txt
1610 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1611 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1612 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1613 echo "__external_dns__" > /opt/config/external_dns.txt
1614 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1615 echo "__msb_docker__" > /opt/config/msb_docker.txt
1616 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1617 echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1618 echo "__uui_docker__" > /opt/config/uui_docker.txt
1619 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1621 # Create env file with the IP address of all ONAP components
1622 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1623 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1624 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1625 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1626 echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1627 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1628 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1629 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1630 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1631 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1632 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1633 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1634 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1635 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1636 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1638 # Download and run install script
1639 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1641 chmod +x openo_install.sh
1645 # DCAE GEN 2 Controller instantiation
1646 dcae_c_private_port:
1647 type: OS::Neutron::Port
1649 network: { get_resource: oam_onap }
1650 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1653 type: OS::Neutron::FloatingIP
1655 floating_network_id: { get_param: public_net_id }
1656 port_id: { get_resource: dcae_c_private_port }
1659 type: OS::Nova::Server
1661 image: { get_param: ubuntu_1604_image }
1662 flavor: { get_param: flavor_medium }
1665 template: base-dcae-controller
1667 base: { get_param: vm_base_name }
1668 key_name: { get_resource: dcae_vm_key }
1670 - port: { get_resource: dcae_c_private_port }
1671 user_data_format: RAW
1675 __nexus_repo__: { get_param: nexus_repo }
1676 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1677 __nexus_username__: { get_param: nexus_username }
1678 __nexus_password__: { get_param: nexus_password }
1679 __dns_ip_addr__: { get_param: dns_ip_addr }
1680 __dcae_zone__: { get_param: dcae_zone }
1681 __artifacts_version__: { get_param: artifacts_version }
1682 __tenant_id__: { get_param: openstack_tenant_id }
1683 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1684 __openstack_user__: { get_param: openstack_username }
1685 __openstack_password__: { get_param: openstack_api_key }
1686 __key_name__: { get_param: dcae_key_name }
1687 __pub_key__: { get_param: dcae_pub_key }
1688 __private_key__: { get_attr: [ dcae_vm_key, private_key ] }
1689 __openstack_region__: { get_param: openstack_region }
1690 __keystone_url__: { get_param: keystone_url }
1691 __docker_version__: { get_param: dcae_docker }
1692 __dcae_repo__: { get_param: dcae_repo }
1693 __gerrit_branch__: { get_param: dcae_branch }
1694 __cloud_env__: { get_param: cloud_env }
1695 __public_net_id__: { get_param: public_net_id }
1696 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1697 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1698 __external_dns__: { get_param: external_dns }
1699 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1700 __centos_7_image__: { get_param: centos_7_image }
1701 __security_group__ : { get_param: security_group }
1702 __flavor_medium__: { get_param: flavor_medium }
1703 __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1704 __rand_str__: { get_resource: random-str }
1709 # Create configuration files
1710 mkdir -p /opt/config
1711 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1712 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1713 echo "__nexus_username__" > /opt/config/nexus_username.txt
1714 echo "__nexus_password__" > /opt/config/nexus_password.txt
1715 echo "__docker_version__" > /opt/config/docker_version.txt
1716 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1717 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1718 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1719 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1720 echo "__tenant_id__" > /opt/config/tenant_id.txt
1721 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1722 echo "__openstack_user__" > /opt/config/openstack_user.txt
1723 echo "__openstack_password__" > /opt/config/openstack_password.txt
1724 echo "__key_name__" > /opt/config/key_name.txt
1725 echo "__pub_key__" > /opt/config/pub_key.txt
1726 echo "__private_key__" > /opt/config/priv_key
1727 echo "__openstack_region__" > /opt/config/openstack_region.txt
1728 echo "__keystone_url__" > /opt/config/keystone_url.txt
1729 echo "__cloud_env__" > /opt/config/cloud_env.txt
1730 echo "__public_net_id__" > /opt/config/public_net_id.txt
1731 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1732 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1733 echo "__external_dns__" > /opt/config/external_dns.txt
1734 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1735 echo "__centos_7_image__" > /opt/config/centos_7_image.txt
1736 echo "__security_group__" > /opt/config/security_group.txt
1737 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1738 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1739 echo "__mac_addr__" > /opt/config/mac_addr.txt
1740 echo "__rand_str__" > /opt/config/rand_str.txt
1742 # Download and run install script
1743 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1745 chmod +x dcae2_install.sh