1 ##########################################################################
3 #==================LICENSE_START==========================================
6 # Copyright © 2017 AT&T Intellectual Property. All rights reserved.
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 #==================LICENSE_END============================================
21 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 ##########################################################################
25 heat_template_version: 2015-10-15
27 description: Heat template to install ONAP components
37 ##############################################
39 # Parameters used across all ONAP components #
41 ##############################################
45 description: Public network for floating IP address allocation
49 description: Name of the Ubuntu 14.04 image
53 description: Name of the Ubuntu 16.04 image
57 description: Name of the Small Flavor supported by the cloud provider
61 description: Name of the Medium Flavor supported by the cloud provider
65 description: Name of the Large Flavor supported by the cloud provider
69 description: Name of the Extra Large Flavor supported by the cloud provider
73 description: Name of the Extra Extra Large Flavor supported by the cloud provider
77 description: Base name of ONAP VMs
81 description: Public/Private key pair name
85 description: Public key to be installed on the compute instance
89 description: Complete URL for the Nexus repository.
93 description: Complete URL for the Nexus repository for docker images.
97 description: Nexus Repository username
101 description: Nexus Repository Password
105 description: Artifacts version of ONAP components
109 description: DMaaP Topic name
113 description: Openstack tenant ID
117 description: Openstack username
119 openstack_auth_method:
121 description: Openstack authentication method (password VS. api-key)
125 description: Openstack password or API Key
129 description: URL of Openstack Horizon
133 description: URL of Openstack Keystone
137 description: Cloud Provider Name
139 ######################
141 # Network parameters #
143 ######################
146 type: comma_delimited_list
147 description: List of External DNS for OAM ONAP network
151 description: First element of the dns_list for ONAP network
155 description: CIDR of the OAM ONAP network
157 ### Private IP addresses ###
209 ###########################
211 # Parameters used by DCAE #
213 ###########################
215 dcae_base_environment:
217 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
221 description: DCAE Zone to use in VM names created by DCAE controller
225 description: DCAE State to use in VM names created by DCAE controller
229 description: Root URL of Nexus repository
233 description: Snapshot of Maven repository for DCAE deployment
237 description: Region where the DCAE controller will spin the VMs
241 description: Branch of the Gitlab repository
245 description: DCAE Code Version Number
247 #####################
249 # ONAP repositories #
251 #####################
280 ################################
282 # Docker versions and branches #
284 ################################
357 type: OS::Heat::RandomString
362 # Public key used to access ONAP components
364 type: OS::Nova::KeyPair
370 base: { get_param: key_name }
371 rand: { get_resource: random-str }
372 public_key: { get_param: pub_key }
373 save_private_key: false
376 # ONAP management private network
378 type: OS::Neutron::Net
382 template: oam_onap_rand
384 rand: { get_resource: random-str }
387 type: OS::Neutron::Subnet
391 template: oam_onap_rand
393 rand: { get_resource: random-str }
394 network_id: { get_resource: oam_onap }
395 cidr: { get_param: oam_network_cidr }
396 dns_nameservers: { get_param: dns_list }
399 type: OS::Neutron::Router
401 external_gateway_info:
402 network: { get_param: public_net_id }
405 type: OS::Neutron::RouterInterface
407 router_id: { get_resource: router }
408 subnet_id: { get_resource: oam_onap_subnet }
411 # DNS Server instantiation
413 type: OS::Neutron::Port
415 network: { get_resource: oam_onap }
416 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
419 type: OS::Neutron::FloatingIP
421 floating_network_id: { get_param: public_net_id }
422 port_id: { get_resource: dns_private_port }
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 - port: { get_resource: dns_private_port }
437 user_data_format: RAW
441 __nexus_repo__: { get_param: nexus_repo }
442 __artifacts_version__: { get_param: artifacts_version }
443 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
444 __dns_ip_addr__: { get_param: dns_ip_addr }
445 __aai1_ip_addr__: { get_param: aai1_ip_addr }
446 __aai2_ip_addr__: { get_param: aai2_ip_addr }
447 __appc_ip_addr__: { get_param: appc_ip_addr }
448 __dcae_ip_addr__: { get_param: dcae_ip_addr }
449 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
450 __so_ip_addr__: { get_param: so_ip_addr }
451 __mr_ip_addr__: { get_param: mr_ip_addr }
452 __policy_ip_addr__: { get_param: policy_ip_addr }
453 __portal_ip_addr__: { get_param: portal_ip_addr }
454 __robot_ip_addr__: { get_param: robot_ip_addr }
455 __sdc_ip_addr__: { get_param: sdc_ip_addr }
456 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
457 __vid_ip_addr__: { get_param: vid_ip_addr }
458 __clamp_ip_addr__: { get_param: clamp_ip_addr }
459 __openo_ip_addr__: { get_param: openo_ip_addr }
460 __cloud_env__: { get_param: cloud_env }
461 __external_dns__: { get_param: external_dns }
465 # Create configuration files
467 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
468 echo "__cloud_env__" > /opt/config/cloud_env.txt
469 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
470 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
471 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
472 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
473 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
474 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
475 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
476 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
477 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
478 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
479 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
480 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
481 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
482 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
483 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
484 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
485 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
486 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
487 echo "__external_dns__" > /opt/config/external_dns.txt
489 # Download and run install script
490 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
492 chmod +x dns_install.sh
496 # A&AI instantiation (2 VMs)
498 type: OS::Neutron::Port
500 network: { get_resource: oam_onap }
501 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
504 type: OS::Neutron::FloatingIP
506 floating_network_id: { get_param: public_net_id }
507 port_id: { get_resource: aai1_private_port }
510 type: OS::Nova::Server
513 image: { get_param: ubuntu_1404_image }
514 flavor: { get_param: flavor_xlarge }
517 template: base-aai-inst1
519 base: { get_param: vm_base_name }
520 key_name: { get_resource: vm_key }
522 - port: { get_resource: aai1_private_port }
523 user_data_format: RAW
527 __nexus_repo__: { get_param: nexus_repo }
528 __nexus_docker_repo__: { get_param: nexus_docker_repo }
529 __nexus_username__: { get_param: nexus_username }
530 __nexus_password__: { get_param: nexus_password }
531 __dmaap_topic__: { get_param: dmaap_topic }
532 __artifacts_version__: { get_param: artifacts_version }
533 __dns_ip_addr__: { get_param: dns_ip_addr }
534 __docker_version__: { get_param: aai_docker }
535 __gerrit_branch__: { get_param: aai_branch }
536 __cloud_env__: { get_param: cloud_env }
537 __external_dns__: { get_param: external_dns }
538 __aai_repo__: { get_param: aai_repo }
542 # Create configuration files
544 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
545 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
546 echo "__nexus_username__" > /opt/config/nexus_username.txt
547 echo "__nexus_password__" > /opt/config/nexus_password.txt
548 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
549 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.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::Neutron::FloatingIP
574 floating_network_id: { get_param: public_net_id }
575 port_id: { get_resource: aai2_private_port }
578 type: OS::Nova::Server
580 image: { get_param: ubuntu_1404_image }
581 flavor: { get_param: flavor_xlarge }
584 template: base-aai-inst2
586 base: { get_param: vm_base_name }
587 key_name: { get_resource: vm_key }
589 - port: { get_resource: aai2_private_port }
590 user_data_format: RAW
594 __nexus_repo__: { get_param: nexus_repo }
595 __nexus_docker_repo__: { get_param: nexus_docker_repo }
596 __nexus_username__: { get_param: nexus_username }
597 __nexus_password__: { get_param: nexus_password }
598 __dmaap_topic__: { get_param: dmaap_topic }
599 __artifacts_version__: { get_param: artifacts_version }
600 __dns_ip_addr__: { get_param: dns_ip_addr }
601 __docker_version__: { get_param: aai_docker }
602 __gerrit_branch__: { get_param: aai_branch }
603 __cloud_env__: { get_param: cloud_env }
604 __external_dns__: { get_param: external_dns }
605 __aai_repo__: { get_param: aai_repo }
609 # Create configuration files
611 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
612 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
613 echo "__nexus_username__" > /opt/config/nexus_username.txt
614 echo "__nexus_password__" > /opt/config/nexus_password.txt
615 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
616 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
617 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
618 echo "__docker_version__" > /opt/config/docker_version.txt
619 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
620 echo "aai_instance_2" > /opt/config/aai_instance.txt
621 echo "__cloud_env__" > /opt/config/cloud_env.txt
622 echo "__external_dns__" > /opt/config/external_dns.txt
623 echo "__aai_repo__" > /opt/config/remote_repo.txt
625 # Download and run install script
626 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
628 chmod +x aai_install.sh
634 type: OS::Neutron::Port
636 network: { get_resource: oam_onap }
637 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
640 type: OS::Neutron::FloatingIP
642 floating_network_id: { get_param: public_net_id }
643 port_id: { get_resource: so_private_port }
646 type: OS::Nova::Server
648 image: { get_param: ubuntu_1604_image }
649 flavor: { get_param: flavor_large }
654 base: { get_param: vm_base_name }
655 key_name: { get_resource: vm_key }
657 - port: { get_resource: so_private_port }
658 user_data_format: RAW
662 __nexus_repo__: { get_param: nexus_repo }
663 __nexus_docker_repo__: { get_param: nexus_docker_repo }
664 __nexus_username__: { get_param: nexus_username }
665 __nexus_password__: { get_param: nexus_password }
666 __openstack_username__: { get_param: openstack_username }
667 __openstack_tenant_id__: { get_param: openstack_tenant_id }
668 __openstack_api_key__: { get_param: openstack_api_key }
669 __openstack_region__: { get_param: openstack_region }
670 __keystone_url__: { get_param: keystone_url }
671 __dmaap_topic__: { get_param: dmaap_topic }
672 __artifacts_version__: { get_param: artifacts_version }
673 __dns_ip_addr__: { get_param: dns_ip_addr }
674 __docker_version__: { get_param: so_docker }
675 __gerrit_branch__: { get_param: so_branch }
676 __cloud_env__: { get_param: cloud_env }
677 __external_dns__: { get_param: external_dns }
678 __so_repo__: { get_param: so_repo }
682 # Create configuration files
684 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
685 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
686 echo "__nexus_username__" > /opt/config/nexus_username.txt
687 echo "__nexus_password__" > /opt/config/nexus_password.txt
688 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
689 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
690 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
691 echo "__openstack_username__" > /opt/config/openstack_username.txt
692 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
693 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
694 echo "__openstack_region__" > /opt/config/openstack_region.txt
695 echo "__keystone_url__" > /opt/config/keystone.txt
696 echo "__docker_version__" > /opt/config/docker_version.txt
697 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
698 echo "__cloud_env__" > /opt/config/cloud_env.txt
699 echo "__external_dns__" > /opt/config/external_dns.txt
700 echo "__so_repo__" > /opt/config/remote_repo.txt
702 # Download and run install script
703 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
705 chmod +x so_install.sh
709 # Message Router instantiation
710 mrouter_private_port:
711 type: OS::Neutron::Port
713 network: { get_resource: oam_onap }
714 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
717 type: OS::Neutron::FloatingIP
719 floating_network_id: { get_param: public_net_id }
720 port_id: { get_resource: mrouter_private_port }
723 type: OS::Nova::Server
725 image: { get_param: ubuntu_1404_image }
726 flavor: { get_param: flavor_large }
729 template: base-message-router
731 base: { get_param: vm_base_name }
732 key_name: { get_resource: vm_key }
734 - port: { get_resource: mrouter_private_port }
735 user_data_format: RAW
739 __nexus_repo__: { get_param: nexus_repo }
740 __nexus_docker_repo__: { get_param: nexus_docker_repo }
741 __nexus_username__: { get_param: nexus_username }
742 __nexus_password__: { get_param: nexus_password }
743 __artifacts_version__: { get_param: artifacts_version }
744 __dns_ip_addr__: { get_param: dns_ip_addr }
745 __gerrit_branch__: { get_param: mr_branch }
746 __cloud_env__: { get_param: cloud_env }
747 __external_dns__: { get_param: external_dns }
748 __mr_repo__: { get_param: mr_repo }
752 # Create configuration files
754 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
755 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
756 echo "__nexus_username__" > /opt/config/nexus_username.txt
757 echo "__nexus_password__" > /opt/config/nexus_password.txt
758 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
759 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
760 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
761 echo "__cloud_env__" > /opt/config/cloud_env.txt
762 echo "__external_dns__" > /opt/config/external_dns.txt
763 echo "__mr_repo__" > /opt/config/remote_repo.txt
765 # Download and run install script
766 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
768 chmod +x mr_install.sh
772 # Robot Framework instantiation
774 type: OS::Neutron::Port
776 network: { get_resource: oam_onap }
777 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
780 type: OS::Neutron::FloatingIP
782 floating_network_id: { get_param: public_net_id }
783 port_id: { get_resource: robot_private_port }
786 type: OS::Nova::Server
788 image: { get_param: ubuntu_1604_image }
789 flavor: { get_param: flavor_small }
794 base: { get_param: vm_base_name }
795 key_name: { get_resource: vm_key }
797 - port: { get_resource: robot_private_port }
798 user_data_format: RAW
802 __nexus_repo__: { get_param: nexus_repo }
803 __nexus_docker_repo__: { get_param: nexus_docker_repo }
804 __nexus_username__: { get_param: nexus_username }
805 __nexus_password__: { get_param: nexus_password }
806 __network_name__: { get_attr: [oam_onap, name] }
807 __openstack_username__: { get_param: openstack_username }
808 __openstack_api_key__: { get_param : openstack_api_key }
809 __openstack_tenant_id__: { get_param: openstack_tenant_id }
810 __artifacts_version__: { get_param: artifacts_version }
811 __openstack_region__: { get_param: openstack_region }
812 __dns_ip_addr__: { get_param: dns_ip_addr }
813 __docker_version__: { get_param: mr_docker }
814 __gerrit_branch__: { get_param: mr_branch }
815 __cloud_env__: { get_param: cloud_env }
816 __keystone_url__: { get_param: keystone_url }
817 __aai1_ip_addr__: { get_param: aai1_ip_addr }
818 __aai2_ip_addr__: { get_param: aai2_ip_addr }
819 __appc_ip_addr__: { get_param: appc_ip_addr }
820 __dcae_ip_addr__: { get_param: dcae_ip_addr }
821 __so_ip_addr__: { get_param: so_ip_addr }
822 __mr_ip_addr__: { get_param: mr_ip_addr }
823 __policy_ip_addr__: { get_param: policy_ip_addr }
824 __portal_ip_addr__: { get_param: portal_ip_addr }
825 __sdc_ip_addr__: { get_param: sdc_ip_addr }
826 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
827 __vid_ip_addr__: { get_param: vid_ip_addr }
828 __clamp_ip_addr__: { get_param: clamp_ip_addr }
829 __openo_ip_addr__: { get_param: openo_ip_addr }
830 __external_dns__: { get_param: external_dns }
831 __vm_image_name__: { get_param: ubuntu_1404_image }
832 __vm_flavor__: { get_param: flavor_medium }
833 __robot_repo__: { get_param: robot_repo }
837 # Create configuration files
839 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
840 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
841 echo "__nexus_username__" > /opt/config/nexus_username.txt
842 echo "__nexus_password__" > /opt/config/nexus_password.txt
843 echo "__network_name__" > /opt/config/network.txt
844 echo "__openstack_username__" > /opt/config/openstack_username.txt
845 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
846 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
847 echo "__openstack_region__" > /opt/config/region.txt
848 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
849 echo "__docker_version__" > /opt/config/docker_version.txt
850 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
851 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
852 echo "__keystone_url__" > /opt/config/keystone.txt
853 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
854 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
855 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
856 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
857 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
858 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
859 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
860 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
861 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
862 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
863 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
864 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
865 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
866 echo "__cloud_env__" > /opt/config/cloud_env.txt
867 echo "__external_dns__" > /opt/config/external_dns.txt
868 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
869 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
870 echo "__robot_repo__" > /opt/config/remote_repo.txt
872 # Download and run install script
873 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
875 chmod +x robot_install.sh
881 type: OS::Neutron::Port
883 network: { get_resource: oam_onap }
884 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
887 type: OS::Neutron::FloatingIP
889 floating_network_id: { get_param: public_net_id }
890 port_id: { get_resource: vid_private_port }
893 type: OS::Nova::Server
895 image: { get_param: ubuntu_1404_image }
896 flavor: { get_param: flavor_medium }
901 base: { get_param: vm_base_name }
902 key_name: { get_resource: vm_key }
904 - port: { get_resource: vid_private_port }
905 user_data_format: RAW
909 __nexus_repo__: { get_param: nexus_repo }
910 __nexus_docker_repo__: { get_param: nexus_docker_repo }
911 __nexus_username__: { get_param: nexus_username }
912 __nexus_password__: { get_param: nexus_password }
913 __artifacts_version__: { get_param: artifacts_version }
914 __dns_ip_addr__: { get_param: dns_ip_addr }
915 __docker_version__: { get_param: vid_docker }
916 __gerrit_branch__: { get_param: vid_branch }
917 __cloud_env__: { get_param: cloud_env }
918 __external_dns__: { get_param: external_dns }
919 __vid_repo__: { get_param: vid_repo }
923 # Create configuration files
925 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
926 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
927 echo "__nexus_username__" > /opt/config/nexus_username.txt
928 echo "__nexus_password__" > /opt/config/nexus_password.txt
929 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
930 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
931 echo "__docker_version__" > /opt/config/docker_version.txt
932 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
933 echo "__cloud_env__" > /opt/config/cloud_env.txt
934 echo "__external_dns__" > /opt/config/external_dns.txt
935 echo "__vid_repo__" > /opt/config/remote_repo.txt
937 # Download and run install script
938 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
940 chmod +x vid_install.sh
944 # SDN-C instantiation
946 type: OS::Neutron::Port
948 network: { get_resource: oam_onap }
949 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
952 type: OS::Neutron::FloatingIP
954 floating_network_id: { get_param: public_net_id }
955 port_id: { get_resource: sdnc_private_port }
958 type: OS::Nova::Server
960 image: { get_param: ubuntu_1404_image }
961 flavor: { get_param: flavor_large }
966 base: { get_param: vm_base_name }
967 key_name: { get_resource: vm_key }
969 - port: { get_resource: sdnc_private_port }
970 user_data_format: RAW
974 __nexus_repo__: { get_param: nexus_repo }
975 __nexus_docker_repo__: { get_param: nexus_docker_repo }
976 __nexus_username__: { get_param: nexus_username }
977 __nexus_password__: { get_param: nexus_password }
978 __artifacts_version__: { get_param: artifacts_version }
979 __dns_ip_addr__: { get_param: dns_ip_addr }
980 __docker_version__: { get_param: sdnc_docker }
981 __gerrit_branch__: { get_param: sdnc_branch }
982 __dgbuilder_docker__: { get_param: dgbuilder_docker }
983 __cloud_env__: { get_param: cloud_env }
984 __external_dns__: { get_param: external_dns }
985 __sdnc_repo__: { get_param: sdnc_repo }
989 # Create configuration files
991 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
992 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
993 echo "__nexus_username__" > /opt/config/nexus_username.txt
994 echo "__nexus_password__" > /opt/config/nexus_password.txt
995 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
996 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
997 echo "__docker_version__" > /opt/config/docker_version.txt
998 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
999 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1000 echo "__cloud_env__" > /opt/config/cloud_env.txt
1001 echo "__external_dns__" > /opt/config/external_dns.txt
1002 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1004 # Download and run install script
1005 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1007 chmod +x sdnc_install.sh
1013 type: OS::Neutron::Port
1015 network: { get_resource: oam_onap }
1016 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1019 type: OS::Neutron::FloatingIP
1021 floating_network_id: { get_param: public_net_id }
1022 port_id: { get_resource: sdc_private_port }
1025 type: OS::Cinder::Volume
1031 type: OS::Nova::Server
1033 image: { get_param: ubuntu_1604_image }
1034 flavor: { get_param: flavor_xlarge }
1039 base: { get_param: vm_base_name }
1040 key_name: { get_resource: vm_key }
1042 - port: { get_resource: sdc_private_port }
1043 block_device_mapping:
1044 - device_name: /dev/vdb
1045 volume_id: {get_resource: sdc_volume_data}
1046 user_data_format: RAW
1050 __nexus_repo__: { get_param: nexus_repo }
1051 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1052 __nexus_username__: { get_param: nexus_username }
1053 __nexus_password__: { get_param: nexus_password }
1054 __env_name__: { get_param: dmaap_topic }
1055 __artifacts_version__: { get_param: artifacts_version }
1056 __dns_ip_addr__: { get_param: dns_ip_addr }
1057 __mr_ip_addr__: { get_param: mr_ip_addr }
1058 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1059 __docker_version__: { get_param: sdc_docker }
1060 __gerrit_branch__: { get_param: sdc_branch }
1061 __cloud_env__: { get_param: cloud_env }
1062 __external_dns__: { get_param: external_dns }
1063 __sdc_repo__: { get_param: sdc_repo }
1067 # Create configuration files
1068 mkdir -p /opt/config
1069 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1070 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1071 echo "__nexus_username__" > /opt/config/nexus_username.txt
1072 echo "__nexus_password__" > /opt/config/nexus_password.txt
1073 echo "__env_name__" > /opt/config/env_name.txt
1074 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1075 echo "__public_ip__" > /opt/config/public_ip.txt
1076 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1077 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1078 echo "__docker_version__" > /opt/config/docker_version.txt
1079 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1080 echo "__cloud_env__" > /opt/config/cloud_env.txt
1081 echo "__external_dns__" > /opt/config/external_dns.txt
1082 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1084 # Download and run install script
1085 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1087 chmod +x sdc_install.sh
1091 # PORTAL instantiation
1092 portal_private_port:
1093 type: OS::Neutron::Port
1095 network: { get_resource: oam_onap }
1096 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1099 type: OS::Neutron::FloatingIP
1101 floating_network_id: { get_param: public_net_id }
1102 port_id: { get_resource: portal_private_port }
1105 type: OS::Nova::Server
1107 image: { get_param: ubuntu_1404_image }
1108 flavor: { get_param: flavor_large }
1111 template: base-portal
1113 base: { get_param: vm_base_name }
1114 key_name: { get_resource: vm_key }
1116 - port: { get_resource: portal_private_port }
1117 user_data_format: RAW
1121 __nexus_repo__: { get_param: nexus_repo }
1122 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1123 __nexus_username__: { get_param: nexus_username }
1124 __nexus_password__: { get_param: nexus_password }
1125 __artifacts_version__: { get_param: artifacts_version }
1126 __dns_ip_addr__: { get_param: dns_ip_addr }
1127 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1128 __docker_version__: { get_param: portal_docker }
1129 __gerrit_branch__: { get_param: portal_branch }
1130 __cloud_env__: { get_param: cloud_env }
1131 __external_dns__: { get_param: external_dns }
1132 __portal_repo__: { get_param: portal_repo }
1136 # Create configuration files
1137 mkdir -p /opt/config
1138 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1139 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1140 echo "__nexus_username__" > /opt/config/nexus_username.txt
1141 echo "__nexus_password__" > /opt/config/nexus_password.txt
1142 echo "__public_ip__" > /opt/config/public_ip.txt
1143 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1144 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1145 echo "__docker_version__" > /opt/config/docker_version.txt
1146 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1147 echo "__cloud_env__" > /opt/config/cloud_env.txt
1148 echo "__external_dns__" > /opt/config/external_dns.txt
1149 echo "__portal_repo__" > /opt/config/remote_repo.txt
1151 # Download and run install script
1152 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1154 chmod +x portal_install.sh
1158 # DCAE Controller instantiation
1159 dcae_c_private_port:
1160 type: OS::Neutron::Port
1162 network: { get_resource: oam_onap }
1163 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1166 type: OS::Neutron::FloatingIP
1168 floating_network_id: { get_param: public_net_id }
1169 port_id: { get_resource: dcae_c_private_port }
1172 type: OS::Nova::Server
1174 image: { get_param: ubuntu_1404_image }
1175 flavor: { get_param: flavor_medium }
1178 template: base-dcae-controller
1180 base: { get_param: vm_base_name }
1181 key_name: { get_resource: vm_key }
1183 - port: { get_resource: dcae_c_private_port }
1184 user_data_format: RAW
1188 __nexus_repo__: { get_param: nexus_repo }
1189 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1190 __nexus_username__: { get_param: nexus_username }
1191 __nexus_password__: { get_param: nexus_password }
1192 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1193 __gitlab_branch__: { get_param: gitlab_branch }
1194 __dns_ip_addr__: { get_param: dns_ip_addr }
1195 __dcae_zone__: { get_param: dcae_zone }
1196 __dcae_state__: { get_param: dcae_state }
1197 __artifacts_version__: { get_param: artifacts_version }
1198 __tenant_id__: { get_param: openstack_tenant_id }
1199 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1200 __openstack_user__: { get_param: openstack_username }
1201 __openstack_password__: { get_param: openstack_api_key }
1202 __openstack_auth_method__: { get_param: openstack_auth_method }
1203 __key_name__: { get_param: key_name }
1204 __rand_str__: { get_resource: random-str }
1205 __pub_key__: { get_param: pub_key }
1206 __nexus_repo_root__: { get_param: nexus_repo_root }
1207 __openstack_region__: { get_param: openstack_region }
1208 __horizon_url__: { get_param: horizon_url }
1209 __keystone_url__: { get_param: keystone_url }
1210 __docker_version__: { get_param: dcae_docker }
1211 __gerrit_branch__: { get_param: dcae_branch }
1212 __dcae_code_version__: { get_param: dcae_code_version }
1213 __cloud_env__: { get_param: cloud_env }
1214 __public_net_id__: { get_param: public_net_id }
1215 __dcae_base_environment__: { get_param: dcae_base_environment }
1216 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1217 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1218 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1219 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1220 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1221 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1222 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1223 __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1224 __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1225 __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1226 __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1227 __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1228 __external_dns__: { get_param: external_dns }
1229 __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1230 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1231 __flavor_small__: { get_param: flavor_small }
1232 __flavor_medium__: { get_param: flavor_medium }
1233 __flavor_large__: { get_param: flavor_large }
1234 __flavor_xlarge__: { get_param: flavor_xlarge }
1235 __dcae_repo__: { get_param: dcae_repo }
1236 __mr_repo__: { get_param: mr_repo }
1240 # Create configuration files
1241 mkdir -p /opt/config
1242 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1243 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1244 echo "__nexus_username__" > /opt/config/nexus_username.txt
1245 echo "__nexus_password__" > /opt/config/nexus_password.txt
1246 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1247 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1248 echo "__docker_version__" > /opt/config/docker_version.txt
1249 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1250 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1251 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1252 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1253 echo "__dcae_state__" > /opt/config/dcae_state.txt
1254 echo "__tenant_id__" > /opt/config/tenant_id.txt
1255 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1256 echo "__openstack_user__" > /opt/config/openstack_user.txt
1257 echo "__openstack_password__" > /opt/config/openstack_password.txt
1258 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1259 echo "__key_name__" > /opt/config/key_name.txt
1260 echo "__rand_str__" > /opt/config/rand_str.txt
1261 echo "__pub_key__" > /opt/config/pub_key.txt
1262 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1263 echo "__openstack_region__" > /opt/config/openstack_region.txt
1264 echo "__horizon_url__" > /opt/config/horizon_url.txt
1265 echo "__keystone_url__" > /opt/config/keystone_url.txt
1266 echo "__cloud_env__" > /opt/config/cloud_env.txt
1267 echo "__public_net_id__" > /opt/config/public_net_id.txt
1268 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1269 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1270 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1271 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1272 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1273 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1274 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1275 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1276 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1277 echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1278 echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1279 echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1280 echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1281 echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1282 echo "__external_dns__" > /opt/config/external_dns.txt
1283 echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1284 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1285 echo "__flavor_small__" > /opt/config/flavor_small.txt
1286 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1287 echo "__flavor_large__" > /opt/config/flavor_large.txt
1288 echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1289 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1290 echo "__mr_repo__" > /opt/config/mr_repo.txt
1292 # Download and run install script
1293 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1295 chmod +x dcae_install.sh
1299 # Policy Engine instantiation
1300 policy_private_port:
1301 type: OS::Neutron::Port
1303 network: { get_resource: oam_onap }
1304 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1307 type: OS::Neutron::FloatingIP
1309 floating_network_id: { get_param: public_net_id }
1310 port_id: { get_resource: policy_private_port }
1313 type: OS::Nova::Server
1315 image: { get_param: ubuntu_1404_image }
1316 flavor: { get_param: flavor_xlarge }
1319 template: base-policy
1321 base: { get_param: vm_base_name }
1322 key_name: { get_resource: vm_key }
1324 - port: { get_resource: policy_private_port }
1325 user_data_format: RAW
1329 __nexus_repo__: { get_param: nexus_repo }
1330 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1331 __nexus_username__: { get_param: nexus_username }
1332 __nexus_password__: { get_param: nexus_password }
1333 __artifacts_version__: { get_param: artifacts_version }
1334 __dns_ip_addr__: { get_param: dns_ip_addr }
1335 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1336 __docker_version__: { get_param: policy_docker }
1337 __gerrit_branch__: { get_param: policy_branch }
1338 __cloud_env__: { get_param: cloud_env }
1339 __external_dns__: { get_param: external_dns }
1340 __policy_repo__: { get_param: policy_repo }
1344 # Create configuration files
1345 mkdir -p /opt/config
1346 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1347 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1348 echo "__nexus_username__" > /opt/config/nexus_username.txt
1349 echo "__nexus_password__" > /opt/config/nexus_password.txt
1350 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1351 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1352 echo "__public_ip__" > /opt/config/public_ip.txt
1353 echo "__docker_version__" > /opt/config/docker_version.txt
1354 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1355 echo "__cloud_env__" > /opt/config/cloud_env.txt
1356 echo "__external_dns__" > /opt/config/external_dns.txt
1357 echo "__policy_repo__" > /opt/config/remote_repo.txt
1359 # Download and run install script
1360 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1362 chmod +x policy_install.sh
1366 # APP-C instantiation
1368 type: OS::Neutron::Port
1370 network: { get_resource: oam_onap }
1371 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1374 type: OS::Neutron::FloatingIP
1376 floating_network_id: { get_param: public_net_id }
1377 port_id: { get_resource: appc_private_port }
1380 type: OS::Nova::Server
1382 image: { get_param: ubuntu_1404_image }
1383 flavor: { get_param: flavor_large }
1388 base: { get_param: vm_base_name }
1389 key_name: { get_resource: vm_key }
1391 - port: { get_resource: appc_private_port }
1392 user_data_format: RAW
1396 __nexus_repo__: { get_param: nexus_repo }
1397 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1398 __nexus_username__: { get_param: nexus_username }
1399 __nexus_password__: { get_param: nexus_password }
1400 __dmaap_topic__: { get_param: dmaap_topic }
1401 __artifacts_version__: { get_param: artifacts_version }
1402 __dns_ip_addr__: { get_param: dns_ip_addr }
1403 __docker_version__: { get_param: appc_docker }
1404 __gerrit_branch__: { get_param: appc_branch }
1405 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1406 __cloud_env__: { get_param: cloud_env }
1407 __external_dns__: { get_param: external_dns }
1408 __appc_repo__: { get_param: appc_repo }
1412 # Create configuration files
1413 mkdir -p /opt/config
1414 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1415 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1416 echo "__nexus_username__" > /opt/config/nexus_username.txt
1417 echo "__nexus_password__" > /opt/config/nexus_password.txt
1418 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1419 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1420 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1421 echo "__docker_version__" > /opt/config/docker_version.txt
1422 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1423 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1424 echo "__cloud_env__" > /opt/config/cloud_env.txt
1425 echo "__external_dns__" > /opt/config/external_dns.txt
1426 echo "__appc_repo__" > /opt/config/remote_repo.txt
1428 # Download and run install script
1429 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1431 chmod +x appc_install.sh
1435 # CLAMP instantiation
1437 type: OS::Neutron::Port
1439 network: { get_resource: oam_onap }
1440 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1443 type: OS::Neutron::FloatingIP
1445 floating_network_id: { get_param: public_net_id }
1446 port_id: { get_resource: clamp_private_port }
1449 type: OS::Nova::Server
1451 image: { get_param: ubuntu_1604_image }
1452 flavor: { get_param: flavor_medium }
1455 template: base-clamp
1457 base: { get_param: vm_base_name }
1458 key_name: { get_resource: vm_key }
1460 - port: { get_resource: clamp_private_port }
1461 user_data_format: RAW
1465 __nexus_repo__: { get_param: nexus_repo }
1466 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1467 __nexus_username__: { get_param: nexus_username }
1468 __nexus_password__: { get_param: nexus_password }
1469 __openstack_username__: { get_param: openstack_username }
1470 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1471 __openstack_api_key__: { get_param: openstack_api_key }
1472 __openstack_region__: { get_param: openstack_region }
1473 __keystone_url__: { get_param: keystone_url }
1474 __dmaap_topic__: { get_param: dmaap_topic }
1475 __artifacts_version__: { get_param: artifacts_version }
1476 __dns_ip_addr__: { get_param: dns_ip_addr }
1477 __docker_version__: { get_param: clamp_docker }
1478 __gerrit_branch__: { get_param: clamp_branch }
1479 __cloud_env__: { get_param: cloud_env }
1480 __external_dns__: { get_param: external_dns }
1481 __clamp_repo__: { get_param: clamp_repo }
1485 # Create configuration files
1486 mkdir -p /opt/config
1487 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1488 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1489 echo "__nexus_username__" > /opt/config/nexus_username.txt
1490 echo "__nexus_password__" > /opt/config/nexus_password.txt
1491 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1492 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1493 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1494 echo "__openstack_username__" > /opt/config/openstack_username.txt
1495 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1496 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1497 echo "__openstack_region__" > /opt/config/openstack_region.txt
1498 echo "__keystone_url__" > /opt/config/keystone.txt
1499 echo "__docker_version__" > /opt/config/docker_version.txt
1500 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1501 echo "__cloud_env__" > /opt/config/cloud_env.txt
1502 echo "__external_dns__" > /opt/config/external_dns.txt
1503 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1505 # Download and run install script
1506 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1508 chmod +x clamp_install.sh
1512 # OPEN-O VM instantiation
1514 type: OS::Neutron::Port
1516 network: { get_resource: oam_onap }
1517 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1520 type: OS::Neutron::FloatingIP
1522 floating_network_id: { get_param: public_net_id }
1523 port_id: { get_resource: openo_private_port }
1526 type: OS::Nova::Server
1528 image: { get_param: ubuntu_1604_image }
1529 flavor: { get_param: flavor_xxlarge }
1532 template: base-openo-server
1534 base: { get_param: vm_base_name }
1535 key_name: { get_resource: vm_key }
1537 - port: { get_resource: openo_private_port }
1538 user_data_format: RAW
1542 __nexus_repo__: { get_param: nexus_repo }
1543 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1544 __nexus_username__: { get_param: nexus_username }
1545 __nexus_password__: { get_param: nexus_password }
1546 __artifacts_version__: { get_param: artifacts_version }
1547 __dns_ip_addr__: { get_param: dns_ip_addr }
1548 __oam_network_cidr__: { get_param: oam_network_cidr }
1549 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1550 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1551 __appc_ip_addr__: { get_param: appc_ip_addr }
1552 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1553 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1554 __so_ip_addr__: { get_param: so_ip_addr }
1555 __mr_ip_addr__: { get_param: mr_ip_addr }
1556 __policy_ip_addr__: { get_param: policy_ip_addr }
1557 __portal_ip_addr__: { get_param: portal_ip_addr }
1558 __robot_ip_addr__: { get_param: robot_ip_addr }
1559 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1560 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1561 __vid_ip_addr__: { get_param: vid_ip_addr }
1562 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1563 __openo_ip_addr__: { get_param: openo_ip_addr }
1564 __cloud_env__: { get_param: cloud_env }
1565 __external_dns__: { get_param: external_dns }
1566 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1567 __msb_docker__: { get_param: msb_docker }
1568 __mvim_docker__: { get_param: mvim_docker }
1569 __vfc_docker__: { get_param: vfc_docker }
1570 __uui_docker__: { get_param: uui_docker }
1571 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1575 # Create configuration files
1576 mkdir -p /opt/config
1577 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1578 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1579 echo "__nexus_username__" > /opt/config/nexus_username.txt
1580 echo "__nexus_password__" > /opt/config/nexus_password.txt
1581 echo "__cloud_env__" > /opt/config/cloud_env.txt
1582 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1583 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1584 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1585 echo "__external_dns__" > /opt/config/external_dns.txt
1586 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1587 echo "__msb_docker__" > /opt/config/msb_docker.txt
1588 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1589 echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1590 echo "__uui_docker__" > /opt/config/uui_docker.txt
1591 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1593 # Create env file with the IP address of all ONAP components
1594 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1595 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1596 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1597 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1598 echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1599 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1600 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1601 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1602 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1603 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1604 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1605 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1606 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1607 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1608 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1610 # Download and run install script
1611 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1613 chmod +x openo_install.sh