1 ##########################################################################
3 #==================LICENSE_START==========================================
6 # Copyright (c) 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: 2013-05-23
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 ######################
163 description: External DNS for OAM ONAP network
167 description: CIDR of the OAM ONAP network
169 ### Private IP addresses ###
212 ###########################
214 # Parameters used by DCAE #
216 ###########################
218 dcae_base_environment:
220 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
224 description: DCAE Zone to use in VM names created by DCAE controller
228 description: DCAE State to use in VM names created by DCAE controller
232 description: Root URL of Nexus repository
236 description: Snapshot of Maven repository for DCAE deployment
240 description: Region where the DCAE controller will spin the VMs
244 description: Branch of the Gitlab repository
248 description: DCAE Code Version Number
250 #####################
252 # ONAP repositories #
254 #####################
283 ################################
285 # Docker versions and branches #
287 ################################
364 type: OS::Heat::RandomString
369 # Public key used to access ONAP components
371 type: OS::Nova::KeyPair
377 base: { get_param: key_name }
378 rand: { get_resource: random-str }
379 public_key: { get_param: pub_key }
380 save_private_key: false
382 # Public key used to access DCAE GEN 2
384 type: OS::Nova::KeyPair
390 base: { get_param: dcae_key_name }
391 rand: { get_resource: random-str }
392 public_key: { get_param: dcae_pub_key }
393 save_private_key: true
395 # ONAP management private network
397 type: OS::Neutron::Net
401 template: oam_onap_rand
403 rand: { get_resource: random-str }
406 type: OS::Neutron::Subnet
410 template: oam_onap_rand
412 rand: { get_resource: random-str }
413 network_id: { get_resource: oam_onap }
414 cidr: { get_param: oam_network_cidr }
417 # DNS Server instantiation
419 type: OS::Neutron::Port
421 network: { get_resource: oam_onap }
422 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
425 type: OS::Nova::Server
427 image: { get_param: ubuntu_1404_image }
428 flavor: { get_param: flavor_small }
431 template: base-dns-server
433 base: { get_param: vm_base_name }
434 key_name: { get_resource: vm_key }
436 - network: { get_param: public_net_id }
437 - port: { get_resource: dns_private_port }
438 user_data_format: RAW
442 __nexus_repo__: { get_param: nexus_repo }
443 __artifacts_version__: { get_param: artifacts_version }
444 __oam_network_cidr__: { get_param: oam_network_cidr }
445 __dns_ip_addr__: { get_param: dns_ip_addr }
446 __aai1_ip_addr__: { get_param: aai1_ip_addr }
447 __aai2_ip_addr__: { get_param: aai2_ip_addr }
448 __appc_ip_addr__: { get_param: appc_ip_addr }
449 __dcae_ip_addr__: { get_param: dcae_ip_addr }
450 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
451 __so_ip_addr__: { get_param: so_ip_addr }
452 __mr_ip_addr__: { get_param: mr_ip_addr }
453 __policy_ip_addr__: { get_param: policy_ip_addr }
454 __portal_ip_addr__: { get_param: portal_ip_addr }
455 __robot_ip_addr__: { get_param: robot_ip_addr }
456 __sdc_ip_addr__: { get_param: sdc_ip_addr }
457 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
458 __vid_ip_addr__: { get_param: vid_ip_addr }
459 __clamp_ip_addr__: { get_param: clamp_ip_addr }
460 __openo_ip_addr__: { get_param: openo_ip_addr }
461 __cloud_env__: { get_param: cloud_env }
462 __external_dns__: { get_param: external_dns }
466 # Create configuration files
468 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
469 echo "__cloud_env__" > /opt/config/cloud_env.txt
470 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
471 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
472 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
473 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
474 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
475 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
476 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
477 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
478 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
479 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
480 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
481 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
482 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
483 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
484 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
485 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
486 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
487 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
488 echo "__external_dns__" > /opt/config/external_dns.txt
490 # Download and run install script
491 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
493 chmod +x dns_install.sh
497 # A&AI instantiation (2 VMs)
499 type: OS::Neutron::Port
501 network: { get_resource: oam_onap }
502 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
505 type: OS::Nova::Server
508 image: { get_param: ubuntu_1404_image }
509 flavor: { get_param: flavor_xlarge }
512 template: base-aai-inst1
514 base: { get_param: vm_base_name }
515 key_name: { get_resource: vm_key }
517 - network: { get_param: public_net_id }
518 - port: { get_resource: aai1_private_port }
519 user_data_format: RAW
523 __nexus_repo__: { get_param: nexus_repo }
524 __nexus_docker_repo__: { get_param: nexus_docker_repo }
525 __nexus_username__: { get_param: nexus_username }
526 __nexus_password__: { get_param: nexus_password }
527 __dmaap_topic__: { get_param: dmaap_topic }
528 __artifacts_version__: { get_param: artifacts_version }
529 __dns_ip_addr__: { get_param: dns_ip_addr }
530 __aai_ip_addr__: { get_param: aai1_ip_addr }
531 __oam_network_cidr__: { get_param: oam_network_cidr }
532 __docker_version__: { get_param: aai_docker }
533 __gerrit_branch__: { get_param: aai_branch }
534 __cloud_env__: { get_param: cloud_env }
535 __external_dns__: { get_param: external_dns }
536 __aai_repo__: { get_param: aai_repo }
540 # Create configuration files
542 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
543 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
544 echo "__nexus_username__" > /opt/config/nexus_username.txt
545 echo "__nexus_password__" > /opt/config/nexus_password.txt
546 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
547 echo "__aai_ip_addr__" > /opt/config/local_ip_addr.txt
548 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
549 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
550 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
551 echo "__docker_version__" > /opt/config/docker_version.txt
552 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
553 echo "aai_instance_1" > /opt/config/aai_instance.txt
554 echo "__cloud_env__" > /opt/config/cloud_env.txt
555 echo "__external_dns__" > /opt/config/external_dns.txt
556 echo "__aai_repo__" > /opt/config/remote_repo.txt
558 # Download and run install script
559 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
561 chmod +x aai_install.sh
566 type: OS::Neutron::Port
568 network: { get_resource: oam_onap }
569 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
572 type: OS::Nova::Server
574 image: { get_param: ubuntu_1404_image }
575 flavor: { get_param: flavor_xlarge }
578 template: base-aai-inst2
580 base: { get_param: vm_base_name }
581 key_name: { get_resource: vm_key }
583 - network: { get_param: public_net_id }
584 - port: { get_resource: aai2_private_port }
585 user_data_format: RAW
589 __nexus_repo__: { get_param: nexus_repo }
590 __nexus_docker_repo__: { get_param: nexus_docker_repo }
591 __nexus_username__: { get_param: nexus_username }
592 __nexus_password__: { get_param: nexus_password }
593 __dmaap_topic__: { get_param: dmaap_topic }
594 __artifacts_version__: { get_param: artifacts_version }
595 __dns_ip_addr__: { get_param: dns_ip_addr }
596 __aai_ip_addr__: { get_param: aai2_ip_addr }
597 __oam_network_cidr__: { get_param: oam_network_cidr }
598 __docker_version__: { get_param: aai_docker }
599 __gerrit_branch__: { get_param: aai_branch }
600 __cloud_env__: { get_param: cloud_env }
601 __external_dns__: { get_param: external_dns }
602 __aai_repo__: { get_param: aai_repo }
606 # Create configuration files
608 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
609 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
610 echo "__nexus_username__" > /opt/config/nexus_username.txt
611 echo "__nexus_password__" > /opt/config/nexus_password.txt
612 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
613 echo "__aai_ip_addr__" > /opt/config/local_ip_addr.txt
614 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
615 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
616 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
617 echo "__docker_version__" > /opt/config/docker_version.txt
618 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
619 echo "aai_instance_2" > /opt/config/aai_instance.txt
620 echo "__cloud_env__" > /opt/config/cloud_env.txt
621 echo "__external_dns__" > /opt/config/external_dns.txt
622 echo "__aai_repo__" > /opt/config/remote_repo.txt
624 # Download and run install script
625 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
627 chmod +x aai_install.sh
633 type: OS::Neutron::Port
635 network: { get_resource: oam_onap }
636 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
639 type: OS::Nova::Server
641 image: { get_param: ubuntu_1604_image }
642 flavor: { get_param: flavor_large }
647 base: { get_param: vm_base_name }
648 key_name: { get_resource: vm_key }
650 - network: { get_param: public_net_id }
651 - port: { get_resource: so_private_port }
652 user_data_format: RAW
656 __nexus_repo__: { get_param: nexus_repo }
657 __nexus_docker_repo__: { get_param: nexus_docker_repo }
658 __nexus_username__: { get_param: nexus_username }
659 __nexus_password__: { get_param: nexus_password }
660 __openstack_username__: { get_param: openstack_username }
661 __openstack_tenant_id__: { get_param: openstack_tenant_id }
662 __openstack_api_key__: { get_param: openstack_api_key }
663 __openstack_region__: { get_param: openstack_region }
664 __keystone_url__: { get_param: keystone_url }
665 __dmaap_topic__: { get_param: dmaap_topic }
666 __artifacts_version__: { get_param: artifacts_version }
667 __dns_ip_addr__: { get_param: dns_ip_addr }
668 __so_ip_addr__: { get_param: so_ip_addr }
669 __oam_network_cidr__: { get_param: oam_network_cidr }
670 __docker_version__: { get_param: so_docker }
671 __gerrit_branch__: { get_param: so_branch }
672 __cloud_env__: { get_param: cloud_env }
673 __external_dns__: { get_param: external_dns }
674 __so_repo__: { get_param: so_repo }
678 # Create configuration files
680 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
681 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
682 echo "__nexus_username__" > /opt/config/nexus_username.txt
683 echo "__nexus_password__" > /opt/config/nexus_password.txt
684 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
685 echo "__so_ip_addr__" > /opt/config/local_ip_addr.txt
686 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
687 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
688 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
689 echo "__openstack_username__" > /opt/config/openstack_username.txt
690 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
691 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
692 echo "__openstack_region__" > /opt/config/openstack_region.txt
693 echo "__keystone_url__" > /opt/config/keystone.txt
694 echo "__docker_version__" > /opt/config/docker_version.txt
695 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
696 echo "__cloud_env__" > /opt/config/cloud_env.txt
697 echo "__external_dns__" > /opt/config/external_dns.txt
698 echo "__so_repo__" > /opt/config/remote_repo.txt
700 # Download and run install script
701 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
703 chmod +x so_install.sh
707 # Message Router instantiation
708 mrouter_private_port:
709 type: OS::Neutron::Port
711 network: { get_resource: oam_onap }
712 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
715 type: OS::Nova::Server
717 image: { get_param: ubuntu_1404_image }
718 flavor: { get_param: flavor_large }
721 template: base-message-router
723 base: { get_param: vm_base_name }
724 key_name: { get_resource: vm_key }
726 - network: { get_param: public_net_id }
727 - port: { get_resource: mrouter_private_port }
728 user_data_format: RAW
732 __nexus_repo__: { get_param: nexus_repo }
733 __nexus_docker_repo__: { get_param: nexus_docker_repo }
734 __nexus_username__: { get_param: nexus_username }
735 __nexus_password__: { get_param: nexus_password }
736 __artifacts_version__: { get_param: artifacts_version }
737 __mr_ip_addr__: { get_param: mr_ip_addr }
738 __dns_ip_addr__: { get_param: dns_ip_addr }
739 __oam_network_cidr__: { get_param: oam_network_cidr }
740 __gerrit_branch__: { get_param: mr_gerrit }
741 __cloud_env__: { get_param: cloud_env }
742 __external_dns__: { get_param: external_dns }
743 __mr_repo__: { get_param: mr_repo }
747 # Create configuration files
749 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
750 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
751 echo "__nexus_username__" > /opt/config/nexus_username.txt
752 echo "__nexus_password__" > /opt/config/nexus_password.txt
753 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
754 echo "__mr_ip_addr__" > /opt/config/local_ip_addr.txt
755 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
756 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
757 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
758 echo "__cloud_env__" > /opt/config/cloud_env.txt
759 echo "__external_dns__" > /opt/config/external_dns.txt
760 echo "__mr_repo__" > /opt/config/remote_repo.txt
762 # Download and run install script
763 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
765 chmod +x mr_install.sh
769 # Robot Framework instantiation
771 type: OS::Neutron::Port
773 network: { get_resource: oam_onap }
774 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
777 type: OS::Nova::Server
779 image: { get_param: ubuntu_1604_image }
780 flavor: { get_param: flavor_medium }
785 base: { get_param: vm_base_name }
786 key_name: { get_resource: vm_key }
788 - network: { get_param: public_net_id }
789 - port: { get_resource: robot_private_port }
790 user_data_format: RAW
794 __nexus_repo__: { get_param: nexus_repo }
795 __nexus_docker_repo__: { get_param: nexus_docker_repo }
796 __nexus_username__: { get_param: nexus_username }
797 __nexus_password__: { get_param: nexus_password }
798 __network_name__: { get_attr: [oam_onap, name] }
799 __openstack_username__: { get_param: openstack_username }
800 __openstack_api_key__: { get_param : openstack_api_key }
801 __openstack_tenant_id__: { get_param: openstack_tenant_id }
802 __artifacts_version__: { get_param: artifacts_version }
803 __openstack_region__: { get_param: openstack_region }
804 __robot_ip_addr__: { get_param: robot_ip_addr }
805 __dns_ip_addr__: { get_param: dns_ip_addr }
806 __oam_network_cidr__: { get_param: oam_network_cidr }
807 __docker_version__: { get_param: robot_docker }
808 __gerrit_branch__: { get_param: robot_branch }
809 __keystone_url__: { get_param: keystone_url }
810 __aai1_ip_addr__: { get_param: aai1_ip_addr }
811 __aai2_ip_addr__: { get_param: aai2_ip_addr }
812 __appc_ip_addr__: { get_param: appc_ip_addr }
813 __dcae_ip_addr__: { get_param: dcae_ip_addr }
814 __so_ip_addr__: { get_param: so_ip_addr }
815 __mr_ip_addr__: { get_param: mr_ip_addr }
816 __policy_ip_addr__: { get_param: policy_ip_addr }
817 __portal_ip_addr__: { get_param: portal_ip_addr }
818 __sdc_ip_addr__: { get_param: sdc_ip_addr }
819 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
820 __vid_ip_addr__: { get_param: vid_ip_addr }
821 __clamp_ip_addr__: { get_param: clamp_ip_addr }
822 __openo_ip_addr__: { get_param: openo_ip_addr }
823 __cloud_env__: { get_param: cloud_env }
824 __external_dns__: { get_param: external_dns }
825 __vm_image_name__: { get_param: ubuntu_1404_image }
826 __vm_flavor__: { get_param: flavor_medium }
827 __robot_repo__: { get_param: robot_repo }
831 # Create configuration files
833 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
834 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
835 echo "__nexus_username__" > /opt/config/nexus_username.txt
836 echo "__nexus_password__" > /opt/config/nexus_password.txt
837 echo "__network_name__" > /opt/config/network.txt
838 echo "__openstack_username__" > /opt/config/openstack_username.txt
839 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
840 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
841 echo "__openstack_region__" > /opt/config/region.txt
842 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
843 echo "__robot_ip_addr__" > /opt/config/local_ip_addr.txt
844 echo "__docker_version__" > /opt/config/docker_version.txt
845 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
846 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
847 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
848 echo "__keystone_url__" > /opt/config/keystone.txt
849 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
850 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
851 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
852 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
853 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
854 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
855 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
856 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
857 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
858 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
859 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
860 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
861 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
862 echo "__cloud_env__" > /opt/config/cloud_env.txt
863 echo "__external_dns__" > /opt/config/external_dns.txt
864 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
865 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
866 echo "__robot_repo__" > /opt/config/remote_repo.txt
868 # Download and run install script
869 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
871 chmod +x robot_install.sh
877 type: OS::Neutron::Port
879 network: { get_resource: oam_onap }
880 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
883 type: OS::Nova::Server
885 image: { get_param: ubuntu_1404_image }
886 flavor: { get_param: flavor_medium }
891 base: { get_param: vm_base_name }
892 key_name: { get_resource: vm_key }
894 - network: { get_param: public_net_id }
895 - port: { get_resource: vid_private_port }
896 user_data_format: RAW
900 __nexus_repo__: { get_param: nexus_repo }
901 __nexus_docker_repo__: { get_param: nexus_docker_repo }
902 __nexus_username__: { get_param: nexus_username }
903 __nexus_password__: { get_param: nexus_password }
904 __artifacts_version__: { get_param: artifacts_version }
905 __vid_ip_addr__: { get_param: vid_ip_addr }
906 __dns_ip_addr__: { get_param: dns_ip_addr }
907 __oam_network_cidr__: { get_param: oam_network_cidr }
908 __docker_version__: { get_param: vid_docker }
909 __gerrit_branch__: { get_param: vid_branch }
910 __cloud_env__: { get_param: cloud_env }
911 __external_dns__: { get_param: external_dns }
912 __vid_repo__: { get_param: vid_repo }
916 # Create configuration files
918 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
919 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
920 echo "__nexus_username__" > /opt/config/nexus_username.txt
921 echo "__nexus_password__" > /opt/config/nexus_password.txt
922 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
923 echo "__vid_ip_addr__" > /opt/config/local_ip_addr.txt
924 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
925 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
926 echo "__docker_version__" > /opt/config/docker_version.txt
927 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
928 echo "__cloud_env__" > /opt/config/cloud_env.txt
929 echo "__external_dns__" > /opt/config/external_dns.txt
930 echo "__vid_repo__" > /opt/config/remote_repo.txt
932 # Download and run install script
933 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
935 chmod +x vid_install.sh
939 # SDN-C instantiation
941 type: OS::Neutron::Port
943 network: { get_resource: oam_onap }
944 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
947 type: OS::Nova::Server
949 image: { get_param: ubuntu_1404_image }
950 flavor: { get_param: flavor_large }
955 base: { get_param: vm_base_name }
956 key_name: { get_resource: vm_key }
958 - network: { get_param: public_net_id }
959 - port: { get_resource: sdnc_private_port }
960 user_data_format: RAW
964 __nexus_repo__: { get_param: nexus_repo }
965 __nexus_docker_repo__: { get_param: nexus_docker_repo }
966 __nexus_username__: { get_param: nexus_username }
967 __nexus_password__: { get_param: nexus_password }
968 __artifacts_version__: { get_param: artifacts_version }
969 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
970 __dns_ip_addr__: { get_param: dns_ip_addr }
971 __oam_network_cidr__: { get_param: oam_network_cidr }
972 __docker_version__: { get_param: sdnc_docker }
973 __gerrit_branch__: { get_param: sdnc_branch }
974 __dgbuilder_docker__: { get_param: dgbuilder_docker }
975 __cloud_env__: { get_param: cloud_env }
976 __external_dns__: { get_param: external_dns }
977 __sdnc_repo__: { get_param: sdnc_repo }
981 # Create configuration files
983 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
984 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
985 echo "__nexus_username__" > /opt/config/nexus_username.txt
986 echo "__nexus_password__" > /opt/config/nexus_password.txt
987 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
988 echo "__sdnc_ip_addr__" > /opt/config/local_ip_addr.txt
989 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
990 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
991 echo "__docker_version__" > /opt/config/docker_version.txt
992 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
993 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
994 echo "__cloud_env__" > /opt/config/cloud_env.txt
995 echo "__external_dns__" > /opt/config/external_dns.txt
996 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
998 # Download and run install script
999 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1001 chmod +x sdnc_install.sh
1007 type: OS::Neutron::Port
1009 network: { get_resource: oam_onap }
1010 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1013 type: OS::Cinder::Volume
1019 type: OS::Nova::Server
1021 image: { get_param: ubuntu_1604_image }
1022 flavor: { get_param: flavor_xlarge }
1027 base: { get_param: vm_base_name }
1028 key_name: { get_resource: vm_key }
1030 - network: { get_param: public_net_id }
1031 - port: { get_resource: sdc_private_port }
1032 block_device_mapping:
1033 - device_name: /dev/vdb
1034 volume_id: { get_resource: sdc_volume_data }
1035 user_data_format: RAW
1039 __nexus_repo__: { get_param: nexus_repo }
1040 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1041 __nexus_username__: { get_param: nexus_username }
1042 __nexus_password__: { get_param: nexus_password }
1043 __env_name__: { get_param: dmaap_topic }
1044 __artifacts_version__: { get_param: artifacts_version }
1045 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1046 __dns_ip_addr__: { get_param: dns_ip_addr }
1047 __oam_network_cidr__: { get_param: oam_network_cidr }
1048 __mr_ip_addr__: { get_param: mr_ip_addr }
1049 __docker_version__: { get_param: sdc_docker }
1050 __gerrit_branch__: { get_param: sdc_branch }
1051 __cloud_env__: { get_param: cloud_env }
1052 __external_dns__: { get_param: external_dns }
1053 __sdc_repo__: { get_param: sdc_repo }
1057 # Create configuration files
1058 mkdir -p /opt/config
1059 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1060 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1061 echo "__nexus_username__" > /opt/config/nexus_username.txt
1062 echo "__nexus_password__" > /opt/config/nexus_password.txt
1063 echo "__env_name__" > /opt/config/env_name.txt
1064 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1065 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1066 echo "__sdc_ip_addr__" > /opt/config/local_ip_addr.txt
1067 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1068 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1069 echo "__docker_version__" > /opt/config/docker_version.txt
1070 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1071 echo "__cloud_env__" > /opt/config/cloud_env.txt
1072 echo "__external_dns__" > /opt/config/external_dns.txt
1073 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1075 # Download and run install script
1076 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1078 chmod +x sdc_install.sh
1082 # PORTAL instantiation
1083 portal_private_port:
1084 type: OS::Neutron::Port
1086 network: { get_resource: oam_onap }
1087 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1090 type: OS::Nova::Server
1092 image: { get_param: ubuntu_1404_image }
1093 flavor: { get_param: flavor_large }
1096 template: base-portal
1098 base: { get_param: vm_base_name }
1099 key_name: { get_resource: vm_key }
1101 - network: { get_param: public_net_id }
1102 - port: { get_resource: portal_private_port }
1103 user_data_format: RAW
1107 __nexus_repo__: { get_param: nexus_repo }
1108 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1109 __nexus_username__: { get_param: nexus_username }
1110 __nexus_password__: { get_param: nexus_password }
1111 __artifacts_version__: { get_param: artifacts_version }
1112 __portal_ip_addr__: { get_param: portal_ip_addr }
1113 __dns_ip_addr__: { get_param: dns_ip_addr }
1114 __oam_network_cidr__: { get_param: oam_network_cidr }
1115 __docker_version__: { get_param: portal_docker }
1116 __gerrit_branch__: { get_param: portal_branch }
1117 __cloud_env__: { get_param: cloud_env }
1118 __cli_docker__: { get_param: cli_docker }
1119 __external_dns__: { get_param: external_dns }
1120 __portal_repo__: { get_param: portal_repo }
1124 # Create configuration files
1125 mkdir -p /opt/config
1126 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1127 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1128 echo "__nexus_username__" > /opt/config/nexus_username.txt
1129 echo "__nexus_password__" > /opt/config/nexus_password.txt
1130 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1131 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1132 echo "__portal_ip_addr__" > /opt/config/local_ip_addr.txt
1133 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1134 echo "__docker_version__" > /opt/config/docker_version.txt
1135 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1136 echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1137 echo "__cloud_env__" > /opt/config/cloud_env.txt
1138 echo "__external_dns__" > /opt/config/external_dns.txt
1139 echo "__portal_repo__" > /opt/config/remote_repo.txt
1141 # Download and run install script
1142 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1144 chmod +x portal_install.sh
1148 # DCAE Controller instantiation
1149 # dcae_c_private_port:
1150 # type: OS::Neutron::Port
1152 # network: { get_resource: oam_onap }
1153 # fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1156 # type: OS::Nova::Server
1158 # image: { get_param: ubuntu_1404_image }
1159 # flavor: { get_param: flavor_medium }
1162 # template: base-dcae-controller
1164 # base: { get_param: vm_base_name }
1165 # key_name: { get_resource: vm_key }
1167 # - network: { get_param: public_net_id }
1168 # - port: { get_resource: dcae_c_private_port }
1169 # user_data_format: RAW
1173 # __nexus_repo__: { get_param: nexus_repo }
1174 # __nexus_docker_repo__: { get_param: nexus_docker_repo }
1175 # __nexus_username__: { get_param: nexus_username }
1176 # __nexus_password__: { get_param: nexus_password }
1177 # __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1178 # __gitlab_branch__: { get_param: gitlab_branch }
1179 # __dns_ip_addr__: { get_param: dns_ip_addr }
1180 # __oam_network_cidr__: { get_param: oam_network_cidr }
1181 # __dcae_zone__: { get_param: dcae_zone }
1182 # __dcae_state__: { get_param: dcae_state }
1183 # __artifacts_version__: { get_param: artifacts_version }
1184 # __tenant_id__: { get_param: openstack_tenant_id }
1185 # __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1186 # __openstack_user__: { get_param: openstack_username }
1187 # __openstack_password__: { get_param: openstack_api_key }
1188 # __openstack_auth_method__: { get_param: openstack_auth_method }
1189 # __key_name__: { get_param: key_name }
1190 # __rand_str__: { get_resource: random-str }
1191 # __pub_key__: { get_param: pub_key }
1192 # __nexus_repo_root__: { get_param: nexus_repo_root }
1193 # __openstack_region__: { get_param: openstack_region }
1194 # __horizon_url__: { get_param: horizon_url }
1195 # __keystone_url__: { get_param: keystone_url }
1196 # __docker_version__: { get_param: dcae_docker }
1197 # __gerrit_branch__: { get_param: dcae_branch }
1198 # __dcae_code_version__: { get_param: dcae_code_version }
1199 # __cloud_env__: { get_param: cloud_env }
1200 # __public_net_id__: { get_param: public_net_id }
1201 # __dcae_base_environment__: { get_param: dcae_base_environment }
1202 # __dcae_ip_addr__: { get_param: dcae_ip_addr }
1203 # __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1204 # __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1205 # __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1206 # __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1207 # __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1208 # __external_dns__: { get_param: external_dns }
1209 # __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1210 # __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1211 # __flavor_small__: { get_param: flavor_small }
1212 # __flavor_medium__: { get_param: flavor_medium }
1213 # __flavor_large__: { get_param: flavor_large }
1214 # __flavor_xlarge__: { get_param: flavor_xlarge }
1215 # __dcae_repo__: { get_param: dcae_repo }
1216 # __mr_repo__: { get_param: mr_repo }
1220 # Create configuration files
1221 # mkdir -p /opt/config
1222 # echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1223 # echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1224 # echo "__nexus_username__" > /opt/config/nexus_username.txt
1225 # echo "__nexus_password__" > /opt/config/nexus_password.txt
1226 # echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1227 # echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1228 # echo "__docker_version__" > /opt/config/docker_version.txt
1229 # echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1230 # echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1231 # echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1232 # echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1233 # echo "__dcae_state__" > /opt/config/dcae_state.txt
1234 # echo "__tenant_id__" > /opt/config/tenant_id.txt
1235 # echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1236 # echo "__openstack_user__" > /opt/config/openstack_user.txt
1237 # echo "__openstack_password__" > /opt/config/openstack_password.txt
1238 # echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1239 # echo "__key_name__" > /opt/config/key_name.txt
1240 # echo "__rand_str__" > /opt/config/rand_str.txt
1241 # echo "__pub_key__" > /opt/config/pub_key.txt
1242 # echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1243 # echo "__openstack_region__" > /opt/config/openstack_region.txt
1244 # echo "__horizon_url__" > /opt/config/horizon_url.txt
1245 # echo "__keystone_url__" > /opt/config/keystone_url.txt
1246 # echo "__cloud_env__" > /opt/config/cloud_env.txt
1247 # echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1248 # echo "__public_net_id__" > /opt/config/public_net_id.txt
1249 # echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1250 # echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1251 # echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1252 # echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1253 # echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1254 # echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1255 # echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1256 # echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1257 # echo "__external_dns__" > /opt/config/external_dns.txt
1258 # echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1259 # echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1260 # echo "__flavor_small__" > /opt/config/flavor_small.txt
1261 # echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1262 # echo "__flavor_large__" > /opt/config/flavor_large.txt
1263 # echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1264 # echo "__dcae_repo__" > /opt/config/remote_repo.txt
1265 # echo "__mr_repo__" > /opt/config/mr_repo.txt
1267 # Download and run install script
1268 # curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1270 # chmod +x dcae_install.sh
1274 # Policy Engine instantiation
1275 policy_private_port:
1276 type: OS::Neutron::Port
1278 network: { get_resource: oam_onap }
1279 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1282 type: OS::Nova::Server
1284 image: { get_param: ubuntu_1404_image }
1285 flavor: { get_param: flavor_xlarge }
1288 template: base-policy
1290 base: { get_param: vm_base_name }
1291 key_name: { get_resource: vm_key }
1293 - network: { get_param: public_net_id }
1294 - port: { get_resource: policy_private_port }
1295 user_data_format: RAW
1299 __nexus_repo__: { get_param: nexus_repo }
1300 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1301 __nexus_username__: { get_param: nexus_username }
1302 __nexus_password__: { get_param: nexus_password }
1303 __artifacts_version__: { get_param: artifacts_version }
1304 __policy_ip_addr__: { get_param: policy_ip_addr }
1305 __dns_ip_addr__: { get_param: dns_ip_addr }
1306 __oam_network_cidr__: { get_param: oam_network_cidr }
1307 __docker_version__: { get_param: policy_docker }
1308 __gerrit_branch__: { get_param: policy_branch }
1309 __cloud_env__: { get_param: cloud_env }
1310 __external_dns__: { get_param: external_dns }
1311 __policy_repo__: { get_param: policy_repo }
1315 # Create configuration files
1316 mkdir -p /opt/config
1317 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1318 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1319 echo "__nexus_username__" > /opt/config/nexus_username.txt
1320 echo "__nexus_password__" > /opt/config/nexus_password.txt
1321 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1322 echo "__policy_ip_addr__" > /opt/config/local_ip_addr.txt
1323 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1324 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1325 echo "__docker_version__" > /opt/config/docker_version.txt
1326 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1327 echo "__cloud_env__" > /opt/config/cloud_env.txt
1328 echo "__external_dns__" > /opt/config/external_dns.txt
1329 echo "__policy_repo__" > /opt/config/remote_repo.txt
1331 # Download and run install script
1332 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1334 chmod +x policy_install.sh
1338 # APP-C instantiation
1340 type: OS::Neutron::Port
1342 network: { get_resource: oam_onap }
1343 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1346 type: OS::Nova::Server
1348 image: { get_param: ubuntu_1404_image }
1349 flavor: { get_param: flavor_large }
1354 base: { get_param: vm_base_name }
1355 key_name: { get_resource: vm_key }
1357 - network: { get_param: public_net_id }
1358 - port: { get_resource: appc_private_port }
1359 user_data_format: RAW
1363 __nexus_repo__: { get_param: nexus_repo }
1364 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1365 __nexus_username__: { get_param: nexus_username }
1366 __nexus_password__: { get_param: nexus_password }
1367 __dmaap_topic__: { get_param: dmaap_topic }
1368 __artifacts_version__: { get_param: artifacts_version }
1369 __appc_ip_addr__: { get_param: appc_ip_addr }
1370 __dns_ip_addr__: { get_param: dns_ip_addr }
1371 __oam_network_cidr__: { get_param: oam_network_cidr }
1372 __docker_version__: { get_param: appc_docker }
1373 __gerrit_branch__: { get_param: appc_branch }
1374 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1375 __cloud_env__: { get_param: cloud_env }
1376 __external_dns__: { get_param: external_dns }
1377 __appc_repo__: { get_param: appc_repo }
1381 # Create configuration files
1382 mkdir -p /opt/config
1383 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1384 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1385 echo "__nexus_username__" > /opt/config/nexus_username.txt
1386 echo "__nexus_password__" > /opt/config/nexus_password.txt
1387 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1388 echo "__appc_ip_addr__" > /opt/config/local_ip_addr.txt
1389 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1390 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1391 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1392 echo "__docker_version__" > /opt/config/docker_version.txt
1393 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1394 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1395 echo "__cloud_env__" > /opt/config/cloud_env.txt
1396 echo "__external_dns__" > /opt/config/external_dns.txt
1397 echo "__appc_repo__" > /opt/config/remote_repo.txt
1399 # Download and run install script
1400 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1402 chmod +x appc_install.sh
1406 # CLAMP instantiation
1408 type: OS::Neutron::Port
1410 network: { get_resource: oam_onap }
1411 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1414 type: OS::Nova::Server
1416 image: { get_param: ubuntu_1604_image }
1417 flavor: { get_param: flavor_medium }
1420 template: base-clamp
1422 base: { get_param: vm_base_name }
1423 key_name: { get_resource: vm_key }
1425 - network: { get_param: public_net_id }
1426 - port: { get_resource: clamp_private_port }
1427 user_data_format: RAW
1431 __nexus_repo__: { get_param: nexus_repo }
1432 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1433 __nexus_username__: { get_param: nexus_username }
1434 __nexus_password__: { get_param: nexus_password }
1435 __openstack_username__: { get_param: openstack_username }
1436 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1437 __openstack_api_key__: { get_param: openstack_api_key }
1438 __openstack_region__: { get_param: openstack_region }
1439 __keystone_url__: { get_param: keystone_url }
1440 __dmaap_topic__: { get_param: dmaap_topic }
1441 __artifacts_version__: { get_param: artifacts_version }
1442 __dns_ip_addr__: { get_param: dns_ip_addr }
1443 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1444 __oam_network_cidr__: { get_param: oam_network_cidr }
1445 __docker_version__: { get_param: clamp_docker }
1446 __gerrit_branch__: { get_param: clamp_branch }
1447 __cloud_env__: { get_param: cloud_env }
1448 __external_dns__: { get_param: external_dns }
1449 __clamp_repo__: { get_param: clamp_repo }
1453 # Create configuration files
1454 mkdir -p /opt/config
1455 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1456 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1457 echo "__nexus_username__" > /opt/config/nexus_username.txt
1458 echo "__nexus_password__" > /opt/config/nexus_password.txt
1459 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1460 echo "__clamp_ip_addr__" > /opt/config/local_ip_addr.txt
1461 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1462 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1463 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1464 echo "__openstack_username__" > /opt/config/openstack_username.txt
1465 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1466 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1467 echo "__openstack_region__" > /opt/config/openstack_region.txt
1468 echo "__keystone_url__" > /opt/config/keystone.txt
1469 echo "__docker_version__" > /opt/config/docker_version.txt
1470 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1471 echo "__cloud_env__" > /opt/config/cloud_env.txt
1472 echo "__external_dns__" > /opt/config/external_dns.txt
1473 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1475 # Download and run install script
1476 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1478 chmod +x clamp_install.sh
1482 # OPEN-O VM instantiation
1484 type: OS::Neutron::Port
1486 network: { get_resource: oam_onap }
1487 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1490 type: OS::Nova::Server
1492 image: { get_param: ubuntu_1604_image }
1493 flavor: { get_param: flavor_xxlarge }
1496 template: base-openo-server
1498 base: { get_param: vm_base_name }
1499 key_name: { get_resource: vm_key }
1501 - network: { get_param: public_net_id }
1502 - port: { get_resource: openo_private_port }
1503 user_data_format: RAW
1507 __nexus_repo__: { get_param: nexus_repo }
1508 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1509 __nexus_username__: { get_param: nexus_username }
1510 __nexus_password__: { get_param: nexus_password }
1511 __artifacts_version__: { get_param: artifacts_version }
1512 __dns_ip_addr__: { get_param: dns_ip_addr }
1513 __oam_network_cidr__: { get_param: oam_network_cidr }
1514 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1515 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1516 __appc_ip_addr__: { get_param: appc_ip_addr }
1517 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1518 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1519 __so_ip_addr__: { get_param: so_ip_addr }
1520 __mr_ip_addr__: { get_param: mr_ip_addr }
1521 __policy_ip_addr__: { get_param: policy_ip_addr }
1522 __portal_ip_addr__: { get_param: portal_ip_addr }
1523 __robot_ip_addr__: { get_param: robot_ip_addr }
1524 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1525 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1526 __vid_ip_addr__: { get_param: vid_ip_addr }
1527 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1528 __openo_ip_addr__: { get_param: openo_ip_addr }
1529 __cloud_env__: { get_param: cloud_env }
1530 __external_dns__: { get_param: external_dns }
1531 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1532 __msb_docker__: { get_param: msb_docker }
1533 __mvim_docker__: { get_param: mvim_docker }
1534 __vfc_docker__: { get_param: vfc_docker }
1535 __uui_docker__: { get_param: uui_docker }
1536 __esr_docker__: { get_param: esr_docker }
1537 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1541 # Create configuration files
1542 mkdir -p /opt/config
1543 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1544 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1545 echo "__nexus_username__" > /opt/config/nexus_username.txt
1546 echo "__nexus_password__" > /opt/config/nexus_password.txt
1547 echo "__cloud_env__" > /opt/config/cloud_env.txt
1548 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1549 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1550 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1551 echo "__external_dns__" > /opt/config/external_dns.txt
1552 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1553 echo "__msb_docker__" > /opt/config/msb_docker.txt
1554 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1555 echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1556 echo "__uui_docker__" > /opt/config/uui_docker.txt
1557 echo "__esr_docker__" > /opt/config/esr_docker.txt
1558 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1560 # Create env file with the IP address of all ONAP components
1561 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1562 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1563 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1564 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1565 echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1566 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1567 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1568 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1569 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1570 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1571 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1572 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1573 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1574 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1575 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1577 # Download and run install script
1578 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1580 chmod +x openo_install.sh
1584 # DCAE GEN 2 Controller instantiation
1585 dcae_c_private_port:
1586 type: OS::Neutron::Port
1588 network: { get_resource: oam_onap }
1589 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1592 type: OS::Nova::Server
1594 image: { get_param: ubuntu_1604_image }
1595 flavor: { get_param: flavor_medium }
1598 template: base-dcae-controller
1600 base: { get_param: vm_base_name }
1601 key_name: { get_resource: dcae_vm_key }
1603 - network: { get_param: public_net_id }
1604 - port: { get_resource: dcae_c_private_port }
1605 user_data_format: RAW
1609 __nexus_repo__: { get_param: nexus_repo }
1610 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1611 __nexus_username__: { get_param: nexus_username }
1612 __nexus_password__: { get_param: nexus_password }
1613 __dns_ip_addr__: { get_param: dns_ip_addr }
1614 __dcae_zone__: { get_param: dcae_zone }
1615 __artifacts_version__: { get_param: artifacts_version }
1616 __tenant_id__: { get_param: openstack_tenant_id }
1617 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1618 __openstack_user__: { get_param: openstack_username }
1619 __openstack_password__: { get_param: openstack_api_key }
1620 __key_name__: { get_param: dcae_key_name }
1621 __pub_key__: { get_param: dcae_pub_key }
1622 __private_key__: { get_attr: [ dcae_vm_key, private_key ] }
1623 __openstack_region__: { get_param: openstack_region }
1624 __keystone_url__: { get_param: keystone_url }
1625 __docker_version__: { get_param: dcae_docker }
1626 __dcae_repo__: { get_param: dcae_repo }
1627 __gerrit_branch__: { get_param: dcae_branch }
1628 __cloud_env__: { get_param: cloud_env }
1629 __public_net_id__: { get_param: public_net_id }
1630 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1631 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1632 __external_dns__: { get_param: external_dns }
1633 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1634 __centos_7_image__: { get_param: centos_7_image }
1635 __security_group__ : { get_param: security_group }
1636 __flavor_medium__: { get_param: flavor_medium }
1637 __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1638 __rand_str__: { get_resource: random-str }
1643 # Create configuration files
1644 mkdir -p /opt/config
1645 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1646 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1647 echo "__nexus_username__" > /opt/config/nexus_username.txt
1648 echo "__nexus_password__" > /opt/config/nexus_password.txt
1649 echo "__docker_version__" > /opt/config/docker_version.txt
1650 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1651 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1652 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1653 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1654 echo "__tenant_id__" > /opt/config/tenant_id.txt
1655 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1656 echo "__openstack_user__" > /opt/config/openstack_user.txt
1657 echo "__openstack_password__" > /opt/config/openstack_password.txt
1658 echo "__key_name__" > /opt/config/key_name.txt
1659 echo "__pub_key__" > /opt/config/pub_key.txt
1660 echo "__private_key__" > /opt/config/priv_key
1661 echo "__openstack_region__" > /opt/config/openstack_region.txt
1662 echo "__keystone_url__" > /opt/config/keystone_url.txt
1663 echo "__cloud_env__" > /opt/config/cloud_env.txt
1664 echo "__public_net_id__" > /opt/config/public_net_id.txt
1665 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1666 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1667 echo "__external_dns__" > /opt/config/external_dns.txt
1668 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1669 echo "__centos_7_image__" > /opt/config/centos_7_image.txt
1670 echo "__security_group__" > /opt/config/security_group.txt
1671 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1672 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1673 echo "__mac_addr__" > /opt/config/mac_addr.txt
1674 echo "__rand_str__" > /opt/config/rand_str.txt
1676 # Download and run install script
1677 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1679 chmod +x dcae2_install.sh