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 ################################
375 type: OS::Heat::RandomString
380 # Public key used to access ONAP components
382 type: OS::Nova::KeyPair
388 base: { get_param: key_name }
389 rand: { get_resource: random-str }
390 public_key: { get_param: pub_key }
391 save_private_key: false
393 # Public key used to access DCAE GEN 2
395 type: OS::Nova::KeyPair
401 base: { get_param: dcae_key_name }
402 rand: { get_resource: random-str }
403 public_key: { get_param: dcae_pub_key }
404 save_private_key: true
406 # ONAP management private network
408 type: OS::Neutron::Net
412 template: oam_onap_rand
414 rand: { get_resource: random-str }
417 type: OS::Neutron::Subnet
421 template: oam_onap_rand
423 rand: { get_resource: random-str }
424 network_id: { get_resource: oam_onap }
425 cidr: { get_param: oam_network_cidr }
426 dns_nameservers: { get_param: dns_list }
429 type: OS::Neutron::Router
431 external_gateway_info:
432 network: { get_param: public_net_id }
435 type: OS::Neutron::RouterInterface
437 router_id: { get_resource: router }
438 subnet_id: { get_resource: oam_onap_subnet }
441 # DNS Server instantiation
443 type: OS::Neutron::Port
445 network: { get_resource: oam_onap }
446 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
449 type: OS::Neutron::FloatingIP
451 floating_network_id: { get_param: public_net_id }
452 port_id: { get_resource: dns_private_port }
455 type: OS::Nova::Server
457 image: { get_param: ubuntu_1404_image }
458 flavor: { get_param: flavor_small }
461 template: base-dns-server
463 base: { get_param: vm_base_name }
464 key_name: { get_resource: vm_key }
466 - port: { get_resource: dns_private_port }
467 user_data_format: RAW
471 __nexus_repo__: { get_param: nexus_repo }
472 __artifacts_version__: { get_param: artifacts_version }
473 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
474 __dns_ip_addr__: { get_param: dns_ip_addr }
475 __aai1_ip_addr__: { get_param: aai1_ip_addr }
476 __aai2_ip_addr__: { get_param: aai2_ip_addr }
477 __appc_ip_addr__: { get_param: appc_ip_addr }
478 __dcae_ip_addr__: { get_param: dcae_ip_addr }
479 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
480 __so_ip_addr__: { get_param: so_ip_addr }
481 __mr_ip_addr__: { get_param: mr_ip_addr }
482 __policy_ip_addr__: { get_param: policy_ip_addr }
483 __portal_ip_addr__: { get_param: portal_ip_addr }
484 __robot_ip_addr__: { get_param: robot_ip_addr }
485 __sdc_ip_addr__: { get_param: sdc_ip_addr }
486 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
487 __vid_ip_addr__: { get_param: vid_ip_addr }
488 __clamp_ip_addr__: { get_param: clamp_ip_addr }
489 __openo_ip_addr__: { get_param: openo_ip_addr }
490 __cloud_env__: { get_param: cloud_env }
491 __external_dns__: { get_param: external_dns }
495 # Create configuration files
497 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
498 echo "__cloud_env__" > /opt/config/cloud_env.txt
499 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
500 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
501 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
502 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
503 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
504 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
505 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
506 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
507 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
508 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
509 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
510 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
511 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
512 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
513 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
514 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
515 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
516 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
517 echo "__external_dns__" > /opt/config/external_dns.txt
519 # Download and run install script
520 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
522 chmod +x dns_install.sh
526 # A&AI instantiation (2 VMs)
528 type: OS::Neutron::Port
530 network: { get_resource: oam_onap }
531 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
534 type: OS::Neutron::FloatingIP
536 floating_network_id: { get_param: public_net_id }
537 port_id: { get_resource: aai1_private_port }
540 type: OS::Nova::Server
543 image: { get_param: ubuntu_1404_image }
544 flavor: { get_param: flavor_xlarge }
547 template: base-aai-inst1
549 base: { get_param: vm_base_name }
550 key_name: { get_resource: vm_key }
552 - port: { get_resource: aai1_private_port }
553 user_data_format: RAW
557 __nexus_repo__: { get_param: nexus_repo }
558 __nexus_docker_repo__: { get_param: nexus_docker_repo }
559 __nexus_username__: { get_param: nexus_username }
560 __nexus_password__: { get_param: nexus_password }
561 __dmaap_topic__: { get_param: dmaap_topic }
562 __artifacts_version__: { get_param: artifacts_version }
563 __dns_ip_addr__: { get_param: dns_ip_addr }
564 __docker_version__: { get_param: aai_docker }
565 __gerrit_branch__: { get_param: aai_branch }
566 __cloud_env__: { get_param: cloud_env }
567 __external_dns__: { get_param: external_dns }
568 __aai_repo__: { get_param: aai_repo }
572 # Create configuration files
574 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
575 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
576 echo "__nexus_username__" > /opt/config/nexus_username.txt
577 echo "__nexus_password__" > /opt/config/nexus_password.txt
578 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
579 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
580 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
581 echo "__docker_version__" > /opt/config/docker_version.txt
582 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
583 echo "aai_instance_1" > /opt/config/aai_instance.txt
584 echo "__cloud_env__" > /opt/config/cloud_env.txt
585 echo "__external_dns__" > /opt/config/external_dns.txt
586 echo "__aai_repo__" > /opt/config/remote_repo.txt
588 # Download and run install script
589 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
591 chmod +x aai_install.sh
596 type: OS::Neutron::Port
598 network: { get_resource: oam_onap }
599 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
602 type: OS::Neutron::FloatingIP
604 floating_network_id: { get_param: public_net_id }
605 port_id: { get_resource: aai2_private_port }
608 type: OS::Nova::Server
610 image: { get_param: ubuntu_1404_image }
611 flavor: { get_param: flavor_xlarge }
614 template: base-aai-inst2
616 base: { get_param: vm_base_name }
617 key_name: { get_resource: vm_key }
619 - port: { get_resource: aai2_private_port }
620 user_data_format: RAW
624 __nexus_repo__: { get_param: nexus_repo }
625 __nexus_docker_repo__: { get_param: nexus_docker_repo }
626 __nexus_username__: { get_param: nexus_username }
627 __nexus_password__: { get_param: nexus_password }
628 __dmaap_topic__: { get_param: dmaap_topic }
629 __artifacts_version__: { get_param: artifacts_version }
630 __dns_ip_addr__: { get_param: dns_ip_addr }
631 __docker_version__: { get_param: aai_docker }
632 __gerrit_branch__: { get_param: aai_branch }
633 __cloud_env__: { get_param: cloud_env }
634 __external_dns__: { get_param: external_dns }
635 __aai_repo__: { get_param: aai_repo }
639 # Create configuration files
641 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
642 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
643 echo "__nexus_username__" > /opt/config/nexus_username.txt
644 echo "__nexus_password__" > /opt/config/nexus_password.txt
645 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
646 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
647 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
648 echo "__docker_version__" > /opt/config/docker_version.txt
649 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
650 echo "aai_instance_2" > /opt/config/aai_instance.txt
651 echo "__cloud_env__" > /opt/config/cloud_env.txt
652 echo "__external_dns__" > /opt/config/external_dns.txt
653 echo "__aai_repo__" > /opt/config/remote_repo.txt
655 # Download and run install script
656 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
658 chmod +x aai_install.sh
664 type: OS::Neutron::Port
666 network: { get_resource: oam_onap }
667 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
670 type: OS::Neutron::FloatingIP
672 floating_network_id: { get_param: public_net_id }
673 port_id: { get_resource: so_private_port }
676 type: OS::Nova::Server
678 image: { get_param: ubuntu_1604_image }
679 flavor: { get_param: flavor_large }
684 base: { get_param: vm_base_name }
685 key_name: { get_resource: vm_key }
687 - port: { get_resource: so_private_port }
688 user_data_format: RAW
692 __nexus_repo__: { get_param: nexus_repo }
693 __nexus_docker_repo__: { get_param: nexus_docker_repo }
694 __nexus_username__: { get_param: nexus_username }
695 __nexus_password__: { get_param: nexus_password }
696 __openstack_username__: { get_param: openstack_username }
697 __openstack_tenant_id__: { get_param: openstack_tenant_id }
698 __openstack_api_key__: { get_param: openstack_api_key }
699 __openstack_region__: { get_param: openstack_region }
700 __keystone_url__: { get_param: keystone_url }
701 __dmaap_topic__: { get_param: dmaap_topic }
702 __artifacts_version__: { get_param: artifacts_version }
703 __dns_ip_addr__: { get_param: dns_ip_addr }
704 __docker_version__: { get_param: so_docker }
705 __gerrit_branch__: { get_param: so_branch }
706 __cloud_env__: { get_param: cloud_env }
707 __external_dns__: { get_param: external_dns }
708 __so_repo__: { get_param: so_repo }
712 # Create configuration files
714 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
715 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
716 echo "__nexus_username__" > /opt/config/nexus_username.txt
717 echo "__nexus_password__" > /opt/config/nexus_password.txt
718 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
719 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
720 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
721 echo "__openstack_username__" > /opt/config/openstack_username.txt
722 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
723 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
724 echo "__openstack_region__" > /opt/config/openstack_region.txt
725 echo "__keystone_url__" > /opt/config/keystone.txt
726 echo "__docker_version__" > /opt/config/docker_version.txt
727 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
728 echo "__cloud_env__" > /opt/config/cloud_env.txt
729 echo "__external_dns__" > /opt/config/external_dns.txt
730 echo "__so_repo__" > /opt/config/remote_repo.txt
732 # Download and run install script
733 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
735 chmod +x so_install.sh
739 # Message Router instantiation
740 mrouter_private_port:
741 type: OS::Neutron::Port
743 network: { get_resource: oam_onap }
744 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
747 type: OS::Neutron::FloatingIP
749 floating_network_id: { get_param: public_net_id }
750 port_id: { get_resource: mrouter_private_port }
753 type: OS::Nova::Server
755 image: { get_param: ubuntu_1404_image }
756 flavor: { get_param: flavor_large }
759 template: base-message-router
761 base: { get_param: vm_base_name }
762 key_name: { get_resource: vm_key }
764 - port: { get_resource: mrouter_private_port }
765 user_data_format: RAW
769 __nexus_repo__: { get_param: nexus_repo }
770 __nexus_docker_repo__: { get_param: nexus_docker_repo }
771 __nexus_username__: { get_param: nexus_username }
772 __nexus_password__: { get_param: nexus_password }
773 __artifacts_version__: { get_param: artifacts_version }
774 __dns_ip_addr__: { get_param: dns_ip_addr }
775 __gerrit_branch__: { get_param: mr_branch }
776 __cloud_env__: { get_param: cloud_env }
777 __external_dns__: { get_param: external_dns }
778 __mr_repo__: { get_param: mr_repo }
782 # Create configuration files
784 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
785 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
786 echo "__nexus_username__" > /opt/config/nexus_username.txt
787 echo "__nexus_password__" > /opt/config/nexus_password.txt
788 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
789 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
790 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
791 echo "__cloud_env__" > /opt/config/cloud_env.txt
792 echo "__external_dns__" > /opt/config/external_dns.txt
793 echo "__mr_repo__" > /opt/config/remote_repo.txt
795 # Download and run install script
796 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
798 chmod +x mr_install.sh
802 # Robot Framework instantiation
804 type: OS::Neutron::Port
806 network: { get_resource: oam_onap }
807 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
810 type: OS::Neutron::FloatingIP
812 floating_network_id: { get_param: public_net_id }
813 port_id: { get_resource: robot_private_port }
816 type: OS::Nova::Server
818 image: { get_param: ubuntu_1604_image }
819 flavor: { get_param: flavor_medium }
824 base: { get_param: vm_base_name }
825 key_name: { get_resource: vm_key }
827 - port: { get_resource: robot_private_port }
828 user_data_format: RAW
832 __nexus_repo__: { get_param: nexus_repo }
833 __nexus_docker_repo__: { get_param: nexus_docker_repo }
834 __nexus_username__: { get_param: nexus_username }
835 __nexus_password__: { get_param: nexus_password }
836 __network_name__: { get_attr: [oam_onap, name] }
837 __openstack_username__: { get_param: openstack_username }
838 __openstack_api_key__: { get_param : openstack_api_key }
839 __openstack_tenant_id__: { get_param: openstack_tenant_id }
840 __artifacts_version__: { get_param: artifacts_version }
841 __openstack_region__: { get_param: openstack_region }
842 __dns_ip_addr__: { get_param: dns_ip_addr }
843 __docker_version__: { get_param: mr_docker }
844 __gerrit_branch__: { get_param: mr_branch }
845 __cloud_env__: { get_param: cloud_env }
846 __keystone_url__: { get_param: keystone_url }
847 __aai1_ip_addr__: { get_param: aai1_ip_addr }
848 __aai2_ip_addr__: { get_param: aai2_ip_addr }
849 __appc_ip_addr__: { get_param: appc_ip_addr }
850 __dcae_ip_addr__: { get_param: dcae_ip_addr }
851 __so_ip_addr__: { get_param: so_ip_addr }
852 __mr_ip_addr__: { get_param: mr_ip_addr }
853 __policy_ip_addr__: { get_param: policy_ip_addr }
854 __portal_ip_addr__: { get_param: portal_ip_addr }
855 __sdc_ip_addr__: { get_param: sdc_ip_addr }
856 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
857 __vid_ip_addr__: { get_param: vid_ip_addr }
858 __clamp_ip_addr__: { get_param: clamp_ip_addr }
859 __openo_ip_addr__: { get_param: openo_ip_addr }
860 __external_dns__: { get_param: external_dns }
861 __vm_image_name__: { get_param: ubuntu_1404_image }
862 __vm_flavor__: { get_param: flavor_medium }
863 __robot_repo__: { get_param: robot_repo }
867 # Create configuration files
869 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
870 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
871 echo "__nexus_username__" > /opt/config/nexus_username.txt
872 echo "__nexus_password__" > /opt/config/nexus_password.txt
873 echo "__network_name__" > /opt/config/network.txt
874 echo "__openstack_username__" > /opt/config/openstack_username.txt
875 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
876 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
877 echo "__openstack_region__" > /opt/config/region.txt
878 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
879 echo "__docker_version__" > /opt/config/docker_version.txt
880 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
881 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
882 echo "__keystone_url__" > /opt/config/keystone.txt
883 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
884 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
885 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
886 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
887 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
888 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
889 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
890 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
891 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
892 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
893 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
894 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
895 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
896 echo "__cloud_env__" > /opt/config/cloud_env.txt
897 echo "__external_dns__" > /opt/config/external_dns.txt
898 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
899 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
900 echo "__robot_repo__" > /opt/config/remote_repo.txt
902 # Download and run install script
903 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
905 chmod +x robot_install.sh
911 type: OS::Neutron::Port
913 network: { get_resource: oam_onap }
914 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
917 type: OS::Neutron::FloatingIP
919 floating_network_id: { get_param: public_net_id }
920 port_id: { get_resource: vid_private_port }
923 type: OS::Nova::Server
925 image: { get_param: ubuntu_1404_image }
926 flavor: { get_param: flavor_medium }
931 base: { get_param: vm_base_name }
932 key_name: { get_resource: vm_key }
934 - port: { get_resource: vid_private_port }
935 user_data_format: RAW
939 __nexus_repo__: { get_param: nexus_repo }
940 __nexus_docker_repo__: { get_param: nexus_docker_repo }
941 __nexus_username__: { get_param: nexus_username }
942 __nexus_password__: { get_param: nexus_password }
943 __artifacts_version__: { get_param: artifacts_version }
944 __dns_ip_addr__: { get_param: dns_ip_addr }
945 __docker_version__: { get_param: vid_docker }
946 __gerrit_branch__: { get_param: vid_branch }
947 __cloud_env__: { get_param: cloud_env }
948 __external_dns__: { get_param: external_dns }
949 __vid_repo__: { get_param: vid_repo }
953 # Create configuration files
955 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
956 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
957 echo "__nexus_username__" > /opt/config/nexus_username.txt
958 echo "__nexus_password__" > /opt/config/nexus_password.txt
959 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
960 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
961 echo "__docker_version__" > /opt/config/docker_version.txt
962 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
963 echo "__cloud_env__" > /opt/config/cloud_env.txt
964 echo "__external_dns__" > /opt/config/external_dns.txt
965 echo "__vid_repo__" > /opt/config/remote_repo.txt
967 # Download and run install script
968 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
970 chmod +x vid_install.sh
974 # SDN-C instantiation
976 type: OS::Neutron::Port
978 network: { get_resource: oam_onap }
979 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
982 type: OS::Neutron::FloatingIP
984 floating_network_id: { get_param: public_net_id }
985 port_id: { get_resource: sdnc_private_port }
988 type: OS::Nova::Server
990 image: { get_param: ubuntu_1404_image }
991 flavor: { get_param: flavor_large }
996 base: { get_param: vm_base_name }
997 key_name: { get_resource: vm_key }
999 - port: { get_resource: sdnc_private_port }
1000 user_data_format: RAW
1004 __nexus_repo__: { get_param: nexus_repo }
1005 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1006 __nexus_username__: { get_param: nexus_username }
1007 __nexus_password__: { get_param: nexus_password }
1008 __artifacts_version__: { get_param: artifacts_version }
1009 __dns_ip_addr__: { get_param: dns_ip_addr }
1010 __docker_version__: { get_param: sdnc_docker }
1011 __gerrit_branch__: { get_param: sdnc_branch }
1012 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1013 __cloud_env__: { get_param: cloud_env }
1014 __external_dns__: { get_param: external_dns }
1015 __sdnc_repo__: { get_param: sdnc_repo }
1019 # Create configuration files
1020 mkdir -p /opt/config
1021 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1022 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1023 echo "__nexus_username__" > /opt/config/nexus_username.txt
1024 echo "__nexus_password__" > /opt/config/nexus_password.txt
1025 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1026 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1027 echo "__docker_version__" > /opt/config/docker_version.txt
1028 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1029 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1030 echo "__cloud_env__" > /opt/config/cloud_env.txt
1031 echo "__external_dns__" > /opt/config/external_dns.txt
1032 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1034 # Download and run install script
1035 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1037 chmod +x sdnc_install.sh
1043 type: OS::Neutron::Port
1045 network: { get_resource: oam_onap }
1046 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1049 type: OS::Neutron::FloatingIP
1051 floating_network_id: { get_param: public_net_id }
1052 port_id: { get_resource: sdc_private_port }
1055 type: OS::Cinder::Volume
1061 type: OS::Nova::Server
1063 image: { get_param: ubuntu_1604_image }
1064 flavor: { get_param: flavor_xlarge }
1069 base: { get_param: vm_base_name }
1070 key_name: { get_resource: vm_key }
1072 - port: { get_resource: sdc_private_port }
1073 block_device_mapping:
1074 - device_name: /dev/vdb
1075 volume_id: {get_resource: sdc_volume_data}
1076 user_data_format: RAW
1080 __nexus_repo__: { get_param: nexus_repo }
1081 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1082 __nexus_username__: { get_param: nexus_username }
1083 __nexus_password__: { get_param: nexus_password }
1084 __env_name__: { get_param: dmaap_topic }
1085 __artifacts_version__: { get_param: artifacts_version }
1086 __dns_ip_addr__: { get_param: dns_ip_addr }
1087 __mr_ip_addr__: { get_param: mr_ip_addr }
1088 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1089 __docker_version__: { get_param: sdc_docker }
1090 __gerrit_branch__: { get_param: sdc_branch }
1091 __cloud_env__: { get_param: cloud_env }
1092 __external_dns__: { get_param: external_dns }
1093 __sdc_repo__: { get_param: sdc_repo }
1097 # Create configuration files
1098 mkdir -p /opt/config
1099 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1100 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1101 echo "__nexus_username__" > /opt/config/nexus_username.txt
1102 echo "__nexus_password__" > /opt/config/nexus_password.txt
1103 echo "__env_name__" > /opt/config/env_name.txt
1104 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1105 echo "__public_ip__" > /opt/config/public_ip.txt
1106 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1107 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1108 echo "__docker_version__" > /opt/config/docker_version.txt
1109 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1110 echo "__cloud_env__" > /opt/config/cloud_env.txt
1111 echo "__external_dns__" > /opt/config/external_dns.txt
1112 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1114 # Download and run install script
1115 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1117 chmod +x sdc_install.sh
1121 # PORTAL instantiation
1122 portal_private_port:
1123 type: OS::Neutron::Port
1125 network: { get_resource: oam_onap }
1126 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1129 type: OS::Neutron::FloatingIP
1131 floating_network_id: { get_param: public_net_id }
1132 port_id: { get_resource: portal_private_port }
1135 type: OS::Nova::Server
1137 image: { get_param: ubuntu_1404_image }
1138 flavor: { get_param: flavor_large }
1141 template: base-portal
1143 base: { get_param: vm_base_name }
1144 key_name: { get_resource: vm_key }
1146 - port: { get_resource: portal_private_port }
1147 user_data_format: RAW
1151 __nexus_repo__: { get_param: nexus_repo }
1152 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1153 __nexus_username__: { get_param: nexus_username }
1154 __nexus_password__: { get_param: nexus_password }
1155 __artifacts_version__: { get_param: artifacts_version }
1156 __dns_ip_addr__: { get_param: dns_ip_addr }
1157 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1158 __docker_version__: { get_param: portal_docker }
1159 __gerrit_branch__: { get_param: portal_branch }
1160 __cli_docker__: { get_param: cli_docker }
1161 __cloud_env__: { get_param: cloud_env }
1162 __external_dns__: { get_param: external_dns }
1163 __portal_repo__: { get_param: portal_repo }
1167 # Create configuration files
1168 mkdir -p /opt/config
1169 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1170 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1171 echo "__nexus_username__" > /opt/config/nexus_username.txt
1172 echo "__nexus_password__" > /opt/config/nexus_password.txt
1173 echo "__public_ip__" > /opt/config/public_ip.txt
1174 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1175 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1176 echo "__docker_version__" > /opt/config/docker_version.txt
1177 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1178 echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1179 echo "__cloud_env__" > /opt/config/cloud_env.txt
1180 echo "__external_dns__" > /opt/config/external_dns.txt
1181 echo "__portal_repo__" > /opt/config/remote_repo.txt
1183 # Download and run install script
1184 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1186 chmod +x portal_install.sh
1190 # DCAE Controller instantiation
1191 # dcae_c_private_port:
1192 # type: OS::Neutron::Port
1194 # network: { get_resource: oam_onap }
1195 # fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1197 # dcae_c_floating_ip:
1198 # type: OS::Neutron::FloatingIP
1200 # floating_network_id: { get_param: public_net_id }
1201 # port_id: { get_resource: dcae_c_private_port }
1204 # type: OS::Nova::Server
1206 # image: { get_param: ubuntu_1404_image }
1207 # flavor: { get_param: flavor_medium }
1210 # template: base-dcae-controller
1212 # base: { get_param: vm_base_name }
1213 # key_name: { get_resource: vm_key }
1215 # - port: { get_resource: dcae_c_private_port }
1216 # user_data_format: RAW
1220 # __nexus_repo__: { get_param: nexus_repo }
1221 # __nexus_docker_repo__: { get_param: nexus_docker_repo }
1222 # __nexus_username__: { get_param: nexus_username }
1223 # __nexus_password__: { get_param: nexus_password }
1224 # __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1225 # __gitlab_branch__: { get_param: gitlab_branch }
1226 # __dns_ip_addr__: { get_param: dns_ip_addr }
1227 # __dcae_zone__: { get_param: dcae_zone }
1228 # __dcae_state__: { get_param: dcae_state }
1229 # __artifacts_version__: { get_param: artifacts_version }
1230 # __tenant_id__: { get_param: openstack_tenant_id }
1231 # __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1232 # __openstack_user__: { get_param: openstack_username }
1233 # __openstack_password__: { get_param: openstack_api_key }
1234 # __openstack_auth_method__: { get_param: openstack_auth_method }
1235 # __key_name__: { get_param: key_name }
1236 # __rand_str__: { get_resource: random-str }
1237 # __pub_key__: { get_param: pub_key }
1238 # __nexus_repo_root__: { get_param: nexus_repo_root }
1239 # __openstack_region__: { get_param: openstack_region }
1240 # __horizon_url__: { get_param: horizon_url }
1241 # __keystone_url__: { get_param: keystone_url }
1242 # __docker_version__: { get_param: dcae_docker }
1243 # __gerrit_branch__: { get_param: dcae_branch }
1244 # __dcae_code_version__: { get_param: dcae_code_version }
1245 # __cloud_env__: { get_param: cloud_env }
1246 # __public_net_id__: { get_param: public_net_id }
1247 # __dcae_base_environment__: { get_param: dcae_base_environment }
1248 # __dcae_ip_addr__: { get_param: dcae_ip_addr }
1249 # __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1250 # __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1251 # __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1252 # __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1253 # __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1254 # __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1255 # __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1256 # __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1257 # __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1258 # __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1259 # __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1260 # __external_dns__: { get_param: external_dns }
1261 # __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1262 # __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1263 # __flavor_small__: { get_param: flavor_small }
1264 # __flavor_medium__: { get_param: flavor_medium }
1265 # __flavor_large__: { get_param: flavor_large }
1266 # __flavor_xlarge__: { get_param: flavor_xlarge }
1267 # __dcae_repo__: { get_param: dcae_repo }
1268 # __mr_repo__: { get_param: mr_repo }
1272 # Create configuration files
1273 # mkdir -p /opt/config
1274 # echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1275 # echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1276 # echo "__nexus_username__" > /opt/config/nexus_username.txt
1277 # echo "__nexus_password__" > /opt/config/nexus_password.txt
1278 # echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1279 # echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1280 # echo "__docker_version__" > /opt/config/docker_version.txt
1281 # echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1282 # echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1283 # echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1284 # echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1285 # echo "__dcae_state__" > /opt/config/dcae_state.txt
1286 # echo "__tenant_id__" > /opt/config/tenant_id.txt
1287 # echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1288 # echo "__openstack_user__" > /opt/config/openstack_user.txt
1289 # echo "__openstack_password__" > /opt/config/openstack_password.txt
1290 # echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1291 # echo "__key_name__" > /opt/config/key_name.txt
1292 # echo "__rand_str__" > /opt/config/rand_str.txt
1293 # echo "__pub_key__" > /opt/config/pub_key.txt
1294 # echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1295 # echo "__openstack_region__" > /opt/config/openstack_region.txt
1296 # echo "__horizon_url__" > /opt/config/horizon_url.txt
1297 # echo "__keystone_url__" > /opt/config/keystone_url.txt
1298 # echo "__cloud_env__" > /opt/config/cloud_env.txt
1299 # echo "__public_net_id__" > /opt/config/public_net_id.txt
1300 # echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1301 # echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1302 # echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1303 # echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1304 # echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1305 # echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1306 # echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1307 # echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1308 # echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1309 # echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1310 # echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1311 # echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1312 # echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1313 # echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1314 # echo "__external_dns__" > /opt/config/external_dns.txt
1315 # echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1316 # echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1317 # echo "__flavor_small__" > /opt/config/flavor_small.txt
1318 # echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1319 # echo "__flavor_large__" > /opt/config/flavor_large.txt
1320 # echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1321 # echo "__dcae_repo__" > /opt/config/remote_repo.txt
1322 # echo "__mr_repo__" > /opt/config/mr_repo.txt
1324 # Download and run install script
1325 # curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1327 # chmod +x dcae_install.sh
1331 # Policy Engine instantiation
1332 policy_private_port:
1333 type: OS::Neutron::Port
1335 network: { get_resource: oam_onap }
1336 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1339 type: OS::Neutron::FloatingIP
1341 floating_network_id: { get_param: public_net_id }
1342 port_id: { get_resource: policy_private_port }
1345 type: OS::Nova::Server
1347 image: { get_param: ubuntu_1404_image }
1348 flavor: { get_param: flavor_xlarge }
1351 template: base-policy
1353 base: { get_param: vm_base_name }
1354 key_name: { get_resource: vm_key }
1356 - port: { get_resource: policy_private_port }
1357 user_data_format: RAW
1361 __nexus_repo__: { get_param: nexus_repo }
1362 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1363 __nexus_username__: { get_param: nexus_username }
1364 __nexus_password__: { get_param: nexus_password }
1365 __artifacts_version__: { get_param: artifacts_version }
1366 __dns_ip_addr__: { get_param: dns_ip_addr }
1367 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1368 __docker_version__: { get_param: policy_docker }
1369 __gerrit_branch__: { get_param: policy_branch }
1370 __cloud_env__: { get_param: cloud_env }
1371 __external_dns__: { get_param: external_dns }
1372 __policy_repo__: { get_param: policy_repo }
1376 # Create configuration files
1377 mkdir -p /opt/config
1378 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1379 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1380 echo "__nexus_username__" > /opt/config/nexus_username.txt
1381 echo "__nexus_password__" > /opt/config/nexus_password.txt
1382 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1383 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1384 echo "__public_ip__" > /opt/config/public_ip.txt
1385 echo "__docker_version__" > /opt/config/docker_version.txt
1386 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1387 echo "__cloud_env__" > /opt/config/cloud_env.txt
1388 echo "__external_dns__" > /opt/config/external_dns.txt
1389 echo "__policy_repo__" > /opt/config/remote_repo.txt
1391 # Download and run install script
1392 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1394 chmod +x policy_install.sh
1398 # APP-C instantiation
1400 type: OS::Neutron::Port
1402 network: { get_resource: oam_onap }
1403 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1406 type: OS::Neutron::FloatingIP
1408 floating_network_id: { get_param: public_net_id }
1409 port_id: { get_resource: appc_private_port }
1412 type: OS::Nova::Server
1414 image: { get_param: ubuntu_1404_image }
1415 flavor: { get_param: flavor_large }
1420 base: { get_param: vm_base_name }
1421 key_name: { get_resource: vm_key }
1423 - port: { get_resource: appc_private_port }
1424 user_data_format: RAW
1428 __nexus_repo__: { get_param: nexus_repo }
1429 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1430 __nexus_username__: { get_param: nexus_username }
1431 __nexus_password__: { get_param: nexus_password }
1432 __dmaap_topic__: { get_param: dmaap_topic }
1433 __artifacts_version__: { get_param: artifacts_version }
1434 __dns_ip_addr__: { get_param: dns_ip_addr }
1435 __docker_version__: { get_param: appc_docker }
1436 __gerrit_branch__: { get_param: appc_branch }
1437 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1438 __cloud_env__: { get_param: cloud_env }
1439 __external_dns__: { get_param: external_dns }
1440 __appc_repo__: { get_param: appc_repo }
1444 # Create configuration files
1445 mkdir -p /opt/config
1446 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1447 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1448 echo "__nexus_username__" > /opt/config/nexus_username.txt
1449 echo "__nexus_password__" > /opt/config/nexus_password.txt
1450 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1451 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1452 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1453 echo "__docker_version__" > /opt/config/docker_version.txt
1454 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1455 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1456 echo "__cloud_env__" > /opt/config/cloud_env.txt
1457 echo "__external_dns__" > /opt/config/external_dns.txt
1458 echo "__appc_repo__" > /opt/config/remote_repo.txt
1460 # Download and run install script
1461 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1463 chmod +x appc_install.sh
1467 # CLAMP instantiation
1469 type: OS::Neutron::Port
1471 network: { get_resource: oam_onap }
1472 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1475 type: OS::Neutron::FloatingIP
1477 floating_network_id: { get_param: public_net_id }
1478 port_id: { get_resource: clamp_private_port }
1481 type: OS::Nova::Server
1483 image: { get_param: ubuntu_1604_image }
1484 flavor: { get_param: flavor_medium }
1487 template: base-clamp
1489 base: { get_param: vm_base_name }
1490 key_name: { get_resource: vm_key }
1492 - port: { get_resource: clamp_private_port }
1493 user_data_format: RAW
1497 __nexus_repo__: { get_param: nexus_repo }
1498 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1499 __nexus_username__: { get_param: nexus_username }
1500 __nexus_password__: { get_param: nexus_password }
1501 __openstack_username__: { get_param: openstack_username }
1502 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1503 __openstack_api_key__: { get_param: openstack_api_key }
1504 __openstack_region__: { get_param: openstack_region }
1505 __keystone_url__: { get_param: keystone_url }
1506 __dmaap_topic__: { get_param: dmaap_topic }
1507 __artifacts_version__: { get_param: artifacts_version }
1508 __dns_ip_addr__: { get_param: dns_ip_addr }
1509 __docker_version__: { get_param: clamp_docker }
1510 __gerrit_branch__: { get_param: clamp_branch }
1511 __cloud_env__: { get_param: cloud_env }
1512 __external_dns__: { get_param: external_dns }
1513 __clamp_repo__: { get_param: clamp_repo }
1517 # Create configuration files
1518 mkdir -p /opt/config
1519 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1520 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1521 echo "__nexus_username__" > /opt/config/nexus_username.txt
1522 echo "__nexus_password__" > /opt/config/nexus_password.txt
1523 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1524 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1525 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1526 echo "__openstack_username__" > /opt/config/openstack_username.txt
1527 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1528 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1529 echo "__openstack_region__" > /opt/config/openstack_region.txt
1530 echo "__keystone_url__" > /opt/config/keystone.txt
1531 echo "__docker_version__" > /opt/config/docker_version.txt
1532 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1533 echo "__cloud_env__" > /opt/config/cloud_env.txt
1534 echo "__external_dns__" > /opt/config/external_dns.txt
1535 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1537 # Download and run install script
1538 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1540 chmod +x clamp_install.sh
1544 # OPEN-O VM instantiation
1546 type: OS::Neutron::Port
1548 network: { get_resource: oam_onap }
1549 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1552 type: OS::Neutron::FloatingIP
1554 floating_network_id: { get_param: public_net_id }
1555 port_id: { get_resource: openo_private_port }
1558 type: OS::Nova::Server
1560 image: { get_param: ubuntu_1604_image }
1561 flavor: { get_param: flavor_xxlarge }
1564 template: base-openo-server
1566 base: { get_param: vm_base_name }
1567 key_name: { get_resource: vm_key }
1569 - port: { get_resource: openo_private_port }
1570 user_data_format: RAW
1574 __nexus_repo__: { get_param: nexus_repo }
1575 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1576 __nexus_username__: { get_param: nexus_username }
1577 __nexus_password__: { get_param: nexus_password }
1578 __artifacts_version__: { get_param: artifacts_version }
1579 __dns_ip_addr__: { get_param: dns_ip_addr }
1580 __oam_network_cidr__: { get_param: oam_network_cidr }
1581 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1582 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1583 __appc_ip_addr__: { get_param: appc_ip_addr }
1584 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1585 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1586 __so_ip_addr__: { get_param: so_ip_addr }
1587 __mr_ip_addr__: { get_param: mr_ip_addr }
1588 __policy_ip_addr__: { get_param: policy_ip_addr }
1589 __portal_ip_addr__: { get_param: portal_ip_addr }
1590 __robot_ip_addr__: { get_param: robot_ip_addr }
1591 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1592 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1593 __vid_ip_addr__: { get_param: vid_ip_addr }
1594 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1595 __openo_ip_addr__: { get_param: openo_ip_addr }
1596 __cloud_env__: { get_param: cloud_env }
1597 __external_dns__: { get_param: external_dns }
1598 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1599 __msb_docker__: { get_param: msb_docker }
1600 __mvim_docker__: { get_param: mvim_docker }
1601 __vfc_docker__: { get_param: vfc_docker }
1602 __uui_docker__: { get_param: uui_docker }
1603 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1607 # Create configuration files
1608 mkdir -p /opt/config
1609 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1610 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1611 echo "__nexus_username__" > /opt/config/nexus_username.txt
1612 echo "__nexus_password__" > /opt/config/nexus_password.txt
1613 echo "__cloud_env__" > /opt/config/cloud_env.txt
1614 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1615 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1616 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1617 echo "__external_dns__" > /opt/config/external_dns.txt
1618 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1619 echo "__msb_docker__" > /opt/config/msb_docker.txt
1620 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1621 echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1622 echo "__uui_docker__" > /opt/config/uui_docker.txt
1623 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1625 # Create env file with the IP address of all ONAP components
1626 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1627 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1628 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1629 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1630 echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1631 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1632 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1633 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1634 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1635 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1636 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1637 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1638 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1639 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1640 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1642 # Download and run install script
1643 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1645 chmod +x openo_install.sh
1649 # DCAE GEN 2 Controller instantiation
1650 dcae_c_private_port:
1651 type: OS::Neutron::Port
1653 network: { get_resource: oam_onap }
1654 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1657 type: OS::Neutron::FloatingIP
1659 floating_network_id: { get_param: public_net_id }
1660 port_id: { get_resource: dcae_c_private_port }
1663 type: OS::Nova::Server
1665 image: { get_param: ubuntu_1604_image }
1666 flavor: { get_param: flavor_medium }
1669 template: base-dcae-controller
1671 base: { get_param: vm_base_name }
1672 key_name: { get_resource: dcae_vm_key }
1674 - port: { get_resource: dcae_c_private_port }
1675 user_data_format: RAW
1679 __nexus_repo__: { get_param: nexus_repo }
1680 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1681 __nexus_username__: { get_param: nexus_username }
1682 __nexus_password__: { get_param: nexus_password }
1683 __dns_ip_addr__: { get_param: dns_ip_addr }
1684 __dcae_zone__: { get_param: dcae_zone }
1685 __artifacts_version__: { get_param: artifacts_version }
1686 __tenant_id__: { get_param: openstack_tenant_id }
1687 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1688 __openstack_user__: { get_param: openstack_username }
1689 __openstack_password__: { get_param: openstack_api_key }
1690 __key_name__: { get_param: dcae_key_name }
1691 __pub_key__: { get_param: dcae_pub_key }
1692 __private_key__: { get_attr: [ dcae_vm_key, private_key ] }
1693 __openstack_region__: { get_param: openstack_region }
1694 __keystone_url__: { get_param: keystone_url }
1695 __docker_version__: { get_param: dcae_docker }
1696 __dcae_repo__: { get_param: dcae_repo }
1697 __gerrit_branch__: { get_param: dcae_branch }
1698 __cloud_env__: { get_param: cloud_env }
1699 __public_net_id__: { get_param: public_net_id }
1700 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1701 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1702 __external_dns__: { get_param: external_dns }
1703 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1704 __centos_7_image__: { get_param: centos_7_image }
1705 __security_group__ : { get_param: security_group }
1706 __flavor_medium__: { get_param: flavor_medium }
1707 __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1708 __rand_str__: { get_resource: random-str }
1713 # Create configuration files
1714 mkdir -p /opt/config
1715 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1716 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1717 echo "__nexus_username__" > /opt/config/nexus_username.txt
1718 echo "__nexus_password__" > /opt/config/nexus_password.txt
1719 echo "__docker_version__" > /opt/config/docker_version.txt
1720 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1721 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1722 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1723 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1724 echo "__tenant_id__" > /opt/config/tenant_id.txt
1725 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1726 echo "__openstack_user__" > /opt/config/openstack_user.txt
1727 echo "__openstack_password__" > /opt/config/openstack_password.txt
1728 echo "__key_name__" > /opt/config/key_name.txt
1729 echo "__pub_key__" > /opt/config/pub_key.txt
1730 echo "__private_key__" > /opt/config/priv_key
1731 echo "__openstack_region__" > /opt/config/openstack_region.txt
1732 echo "__keystone_url__" > /opt/config/keystone_url.txt
1733 echo "__cloud_env__" > /opt/config/cloud_env.txt
1734 echo "__public_net_id__" > /opt/config/public_net_id.txt
1735 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1736 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1737 echo "__external_dns__" > /opt/config/external_dns.txt
1738 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1739 echo "__centos_7_image__" > /opt/config/centos_7_image.txt
1740 echo "__security_group__" > /opt/config/security_group.txt
1741 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1742 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1743 echo "__mac_addr__" > /opt/config/mac_addr.txt
1744 echo "__rand_str__" > /opt/config/rand_str.txt
1746 # Download and run install script
1747 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1749 chmod +x dcae2_install.sh