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: 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 ################################
362 type: OS::Heat::RandomString
367 # Public key used to access ONAP components
369 type: OS::Nova::KeyPair
375 base: { get_param: key_name }
376 rand: { get_resource: random-str }
377 public_key: { get_param: pub_key }
378 save_private_key: false
380 # Public key used to access DCAE GEN 2
382 type: OS::Nova::KeyPair
388 base: { get_param: dcae_key_name }
389 rand: { get_resource: random-str }
390 public_key: { get_param: dcae_pub_key }
391 save_private_key: true
393 # ONAP management private network
395 type: OS::Neutron::Net
399 template: oam_onap_rand
401 rand: { get_resource: random-str }
404 type: OS::Neutron::Subnet
408 template: oam_onap_rand
410 rand: { get_resource: random-str }
411 network_id: { get_resource: oam_onap }
412 cidr: { get_param: oam_network_cidr }
415 # DNS Server instantiation
417 type: OS::Neutron::Port
419 network: { get_resource: oam_onap }
420 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
423 type: OS::Nova::Server
425 image: { get_param: ubuntu_1404_image }
426 flavor: { get_param: flavor_small }
429 template: base-dns-server
431 base: { get_param: vm_base_name }
432 key_name: { get_resource: vm_key }
434 - network: { get_param: public_net_id }
435 - port: { get_resource: dns_private_port }
436 user_data_format: RAW
440 __nexus_repo__: { get_param: nexus_repo }
441 __artifacts_version__: { get_param: artifacts_version }
442 __oam_network_cidr__: { get_param: oam_network_cidr }
443 __dns_ip_addr__: { get_param: dns_ip_addr }
444 __aai1_ip_addr__: { get_param: aai1_ip_addr }
445 __aai2_ip_addr__: { get_param: aai2_ip_addr }
446 __appc_ip_addr__: { get_param: appc_ip_addr }
447 __dcae_ip_addr__: { get_param: dcae_ip_addr }
448 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
449 __so_ip_addr__: { get_param: so_ip_addr }
450 __mr_ip_addr__: { get_param: mr_ip_addr }
451 __policy_ip_addr__: { get_param: policy_ip_addr }
452 __portal_ip_addr__: { get_param: portal_ip_addr }
453 __robot_ip_addr__: { get_param: robot_ip_addr }
454 __sdc_ip_addr__: { get_param: sdc_ip_addr }
455 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
456 __vid_ip_addr__: { get_param: vid_ip_addr }
457 __clamp_ip_addr__: { get_param: clamp_ip_addr }
458 __openo_ip_addr__: { get_param: openo_ip_addr }
459 __cloud_env__: { get_param: cloud_env }
460 __external_dns__: { get_param: external_dns }
464 # Create configuration files
466 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
467 echo "__cloud_env__" > /opt/config/cloud_env.txt
468 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
469 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
470 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
471 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
472 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
473 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
474 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
475 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
476 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
477 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
478 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
479 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
480 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
481 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
482 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
483 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
484 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
485 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
486 echo "__external_dns__" > /opt/config/external_dns.txt
488 # Download and run install script
489 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
491 chmod +x dns_install.sh
495 # A&AI instantiation (2 VMs)
497 type: OS::Neutron::Port
499 network: { get_resource: oam_onap }
500 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
503 type: OS::Nova::Server
506 image: { get_param: ubuntu_1404_image }
507 flavor: { get_param: flavor_xlarge }
510 template: base-aai-inst1
512 base: { get_param: vm_base_name }
513 key_name: { get_resource: vm_key }
515 - network: { get_param: public_net_id }
516 - port: { get_resource: aai1_private_port }
517 user_data_format: RAW
521 __nexus_repo__: { get_param: nexus_repo }
522 __nexus_docker_repo__: { get_param: nexus_docker_repo }
523 __nexus_username__: { get_param: nexus_username }
524 __nexus_password__: { get_param: nexus_password }
525 __dmaap_topic__: { get_param: dmaap_topic }
526 __artifacts_version__: { get_param: artifacts_version }
527 __dns_ip_addr__: { get_param: dns_ip_addr }
528 __aai_ip_addr__: { get_param: aai1_ip_addr }
529 __oam_network_cidr__: { get_param: oam_network_cidr }
530 __docker_version__: { get_param: aai_docker }
531 __gerrit_branch__: { get_param: aai_branch }
532 __cloud_env__: { get_param: cloud_env }
533 __external_dns__: { get_param: external_dns }
534 __aai_repo__: { get_param: aai_repo }
538 # Create configuration files
540 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
541 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
542 echo "__nexus_username__" > /opt/config/nexus_username.txt
543 echo "__nexus_password__" > /opt/config/nexus_password.txt
544 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
545 echo "__aai_ip_addr__" > /opt/config/local_ip_addr.txt
546 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
547 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
548 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
549 echo "__docker_version__" > /opt/config/docker_version.txt
550 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
551 echo "aai_instance_1" > /opt/config/aai_instance.txt
552 echo "__cloud_env__" > /opt/config/cloud_env.txt
553 echo "__external_dns__" > /opt/config/external_dns.txt
554 echo "__aai_repo__" > /opt/config/remote_repo.txt
556 # Download and run install script
557 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
559 chmod +x aai_install.sh
564 type: OS::Neutron::Port
566 network: { get_resource: oam_onap }
567 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
570 type: OS::Nova::Server
572 image: { get_param: ubuntu_1404_image }
573 flavor: { get_param: flavor_xlarge }
576 template: base-aai-inst2
578 base: { get_param: vm_base_name }
579 key_name: { get_resource: vm_key }
581 - network: { get_param: public_net_id }
582 - port: { get_resource: aai2_private_port }
583 user_data_format: RAW
587 __nexus_repo__: { get_param: nexus_repo }
588 __nexus_docker_repo__: { get_param: nexus_docker_repo }
589 __nexus_username__: { get_param: nexus_username }
590 __nexus_password__: { get_param: nexus_password }
591 __dmaap_topic__: { get_param: dmaap_topic }
592 __artifacts_version__: { get_param: artifacts_version }
593 __dns_ip_addr__: { get_param: dns_ip_addr }
594 __aai_ip_addr__: { get_param: aai2_ip_addr }
595 __oam_network_cidr__: { get_param: oam_network_cidr }
596 __docker_version__: { get_param: aai_docker }
597 __gerrit_branch__: { get_param: aai_branch }
598 __cloud_env__: { get_param: cloud_env }
599 __external_dns__: { get_param: external_dns }
600 __aai_repo__: { get_param: aai_repo }
604 # Create configuration files
606 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
607 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
608 echo "__nexus_username__" > /opt/config/nexus_username.txt
609 echo "__nexus_password__" > /opt/config/nexus_password.txt
610 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
611 echo "__aai_ip_addr__" > /opt/config/local_ip_addr.txt
612 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
613 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
614 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
615 echo "__docker_version__" > /opt/config/docker_version.txt
616 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
617 echo "aai_instance_2" > /opt/config/aai_instance.txt
618 echo "__cloud_env__" > /opt/config/cloud_env.txt
619 echo "__external_dns__" > /opt/config/external_dns.txt
620 echo "__aai_repo__" > /opt/config/remote_repo.txt
622 # Download and run install script
623 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
625 chmod +x aai_install.sh
631 type: OS::Neutron::Port
633 network: { get_resource: oam_onap }
634 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
637 type: OS::Nova::Server
639 image: { get_param: ubuntu_1604_image }
640 flavor: { get_param: flavor_large }
645 base: { get_param: vm_base_name }
646 key_name: { get_resource: vm_key }
648 - network: { get_param: public_net_id }
649 - port: { get_resource: so_private_port }
650 user_data_format: RAW
654 __nexus_repo__: { get_param: nexus_repo }
655 __nexus_docker_repo__: { get_param: nexus_docker_repo }
656 __nexus_username__: { get_param: nexus_username }
657 __nexus_password__: { get_param: nexus_password }
658 __openstack_username__: { get_param: openstack_username }
659 __openstack_tenant_id__: { get_param: openstack_tenant_id }
660 __openstack_api_key__: { get_param: openstack_api_key }
661 __openstack_region__: { get_param: openstack_region }
662 __keystone_url__: { get_param: keystone_url }
663 __dmaap_topic__: { get_param: dmaap_topic }
664 __artifacts_version__: { get_param: artifacts_version }
665 __dns_ip_addr__: { get_param: dns_ip_addr }
666 __so_ip_addr__: { get_param: so_ip_addr }
667 __oam_network_cidr__: { get_param: oam_network_cidr }
668 __docker_version__: { get_param: so_docker }
669 __gerrit_branch__: { get_param: so_branch }
670 __cloud_env__: { get_param: cloud_env }
671 __external_dns__: { get_param: external_dns }
672 __so_repo__: { get_param: so_repo }
676 # Create configuration files
678 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
679 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
680 echo "__nexus_username__" > /opt/config/nexus_username.txt
681 echo "__nexus_password__" > /opt/config/nexus_password.txt
682 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
683 echo "__so_ip_addr__" > /opt/config/local_ip_addr.txt
684 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
685 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
686 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
687 echo "__openstack_username__" > /opt/config/openstack_username.txt
688 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
689 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
690 echo "__openstack_region__" > /opt/config/openstack_region.txt
691 echo "__keystone_url__" > /opt/config/keystone.txt
692 echo "__docker_version__" > /opt/config/docker_version.txt
693 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
694 echo "__cloud_env__" > /opt/config/cloud_env.txt
695 echo "__external_dns__" > /opt/config/external_dns.txt
696 echo "__so_repo__" > /opt/config/remote_repo.txt
698 # Download and run install script
699 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
701 chmod +x so_install.sh
705 # Message Router instantiation
706 mrouter_private_port:
707 type: OS::Neutron::Port
709 network: { get_resource: oam_onap }
710 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
713 type: OS::Nova::Server
715 image: { get_param: ubuntu_1404_image }
716 flavor: { get_param: flavor_large }
719 template: base-message-router
721 base: { get_param: vm_base_name }
722 key_name: { get_resource: vm_key }
724 - network: { get_param: public_net_id }
725 - port: { get_resource: mrouter_private_port }
726 user_data_format: RAW
730 __nexus_repo__: { get_param: nexus_repo }
731 __nexus_docker_repo__: { get_param: nexus_docker_repo }
732 __nexus_username__: { get_param: nexus_username }
733 __nexus_password__: { get_param: nexus_password }
734 __artifacts_version__: { get_param: artifacts_version }
735 __mr_ip_addr__: { get_param: mr_ip_addr }
736 __dns_ip_addr__: { get_param: dns_ip_addr }
737 __oam_network_cidr__: { get_param: oam_network_cidr }
738 __gerrit_branch__: { get_param: mr_gerrit }
739 __cloud_env__: { get_param: cloud_env }
740 __external_dns__: { get_param: external_dns }
741 __mr_repo__: { get_param: mr_repo }
745 # Create configuration files
747 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
748 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
749 echo "__nexus_username__" > /opt/config/nexus_username.txt
750 echo "__nexus_password__" > /opt/config/nexus_password.txt
751 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
752 echo "__mr_ip_addr__" > /opt/config/local_ip_addr.txt
753 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
754 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
755 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
756 echo "__cloud_env__" > /opt/config/cloud_env.txt
757 echo "__external_dns__" > /opt/config/external_dns.txt
758 echo "__mr_repo__" > /opt/config/remote_repo.txt
760 # Download and run install script
761 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
763 chmod +x mr_install.sh
767 # Robot Framework instantiation
769 type: OS::Neutron::Port
771 network: { get_resource: oam_onap }
772 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
775 type: OS::Nova::Server
777 image: { get_param: ubuntu_1604_image }
778 flavor: { get_param: flavor_medium }
783 base: { get_param: vm_base_name }
784 key_name: { get_resource: vm_key }
786 - network: { get_param: public_net_id }
787 - port: { get_resource: robot_private_port }
788 user_data_format: RAW
792 __nexus_repo__: { get_param: nexus_repo }
793 __nexus_docker_repo__: { get_param: nexus_docker_repo }
794 __nexus_username__: { get_param: nexus_username }
795 __nexus_password__: { get_param: nexus_password }
796 __network_name__: { get_attr: [oam_onap, name] }
797 __openstack_username__: { get_param: openstack_username }
798 __openstack_api_key__: { get_param : openstack_api_key }
799 __openstack_tenant_id__: { get_param: openstack_tenant_id }
800 __artifacts_version__: { get_param: artifacts_version }
801 __openstack_region__: { get_param: openstack_region }
802 __robot_ip_addr__: { get_param: robot_ip_addr }
803 __dns_ip_addr__: { get_param: dns_ip_addr }
804 __oam_network_cidr__: { get_param: oam_network_cidr }
805 __docker_version__: { get_param: robot_docker }
806 __gerrit_branch__: { get_param: robot_branch }
807 __keystone_url__: { get_param: keystone_url }
808 __aai1_ip_addr__: { get_param: aai1_ip_addr }
809 __aai2_ip_addr__: { get_param: aai2_ip_addr }
810 __appc_ip_addr__: { get_param: appc_ip_addr }
811 __dcae_ip_addr__: { get_param: dcae_ip_addr }
812 __so_ip_addr__: { get_param: so_ip_addr }
813 __mr_ip_addr__: { get_param: mr_ip_addr }
814 __policy_ip_addr__: { get_param: policy_ip_addr }
815 __portal_ip_addr__: { get_param: portal_ip_addr }
816 __sdc_ip_addr__: { get_param: sdc_ip_addr }
817 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
818 __vid_ip_addr__: { get_param: vid_ip_addr }
819 __clamp_ip_addr__: { get_param: clamp_ip_addr }
820 __openo_ip_addr__: { get_param: openo_ip_addr }
821 __cloud_env__: { get_param: cloud_env }
822 __external_dns__: { get_param: external_dns }
823 __vm_image_name__: { get_param: ubuntu_1404_image }
824 __vm_flavor__: { get_param: flavor_medium }
825 __robot_repo__: { get_param: robot_repo }
829 # Create configuration files
831 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
832 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
833 echo "__nexus_username__" > /opt/config/nexus_username.txt
834 echo "__nexus_password__" > /opt/config/nexus_password.txt
835 echo "__network_name__" > /opt/config/network.txt
836 echo "__openstack_username__" > /opt/config/openstack_username.txt
837 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
838 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
839 echo "__openstack_region__" > /opt/config/region.txt
840 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
841 echo "__robot_ip_addr__" > /opt/config/local_ip_addr.txt
842 echo "__docker_version__" > /opt/config/docker_version.txt
843 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
844 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
845 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
846 echo "__keystone_url__" > /opt/config/keystone.txt
847 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
848 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
849 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
850 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
851 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
852 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
853 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
854 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
855 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
856 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
857 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
858 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
859 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
860 echo "__cloud_env__" > /opt/config/cloud_env.txt
861 echo "__external_dns__" > /opt/config/external_dns.txt
862 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
863 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
864 echo "__robot_repo__" > /opt/config/remote_repo.txt
866 # Download and run install script
867 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
869 chmod +x robot_install.sh
875 type: OS::Neutron::Port
877 network: { get_resource: oam_onap }
878 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
881 type: OS::Nova::Server
883 image: { get_param: ubuntu_1404_image }
884 flavor: { get_param: flavor_medium }
889 base: { get_param: vm_base_name }
890 key_name: { get_resource: vm_key }
892 - network: { get_param: public_net_id }
893 - port: { get_resource: vid_private_port }
894 user_data_format: RAW
898 __nexus_repo__: { get_param: nexus_repo }
899 __nexus_docker_repo__: { get_param: nexus_docker_repo }
900 __nexus_username__: { get_param: nexus_username }
901 __nexus_password__: { get_param: nexus_password }
902 __artifacts_version__: { get_param: artifacts_version }
903 __vid_ip_addr__: { get_param: vid_ip_addr }
904 __dns_ip_addr__: { get_param: dns_ip_addr }
905 __oam_network_cidr__: { get_param: oam_network_cidr }
906 __docker_version__: { get_param: vid_docker }
907 __gerrit_branch__: { get_param: vid_branch }
908 __cloud_env__: { get_param: cloud_env }
909 __external_dns__: { get_param: external_dns }
910 __vid_repo__: { get_param: vid_repo }
914 # Create configuration files
916 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
917 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
918 echo "__nexus_username__" > /opt/config/nexus_username.txt
919 echo "__nexus_password__" > /opt/config/nexus_password.txt
920 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
921 echo "__vid_ip_addr__" > /opt/config/local_ip_addr.txt
922 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
923 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
924 echo "__docker_version__" > /opt/config/docker_version.txt
925 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
926 echo "__cloud_env__" > /opt/config/cloud_env.txt
927 echo "__external_dns__" > /opt/config/external_dns.txt
928 echo "__vid_repo__" > /opt/config/remote_repo.txt
930 # Download and run install script
931 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
933 chmod +x vid_install.sh
937 # SDN-C instantiation
939 type: OS::Neutron::Port
941 network: { get_resource: oam_onap }
942 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
945 type: OS::Nova::Server
947 image: { get_param: ubuntu_1404_image }
948 flavor: { get_param: flavor_large }
953 base: { get_param: vm_base_name }
954 key_name: { get_resource: vm_key }
956 - network: { get_param: public_net_id }
957 - port: { get_resource: sdnc_private_port }
958 user_data_format: RAW
962 __nexus_repo__: { get_param: nexus_repo }
963 __nexus_docker_repo__: { get_param: nexus_docker_repo }
964 __nexus_username__: { get_param: nexus_username }
965 __nexus_password__: { get_param: nexus_password }
966 __artifacts_version__: { get_param: artifacts_version }
967 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
968 __dns_ip_addr__: { get_param: dns_ip_addr }
969 __oam_network_cidr__: { get_param: oam_network_cidr }
970 __docker_version__: { get_param: sdnc_docker }
971 __gerrit_branch__: { get_param: sdnc_branch }
972 __dgbuilder_docker__: { get_param: dgbuilder_docker }
973 __cloud_env__: { get_param: cloud_env }
974 __external_dns__: { get_param: external_dns }
975 __sdnc_repo__: { get_param: sdnc_repo }
979 # Create configuration files
981 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
982 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
983 echo "__nexus_username__" > /opt/config/nexus_username.txt
984 echo "__nexus_password__" > /opt/config/nexus_password.txt
985 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
986 echo "__sdnc_ip_addr__" > /opt/config/local_ip_addr.txt
987 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
988 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
989 echo "__docker_version__" > /opt/config/docker_version.txt
990 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
991 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
992 echo "__cloud_env__" > /opt/config/cloud_env.txt
993 echo "__external_dns__" > /opt/config/external_dns.txt
994 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
996 # Download and run install script
997 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
999 chmod +x sdnc_install.sh
1005 type: OS::Neutron::Port
1007 network: { get_resource: oam_onap }
1008 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1011 type: OS::Cinder::Volume
1017 type: OS::Nova::Server
1019 image: { get_param: ubuntu_1604_image }
1020 flavor: { get_param: flavor_xlarge }
1025 base: { get_param: vm_base_name }
1026 key_name: { get_resource: vm_key }
1028 - network: { get_param: public_net_id }
1029 - port: { get_resource: sdc_private_port }
1030 block_device_mapping:
1031 - device_name: /dev/vdb
1032 volume_id: { get_resource: sdc_volume_data }
1033 user_data_format: RAW
1037 __nexus_repo__: { get_param: nexus_repo }
1038 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1039 __nexus_username__: { get_param: nexus_username }
1040 __nexus_password__: { get_param: nexus_password }
1041 __env_name__: { get_param: dmaap_topic }
1042 __artifacts_version__: { get_param: artifacts_version }
1043 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1044 __dns_ip_addr__: { get_param: dns_ip_addr }
1045 __oam_network_cidr__: { get_param: oam_network_cidr }
1046 __mr_ip_addr__: { get_param: mr_ip_addr }
1047 __docker_version__: { get_param: sdc_docker }
1048 __gerrit_branch__: { get_param: sdc_branch }
1049 __cloud_env__: { get_param: cloud_env }
1050 __external_dns__: { get_param: external_dns }
1051 __sdc_repo__: { get_param: sdc_repo }
1055 # Create configuration files
1056 mkdir -p /opt/config
1057 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1058 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1059 echo "__nexus_username__" > /opt/config/nexus_username.txt
1060 echo "__nexus_password__" > /opt/config/nexus_password.txt
1061 echo "__env_name__" > /opt/config/env_name.txt
1062 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1063 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1064 echo "__sdc_ip_addr__" > /opt/config/local_ip_addr.txt
1065 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1066 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1067 echo "__docker_version__" > /opt/config/docker_version.txt
1068 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1069 echo "__cloud_env__" > /opt/config/cloud_env.txt
1070 echo "__external_dns__" > /opt/config/external_dns.txt
1071 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1073 # Download and run install script
1074 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1076 chmod +x sdc_install.sh
1080 # PORTAL instantiation
1081 portal_private_port:
1082 type: OS::Neutron::Port
1084 network: { get_resource: oam_onap }
1085 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1088 type: OS::Nova::Server
1090 image: { get_param: ubuntu_1404_image }
1091 flavor: { get_param: flavor_large }
1094 template: base-portal
1096 base: { get_param: vm_base_name }
1097 key_name: { get_resource: vm_key }
1099 - network: { get_param: public_net_id }
1100 - port: { get_resource: portal_private_port }
1101 user_data_format: RAW
1105 __nexus_repo__: { get_param: nexus_repo }
1106 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1107 __nexus_username__: { get_param: nexus_username }
1108 __nexus_password__: { get_param: nexus_password }
1109 __artifacts_version__: { get_param: artifacts_version }
1110 __portal_ip_addr__: { get_param: portal_ip_addr }
1111 __dns_ip_addr__: { get_param: dns_ip_addr }
1112 __oam_network_cidr__: { get_param: oam_network_cidr }
1113 __docker_version__: { get_param: portal_docker }
1114 __gerrit_branch__: { get_param: portal_branch }
1115 __cloud_env__: { get_param: cloud_env }
1116 __cli_docker__: { get_param: cli_docker }
1117 __external_dns__: { get_param: external_dns }
1118 __portal_repo__: { get_param: portal_repo }
1122 # Create configuration files
1123 mkdir -p /opt/config
1124 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1125 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1126 echo "__nexus_username__" > /opt/config/nexus_username.txt
1127 echo "__nexus_password__" > /opt/config/nexus_password.txt
1128 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1129 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1130 echo "__portal_ip_addr__" > /opt/config/local_ip_addr.txt
1131 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1132 echo "__docker_version__" > /opt/config/docker_version.txt
1133 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1134 echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1135 echo "__cloud_env__" > /opt/config/cloud_env.txt
1136 echo "__external_dns__" > /opt/config/external_dns.txt
1137 echo "__portal_repo__" > /opt/config/remote_repo.txt
1139 # Download and run install script
1140 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1142 chmod +x portal_install.sh
1146 # DCAE Controller instantiation
1147 # dcae_c_private_port:
1148 # type: OS::Neutron::Port
1150 # network: { get_resource: oam_onap }
1151 # fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1154 # type: OS::Nova::Server
1156 # image: { get_param: ubuntu_1404_image }
1157 # flavor: { get_param: flavor_medium }
1160 # template: base-dcae-controller
1162 # base: { get_param: vm_base_name }
1163 # key_name: { get_resource: vm_key }
1165 # - network: { get_param: public_net_id }
1166 # - port: { get_resource: dcae_c_private_port }
1167 # user_data_format: RAW
1171 # __nexus_repo__: { get_param: nexus_repo }
1172 # __nexus_docker_repo__: { get_param: nexus_docker_repo }
1173 # __nexus_username__: { get_param: nexus_username }
1174 # __nexus_password__: { get_param: nexus_password }
1175 # __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1176 # __gitlab_branch__: { get_param: gitlab_branch }
1177 # __dns_ip_addr__: { get_param: dns_ip_addr }
1178 # __oam_network_cidr__: { get_param: oam_network_cidr }
1179 # __dcae_zone__: { get_param: dcae_zone }
1180 # __dcae_state__: { get_param: dcae_state }
1181 # __artifacts_version__: { get_param: artifacts_version }
1182 # __tenant_id__: { get_param: openstack_tenant_id }
1183 # __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1184 # __openstack_user__: { get_param: openstack_username }
1185 # __openstack_password__: { get_param: openstack_api_key }
1186 # __openstack_auth_method__: { get_param: openstack_auth_method }
1187 # __key_name__: { get_param: key_name }
1188 # __rand_str__: { get_resource: random-str }
1189 # __pub_key__: { get_param: pub_key }
1190 # __nexus_repo_root__: { get_param: nexus_repo_root }
1191 # __openstack_region__: { get_param: openstack_region }
1192 # __horizon_url__: { get_param: horizon_url }
1193 # __keystone_url__: { get_param: keystone_url }
1194 # __docker_version__: { get_param: dcae_docker }
1195 # __gerrit_branch__: { get_param: dcae_branch }
1196 # __dcae_code_version__: { get_param: dcae_code_version }
1197 # __cloud_env__: { get_param: cloud_env }
1198 # __public_net_id__: { get_param: public_net_id }
1199 # __dcae_base_environment__: { get_param: dcae_base_environment }
1200 # __dcae_ip_addr__: { get_param: dcae_ip_addr }
1201 # __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1202 # __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1203 # __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1204 # __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1205 # __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1206 # __external_dns__: { get_param: external_dns }
1207 # __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1208 # __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1209 # __flavor_small__: { get_param: flavor_small }
1210 # __flavor_medium__: { get_param: flavor_medium }
1211 # __flavor_large__: { get_param: flavor_large }
1212 # __flavor_xlarge__: { get_param: flavor_xlarge }
1213 # __dcae_repo__: { get_param: dcae_repo }
1214 # __mr_repo__: { get_param: mr_repo }
1218 # Create configuration files
1219 # mkdir -p /opt/config
1220 # echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1221 # echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1222 # echo "__nexus_username__" > /opt/config/nexus_username.txt
1223 # echo "__nexus_password__" > /opt/config/nexus_password.txt
1224 # echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1225 # echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1226 # echo "__docker_version__" > /opt/config/docker_version.txt
1227 # echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1228 # echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1229 # echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1230 # echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1231 # echo "__dcae_state__" > /opt/config/dcae_state.txt
1232 # echo "__tenant_id__" > /opt/config/tenant_id.txt
1233 # echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1234 # echo "__openstack_user__" > /opt/config/openstack_user.txt
1235 # echo "__openstack_password__" > /opt/config/openstack_password.txt
1236 # echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1237 # echo "__key_name__" > /opt/config/key_name.txt
1238 # echo "__rand_str__" > /opt/config/rand_str.txt
1239 # echo "__pub_key__" > /opt/config/pub_key.txt
1240 # echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1241 # echo "__openstack_region__" > /opt/config/openstack_region.txt
1242 # echo "__horizon_url__" > /opt/config/horizon_url.txt
1243 # echo "__keystone_url__" > /opt/config/keystone_url.txt
1244 # echo "__cloud_env__" > /opt/config/cloud_env.txt
1245 # echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1246 # echo "__public_net_id__" > /opt/config/public_net_id.txt
1247 # echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1248 # echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1249 # echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1250 # echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1251 # echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1252 # echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1253 # echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1254 # echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1255 # echo "__external_dns__" > /opt/config/external_dns.txt
1256 # echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1257 # echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1258 # echo "__flavor_small__" > /opt/config/flavor_small.txt
1259 # echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1260 # echo "__flavor_large__" > /opt/config/flavor_large.txt
1261 # echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1262 # echo "__dcae_repo__" > /opt/config/remote_repo.txt
1263 # echo "__mr_repo__" > /opt/config/mr_repo.txt
1265 # Download and run install script
1266 # curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1268 # chmod +x dcae_install.sh
1272 # Policy Engine instantiation
1273 policy_private_port:
1274 type: OS::Neutron::Port
1276 network: { get_resource: oam_onap }
1277 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1280 type: OS::Nova::Server
1282 image: { get_param: ubuntu_1404_image }
1283 flavor: { get_param: flavor_xlarge }
1286 template: base-policy
1288 base: { get_param: vm_base_name }
1289 key_name: { get_resource: vm_key }
1291 - network: { get_param: public_net_id }
1292 - port: { get_resource: policy_private_port }
1293 user_data_format: RAW
1297 __nexus_repo__: { get_param: nexus_repo }
1298 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1299 __nexus_username__: { get_param: nexus_username }
1300 __nexus_password__: { get_param: nexus_password }
1301 __artifacts_version__: { get_param: artifacts_version }
1302 __policy_ip_addr__: { get_param: policy_ip_addr }
1303 __dns_ip_addr__: { get_param: dns_ip_addr }
1304 __oam_network_cidr__: { get_param: oam_network_cidr }
1305 __docker_version__: { get_param: policy_docker }
1306 __gerrit_branch__: { get_param: policy_branch }
1307 __cloud_env__: { get_param: cloud_env }
1308 __external_dns__: { get_param: external_dns }
1309 __policy_repo__: { get_param: policy_repo }
1313 # Create configuration files
1314 mkdir -p /opt/config
1315 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1316 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1317 echo "__nexus_username__" > /opt/config/nexus_username.txt
1318 echo "__nexus_password__" > /opt/config/nexus_password.txt
1319 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1320 echo "__policy_ip_addr__" > /opt/config/local_ip_addr.txt
1321 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1322 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1323 echo "__docker_version__" > /opt/config/docker_version.txt
1324 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1325 echo "__cloud_env__" > /opt/config/cloud_env.txt
1326 echo "__external_dns__" > /opt/config/external_dns.txt
1327 echo "__policy_repo__" > /opt/config/remote_repo.txt
1329 # Download and run install script
1330 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1332 chmod +x policy_install.sh
1336 # APP-C instantiation
1338 type: OS::Neutron::Port
1340 network: { get_resource: oam_onap }
1341 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1344 type: OS::Nova::Server
1346 image: { get_param: ubuntu_1404_image }
1347 flavor: { get_param: flavor_large }
1352 base: { get_param: vm_base_name }
1353 key_name: { get_resource: vm_key }
1355 - network: { get_param: public_net_id }
1356 - port: { get_resource: appc_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 __dmaap_topic__: { get_param: dmaap_topic }
1366 __artifacts_version__: { get_param: artifacts_version }
1367 __appc_ip_addr__: { get_param: appc_ip_addr }
1368 __dns_ip_addr__: { get_param: dns_ip_addr }
1369 __oam_network_cidr__: { get_param: oam_network_cidr }
1370 __docker_version__: { get_param: appc_docker }
1371 __gerrit_branch__: { get_param: appc_branch }
1372 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1373 __cloud_env__: { get_param: cloud_env }
1374 __external_dns__: { get_param: external_dns }
1375 __appc_repo__: { get_param: appc_repo }
1379 # Create configuration files
1380 mkdir -p /opt/config
1381 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1382 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1383 echo "__nexus_username__" > /opt/config/nexus_username.txt
1384 echo "__nexus_password__" > /opt/config/nexus_password.txt
1385 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1386 echo "__appc_ip_addr__" > /opt/config/local_ip_addr.txt
1387 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1388 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1389 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1390 echo "__docker_version__" > /opt/config/docker_version.txt
1391 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1392 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1393 echo "__cloud_env__" > /opt/config/cloud_env.txt
1394 echo "__external_dns__" > /opt/config/external_dns.txt
1395 echo "__appc_repo__" > /opt/config/remote_repo.txt
1397 # Download and run install script
1398 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1400 chmod +x appc_install.sh
1404 # CLAMP instantiation
1406 type: OS::Neutron::Port
1408 network: { get_resource: oam_onap }
1409 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1412 type: OS::Nova::Server
1414 image: { get_param: ubuntu_1604_image }
1415 flavor: { get_param: flavor_medium }
1418 template: base-clamp
1420 base: { get_param: vm_base_name }
1421 key_name: { get_resource: vm_key }
1423 - network: { get_param: public_net_id }
1424 - port: { get_resource: clamp_private_port }
1425 user_data_format: RAW
1429 __nexus_repo__: { get_param: nexus_repo }
1430 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1431 __nexus_username__: { get_param: nexus_username }
1432 __nexus_password__: { get_param: nexus_password }
1433 __openstack_username__: { get_param: openstack_username }
1434 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1435 __openstack_api_key__: { get_param: openstack_api_key }
1436 __openstack_region__: { get_param: openstack_region }
1437 __keystone_url__: { get_param: keystone_url }
1438 __dmaap_topic__: { get_param: dmaap_topic }
1439 __artifacts_version__: { get_param: artifacts_version }
1440 __dns_ip_addr__: { get_param: dns_ip_addr }
1441 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1442 __oam_network_cidr__: { get_param: oam_network_cidr }
1443 __docker_version__: { get_param: clamp_docker }
1444 __gerrit_branch__: { get_param: clamp_branch }
1445 __cloud_env__: { get_param: cloud_env }
1446 __external_dns__: { get_param: external_dns }
1447 __clamp_repo__: { get_param: clamp_repo }
1451 # Create configuration files
1452 mkdir -p /opt/config
1453 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1454 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1455 echo "__nexus_username__" > /opt/config/nexus_username.txt
1456 echo "__nexus_password__" > /opt/config/nexus_password.txt
1457 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1458 echo "__clamp_ip_addr__" > /opt/config/local_ip_addr.txt
1459 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1460 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1461 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1462 echo "__openstack_username__" > /opt/config/openstack_username.txt
1463 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1464 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1465 echo "__openstack_region__" > /opt/config/openstack_region.txt
1466 echo "__keystone_url__" > /opt/config/keystone.txt
1467 echo "__docker_version__" > /opt/config/docker_version.txt
1468 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1469 echo "__cloud_env__" > /opt/config/cloud_env.txt
1470 echo "__external_dns__" > /opt/config/external_dns.txt
1471 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1473 # Download and run install script
1474 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1476 chmod +x clamp_install.sh
1480 # OPEN-O VM instantiation
1482 type: OS::Neutron::Port
1484 network: { get_resource: oam_onap }
1485 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1488 type: OS::Nova::Server
1490 image: { get_param: ubuntu_1604_image }
1491 flavor: { get_param: flavor_xxlarge }
1494 template: base-openo-server
1496 base: { get_param: vm_base_name }
1497 key_name: { get_resource: vm_key }
1499 - network: { get_param: public_net_id }
1500 - port: { get_resource: openo_private_port }
1501 user_data_format: RAW
1505 __nexus_repo__: { get_param: nexus_repo }
1506 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1507 __nexus_username__: { get_param: nexus_username }
1508 __nexus_password__: { get_param: nexus_password }
1509 __artifacts_version__: { get_param: artifacts_version }
1510 __dns_ip_addr__: { get_param: dns_ip_addr }
1511 __oam_network_cidr__: { get_param: oam_network_cidr }
1512 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1513 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1514 __appc_ip_addr__: { get_param: appc_ip_addr }
1515 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1516 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1517 __so_ip_addr__: { get_param: so_ip_addr }
1518 __mr_ip_addr__: { get_param: mr_ip_addr }
1519 __policy_ip_addr__: { get_param: policy_ip_addr }
1520 __portal_ip_addr__: { get_param: portal_ip_addr }
1521 __robot_ip_addr__: { get_param: robot_ip_addr }
1522 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1523 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1524 __vid_ip_addr__: { get_param: vid_ip_addr }
1525 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1526 __openo_ip_addr__: { get_param: openo_ip_addr }
1527 __cloud_env__: { get_param: cloud_env }
1528 __external_dns__: { get_param: external_dns }
1529 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1530 __msb_docker__: { get_param: msb_docker }
1531 __mvim_docker__: { get_param: mvim_docker }
1532 __vfc_docker__: { get_param: vfc_docker }
1533 __uui_docker__: { get_param: uui_docker }
1534 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1538 # Create configuration files
1539 mkdir -p /opt/config
1540 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1541 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1542 echo "__nexus_username__" > /opt/config/nexus_username.txt
1543 echo "__nexus_password__" > /opt/config/nexus_password.txt
1544 echo "__cloud_env__" > /opt/config/cloud_env.txt
1545 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1546 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1547 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1548 echo "__external_dns__" > /opt/config/external_dns.txt
1549 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1550 echo "__msb_docker__" > /opt/config/msb_docker.txt
1551 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1552 echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1553 echo "__uui_docker__" > /opt/config/uui_docker.txt
1554 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1556 # Create env file with the IP address of all ONAP components
1557 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1558 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1559 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1560 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1561 echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1562 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1563 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1564 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1565 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1566 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1567 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1568 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1569 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1570 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1571 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1573 # Download and run install script
1574 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1576 chmod +x openo_install.sh
1580 # DCAE GEN 2 Controller instantiation
1581 dcae_c_private_port:
1582 type: OS::Neutron::Port
1584 network: { get_resource: oam_onap }
1585 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1588 type: OS::Nova::Server
1590 image: { get_param: ubuntu_1604_image }
1591 flavor: { get_param: flavor_medium }
1594 template: base-dcae-controller
1596 base: { get_param: vm_base_name }
1597 key_name: { get_resource: dcae_vm_key }
1599 - network: { get_param: public_net_id }
1600 - port: { get_resource: dcae_c_private_port }
1601 user_data_format: RAW
1605 __nexus_repo__: { get_param: nexus_repo }
1606 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1607 __nexus_username__: { get_param: nexus_username }
1608 __nexus_password__: { get_param: nexus_password }
1609 __dns_ip_addr__: { get_param: dns_ip_addr }
1610 __dcae_zone__: { get_param: dcae_zone }
1611 __artifacts_version__: { get_param: artifacts_version }
1612 __tenant_id__: { get_param: openstack_tenant_id }
1613 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1614 __openstack_user__: { get_param: openstack_username }
1615 __openstack_password__: { get_param: openstack_api_key }
1616 __key_name__: { get_param: dcae_key_name }
1617 __pub_key__: { get_param: dcae_pub_key }
1618 __private_key__: { get_attr: [ dcae_vm_key, private_key ] }
1619 __openstack_region__: { get_param: openstack_region }
1620 __keystone_url__: { get_param: keystone_url }
1621 __docker_version__: { get_param: dcae_docker }
1622 __dcae_repo__: { get_param: dcae_repo }
1623 __gerrit_branch__: { get_param: dcae_branch }
1624 __cloud_env__: { get_param: cloud_env }
1625 __public_net_id__: { get_param: public_net_id }
1626 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1627 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1628 __external_dns__: { get_param: external_dns }
1629 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1630 __centos_7_image__: { get_param: centos_7_image }
1631 __security_group__ : { get_param: security_group }
1632 __flavor_medium__: { get_param: flavor_medium }
1633 __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1634 __rand_str__: { get_resource: random-str }
1639 # Create configuration files
1640 mkdir -p /opt/config
1641 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1642 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1643 echo "__nexus_username__" > /opt/config/nexus_username.txt
1644 echo "__nexus_password__" > /opt/config/nexus_password.txt
1645 echo "__docker_version__" > /opt/config/docker_version.txt
1646 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1647 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1648 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1649 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1650 echo "__tenant_id__" > /opt/config/tenant_id.txt
1651 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1652 echo "__openstack_user__" > /opt/config/openstack_user.txt
1653 echo "__openstack_password__" > /opt/config/openstack_password.txt
1654 echo "__key_name__" > /opt/config/key_name.txt
1655 echo "__pub_key__" > /opt/config/pub_key.txt
1656 echo "__private_key__" > /opt/config/priv_key
1657 echo "__openstack_region__" > /opt/config/openstack_region.txt
1658 echo "__keystone_url__" > /opt/config/keystone_url.txt
1659 echo "__cloud_env__" > /opt/config/cloud_env.txt
1660 echo "__public_net_id__" > /opt/config/public_net_id.txt
1661 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1662 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1663 echo "__external_dns__" > /opt/config/external_dns.txt
1664 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1665 echo "__centos_7_image__" > /opt/config/centos_7_image.txt
1666 echo "__security_group__" > /opt/config/security_group.txt
1667 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1668 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1669 echo "__mac_addr__" > /opt/config/mac_addr.txt
1670 echo "__rand_str__" > /opt/config/rand_str.txt
1672 # Download and run install script
1673 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1675 chmod +x dcae2_install.sh