1 ##########################################################################
3 #==================LICENSE_START==========================================
6 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 #==================LICENSE_END============================================
21 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 ##########################################################################
25 heat_template_version: 2015-10-15
27 description: Heat template to install ONAP components
37 ##############################################
39 # Parameters used across all ONAP components #
41 ##############################################
45 description: The ID of the Public network for floating IP address allocation
49 description: The name of the Public network referred by public_net_id
53 description: Name of the Ubuntu 14.04 image
57 description: Name of the Ubuntu 16.04 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: Base name of ONAP VMs
85 description: Public/Private key pair name
89 description: Public key to be installed on the compute instance
93 description: Complete URL for the Nexus repository.
97 description: Complete URL for the Nexus repository for docker images.
101 description: Nexus Repository username
105 description: Nexus Repository Password
109 description: Artifacts version of ONAP components
113 description: DMaaP Topic name
117 description: OpenStack tenant ID
119 openstack_tenant_name:
121 description: OpenStack tenant name (matching with the openstack_tenant_id)
125 description: OpenStack username
127 openstack_auth_method:
129 description: OpenStack authentication method (password VS. api-key)
133 description: OpenStack password or API Key
137 description: URL of OpenStack Horizon
141 description: URL of OpenStack Keystone
145 description: Cloud Provider Name in lower case
149 description: Region where the DCAE controller will spin the VMs
151 ######################
153 # Network parameters #
155 ######################
158 type: comma_delimited_list
159 description: List of External DNS for OAM ONAP network
163 description: Public IP of the external DNS for ONAP network
167 description: the forwarder address for setting up ONAP's private DNS server
171 description: CIDR of the OAM ONAP network
173 ### Private IP addresses ###
213 ###########################
215 # Parameters used by DCAE #
217 ###########################
219 dnsaas_config_enabled:
221 description: whether the DNSaaS configuration section is enabled
225 description: the region of the cloud instance providing the Designate DNS as a Service
229 description: the keystone URL of the cloud instance providing the Designate DNS as a Service
233 description: the username of the cloud instance providing the Designate DNS as a Service
237 description: the password of the cloud instance providing the Designate DNS as a Service
241 description: the name of the tenant in the cloud instance providing the Designate DNS as a Service
245 description: the keystone URL for DCAE to use (via MultiCloud)
249 description: the private key of the key-apir used between the DCAE bootstrap container and DCAE VMs
253 description: the prublic key of the key-apir used between the DCAE bootstrap container and DCAE VMs
257 description: the id/name of the CentOS 7 VM imange
261 description: the top level domain to register DCAE VMs (the zone will be random-str.dcae_domain)
263 #####################
265 # ONAP repositories #
267 #####################
294 ################################
296 # Docker versions and branches #
298 ################################
349 vfc_ztevnfmdriver_docker:
351 vfc_ztesdncdriver_docker:
359 vfc_resmanagement_docker:
365 vfc_jujudriver_docker:
367 vfc_gvnfmdriver_docker:
369 vfc_emsdriver_docker:
373 vfc_wfengine_mgrservice_docker:
375 vfc_wfengine_activiti_docker:
419 type: OS::Heat::RandomString
423 # Public key used to access ONAP components
425 type: OS::Nova::KeyPair
431 base: { get_param: key_name }
432 rand: { get_resource: random-str }
433 public_key: { get_param: pub_key }
434 save_private_key: false
437 # ONAP security group
439 type: OS::Neutron::SecurityGroup
446 rand: { get_resource: random-str }
447 description: security group used by ONAP
459 port_range_max: 65535
462 port_range_max: 65535
466 # ONAP management private network
468 type: OS::Neutron::Net
472 template: oam_onap_rand
474 rand: { get_resource: random-str }
477 type: OS::Neutron::Subnet
481 template: oam_onap_rand
483 rand: { get_resource: random-str }
484 network_id: { get_resource: oam_onap }
485 cidr: { get_param: oam_network_cidr }
486 dns_nameservers: { get_param: dns_list }
489 type: OS::Neutron::Router
491 external_gateway_info:
492 network: { get_param: public_net_id }
495 type: OS::Neutron::RouterInterface
497 router_id: { get_resource: router }
498 subnet_id: { get_resource: oam_onap_subnet }
501 # DNS Server instantiation
503 type: OS::Neutron::Port
505 network: { get_resource: oam_onap }
506 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
508 - { get_resource: onap_sg }
511 type: OS::Neutron::FloatingIP
513 floating_network_id: { get_param: public_net_id }
514 port_id: { get_resource: dns_private_port }
517 type: OS::Nova::Server
519 image: { get_param: ubuntu_1404_image }
520 flavor: { get_param: flavor_small }
523 template: base-dns-server
525 base: { get_param: vm_base_name }
526 key_name: { get_resource: vm_key }
528 - port: { get_resource: dns_private_port }
529 user_data_format: RAW
533 __nexus_repo__: { get_param: nexus_repo }
534 __artifacts_version__: { get_param: artifacts_version }
535 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
536 __dns_ip_addr__: { get_param: dns_ip_addr }
537 __aai1_ip_addr__: { get_param: aai1_ip_addr }
538 __aai2_ip_addr__: { get_param: aai2_ip_addr }
539 __appc_ip_addr__: { get_param: appc_ip_addr }
540 __dcae_ip_addr__: { get_param: dcae_ip_addr }
541 __so_ip_addr__: { get_param: so_ip_addr }
542 __mr_ip_addr__: { get_param: mr_ip_addr }
543 __policy_ip_addr__: { get_param: policy_ip_addr }
544 __portal_ip_addr__: { get_param: portal_ip_addr }
545 __robot_ip_addr__: { get_param: robot_ip_addr }
546 __sdc_ip_addr__: { get_param: sdc_ip_addr }
547 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
548 __vid_ip_addr__: { get_param: vid_ip_addr }
549 __clamp_ip_addr__: { get_param: clamp_ip_addr }
550 __openo_ip_addr__: { get_param: openo_ip_addr }
551 __music_ip_addr__: { get_param: music_ip_addr }
552 __oof_ip_addr__: { get_param: oof_ip_addr }
553 __aaf_ip_addr__: { get_param: aaf_ip_addr }
554 __cloud_env__: { get_param: cloud_env }
555 __external_dns__: { get_param: external_dns }
556 __dns_forwarder__: { get_param: dns_forwarder }
560 # Create configuration files
562 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
563 echo "__cloud_env__" > /opt/config/cloud_env.txt
564 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
565 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
566 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
567 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
568 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
569 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
570 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
571 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
572 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
573 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
574 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
575 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
576 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
577 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
578 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
579 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
580 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
581 echo "__music_ip_addr__" > /opt/config/music_ip_addr.txt
582 echo "__oof_ip_addr__" > /opt/config/oof_ip_addr.txt
583 echo "__aaf_ip_addr__" > /opt/config/aaf_ip_addr.txt
584 echo "__external_dns__" > /opt/config/external_dns.txt
585 echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
587 # Download and run install script
588 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
590 chmod +x dns_install.sh
594 # A&AI instantiation (2 VMs)
596 type: OS::Neutron::Port
598 network: { get_resource: oam_onap }
599 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
601 - { get_resource: onap_sg }
604 type: OS::Neutron::FloatingIP
606 floating_network_id: { get_param: public_net_id }
607 port_id: { get_resource: aai1_private_port }
610 type: OS::Nova::Server
613 image: { get_param: ubuntu_1404_image }
614 flavor: { get_param: flavor_large }
617 template: base-aai-inst1
619 base: { get_param: vm_base_name }
620 key_name: { get_resource: vm_key }
622 - port: { get_resource: aai1_private_port }
623 user_data_format: RAW
627 __nexus_repo__: { get_param: nexus_repo }
628 __nexus_docker_repo__: { get_param: nexus_docker_repo }
629 __nexus_username__: { get_param: nexus_username }
630 __nexus_password__: { get_param: nexus_password }
631 __dmaap_topic__: { get_param: dmaap_topic }
632 __artifacts_version__: { get_param: artifacts_version }
633 __dns_ip_addr__: { get_param: dns_ip_addr }
634 __docker_version__: { get_param: aai_docker }
635 __aai_sparky_docker__ : { get_param: aai_sparky_docker }
636 __gerrit_branch__: { get_param: aai_branch }
637 __cloud_env__: { get_param: cloud_env }
638 __external_dns__: { get_param: external_dns }
639 __aai_repo__: { get_param: aai_repo }
643 # Create configuration files
645 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
646 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
647 echo "__nexus_username__" > /opt/config/nexus_username.txt
648 echo "__nexus_password__" > /opt/config/nexus_password.txt
649 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
650 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
651 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
652 echo "__docker_version__" > /opt/config/docker_version.txt
653 echo "__aai_sparky_docker__" > /opt/config/sparky_version.txt
654 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
655 echo "aai_instance_1" > /opt/config/aai_instance.txt
656 echo "__cloud_env__" > /opt/config/cloud_env.txt
657 echo "__external_dns__" > /opt/config/external_dns.txt
658 echo "__aai_repo__" > /opt/config/remote_repo.txt
660 # Download and run install script
661 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
663 chmod +x aai_install.sh
668 type: OS::Neutron::Port
670 network: { get_resource: oam_onap }
671 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
673 - { get_resource: onap_sg }
676 type: OS::Neutron::FloatingIP
678 floating_network_id: { get_param: public_net_id }
679 port_id: { get_resource: aai2_private_port }
682 type: OS::Nova::Server
684 image: { get_param: ubuntu_1404_image }
685 flavor: { get_param: flavor_large }
688 template: base-aai-inst2
690 base: { get_param: vm_base_name }
691 key_name: { get_resource: vm_key }
693 - port: { get_resource: aai2_private_port }
694 user_data_format: RAW
698 __nexus_repo__: { get_param: nexus_repo }
699 __nexus_docker_repo__: { get_param: nexus_docker_repo }
700 __nexus_username__: { get_param: nexus_username }
701 __nexus_password__: { get_param: nexus_password }
702 __dmaap_topic__: { get_param: dmaap_topic }
703 __artifacts_version__: { get_param: artifacts_version }
704 __dns_ip_addr__: { get_param: dns_ip_addr }
705 __docker_version__: { get_param: aai_docker }
706 __gerrit_branch__: { get_param: aai_branch }
707 __cloud_env__: { get_param: cloud_env }
708 __external_dns__: { get_param: external_dns }
709 __aai_repo__: { get_param: aai_repo }
713 # Create configuration files
715 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
716 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
717 echo "__nexus_username__" > /opt/config/nexus_username.txt
718 echo "__nexus_password__" > /opt/config/nexus_password.txt
719 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
720 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
721 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
722 echo "__docker_version__" > /opt/config/docker_version.txt
723 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
724 echo "aai_instance_2" > /opt/config/aai_instance.txt
725 echo "__cloud_env__" > /opt/config/cloud_env.txt
726 echo "__external_dns__" > /opt/config/external_dns.txt
727 echo "__aai_repo__" > /opt/config/remote_repo.txt
729 # Download and run install script
730 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
732 chmod +x aai_install.sh
738 type: OS::Neutron::Port
740 network: { get_resource: oam_onap }
741 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
743 - { get_resource: onap_sg }
746 type: OS::Neutron::FloatingIP
748 floating_network_id: { get_param: public_net_id }
749 port_id: { get_resource: so_private_port }
752 type: OS::Nova::Server
754 image: { get_param: ubuntu_1604_image }
755 flavor: { get_param: flavor_medium }
760 base: { get_param: vm_base_name }
761 key_name: { get_resource: vm_key }
763 - port: { get_resource: so_private_port }
764 user_data_format: RAW
768 __nexus_repo__: { get_param: nexus_repo }
769 __nexus_docker_repo__: { get_param: nexus_docker_repo }
770 __nexus_username__: { get_param: nexus_username }
771 __nexus_password__: { get_param: nexus_password }
772 __openstack_username__: { get_param: openstack_username }
773 __openstack_tenant_id__: { get_param: openstack_tenant_id }
774 __openstack_api_key__: { get_param: openstack_api_key }
775 __openstack_region__: { get_param: openstack_region }
776 __keystone_url__: { get_param: keystone_url }
777 __dmaap_topic__: { get_param: dmaap_topic }
778 __artifacts_version__: { get_param: artifacts_version }
779 __dns_ip_addr__: { get_param: dns_ip_addr }
780 __openo_ip__: { get_param: openo_ip_addr }
781 __docker_version__: { get_param: so_docker }
782 __gerrit_branch__: { get_param: so_branch }
783 __cloud_env__: { get_param: cloud_env }
784 __external_dns__: { get_param: external_dns }
785 __so_repo__: { get_param: so_repo }
789 # Create configuration files
791 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
792 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
793 echo "__nexus_username__" > /opt/config/nexus_username.txt
794 echo "__nexus_password__" > /opt/config/nexus_password.txt
795 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
796 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
797 echo "__openo_ip__" > /opt/config/openo_ip.txt
798 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
799 echo "__openstack_username__" > /opt/config/openstack_username.txt
800 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
801 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
802 echo "__openstack_region__" > /opt/config/openstack_region.txt
803 echo "__keystone_url__" > /opt/config/keystone.txt
804 echo "__docker_version__" > /opt/config/docker_version.txt
805 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
806 echo "__cloud_env__" > /opt/config/cloud_env.txt
807 echo "__external_dns__" > /opt/config/external_dns.txt
808 echo "__so_repo__" > /opt/config/remote_repo.txt
810 # Download and run install script
811 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
813 chmod +x so_install.sh
817 # Message Router instantiation
818 mrouter_private_port:
819 type: OS::Neutron::Port
821 network: { get_resource: oam_onap }
822 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
824 - { get_resource: onap_sg }
827 type: OS::Neutron::FloatingIP
829 floating_network_id: { get_param: public_net_id }
830 port_id: { get_resource: mrouter_private_port }
833 type: OS::Nova::Server
835 image: { get_param: ubuntu_1404_image }
836 flavor: { get_param: flavor_medium }
839 template: base-message-router
841 base: { get_param: vm_base_name }
842 key_name: { get_resource: vm_key }
844 - port: { get_resource: mrouter_private_port }
845 user_data_format: RAW
849 __nexus_repo__: { get_param: nexus_repo }
850 __nexus_docker_repo__: { get_param: nexus_docker_repo }
851 __nexus_username__: { get_param: nexus_username }
852 __nexus_password__: { get_param: nexus_password }
853 __artifacts_version__: { get_param: artifacts_version }
854 __dns_ip_addr__: { get_param: dns_ip_addr }
855 __gerrit_branch__: { get_param: mr_branch }
856 __cloud_env__: { get_param: cloud_env }
857 __external_dns__: { get_param: external_dns }
858 __mr_repo__: { get_param: mr_repo }
862 # Create configuration files
864 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
865 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
866 echo "__nexus_username__" > /opt/config/nexus_username.txt
867 echo "__nexus_password__" > /opt/config/nexus_password.txt
868 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
869 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
870 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
871 echo "__cloud_env__" > /opt/config/cloud_env.txt
872 echo "__external_dns__" > /opt/config/external_dns.txt
873 echo "__mr_repo__" > /opt/config/remote_repo.txt
875 # Download and run install script
876 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
878 chmod +x mr_install.sh
882 # Robot Framework instantiation
884 type: OS::Neutron::Port
886 network: { get_resource: oam_onap }
887 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
889 - { get_resource: onap_sg }
892 type: OS::Neutron::FloatingIP
894 floating_network_id: { get_param: public_net_id }
895 port_id: { get_resource: robot_private_port }
898 type: OS::Nova::Server
900 image: { get_param: ubuntu_1604_image }
901 flavor: { get_param: flavor_small }
906 base: { get_param: vm_base_name }
907 key_name: { get_resource: vm_key }
909 - port: { get_resource: robot_private_port }
910 user_data_format: RAW
914 __nexus_repo__: { get_param: nexus_repo }
915 __nexus_docker_repo__: { get_param: nexus_docker_repo }
916 __nexus_username__: { get_param: nexus_username }
917 __nexus_password__: { get_param: nexus_password }
918 __network_name__: { get_attr: [oam_onap, name] }
919 __openstack_username__: { get_param: openstack_username }
920 __openstack_api_key__: { get_param : openstack_api_key }
921 __openstack_tenant_id__: { get_param: openstack_tenant_id }
922 __artifacts_version__: { get_param: artifacts_version }
923 __openstack_region__: { get_param: openstack_region }
924 __dns_ip_addr__: { get_param: dns_ip_addr }
925 __gerrit_branch__: { get_param: robot_branch }
926 __cloud_env__: { get_param: cloud_env }
927 __keystone_url__: { get_param: keystone_url }
928 __aai1_ip_addr__: { get_param: aai1_ip_addr }
929 __aai2_ip_addr__: { get_param: aai2_ip_addr }
930 __appc_ip_addr__: { get_param: appc_ip_addr }
931 __dcae_ip_addr__: { get_param: dcae_ip_addr }
932 __so_ip_addr__: { get_param: so_ip_addr }
933 __mr_ip_addr__: { get_param: mr_ip_addr }
934 __policy_ip_addr__: { get_param: policy_ip_addr }
935 __portal_ip_addr__: { get_param: portal_ip_addr }
936 __sdc_ip_addr__: { get_param: sdc_ip_addr }
937 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
938 __vid_ip_addr__: { get_param: vid_ip_addr }
939 __clamp_ip_addr__: { get_param: clamp_ip_addr }
940 __openo_ip_addr__: { get_param: openo_ip_addr }
941 __clamp_ip_addr__: { get_param: clamp_ip_addr }
942 __openo_ip_addr__: { get_param: openo_ip_addr }
943 __music_ip_addr__: { get_param: music_ip_addr }
944 __external_dns__: { get_param: external_dns }
945 __vm_image_name__: { get_param: ubuntu_1404_image }
946 __vm_flavor__: { get_param: flavor_medium }
947 __public_net_id__: { get_param: public_net_id }
948 __script_version__: { get_param: artifacts_version }
949 __robot_repo__: { get_param: robot_repo }
950 __docker_version__: { get_param: robot_docker }
954 # Create configuration files
956 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
957 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
958 echo "__nexus_username__" > /opt/config/nexus_username.txt
959 echo "__nexus_password__" > /opt/config/nexus_password.txt
960 echo "__network_name__" > /opt/config/network.txt
961 echo "__openstack_username__" > /opt/config/openstack_username.txt
962 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
963 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
964 echo "__openstack_region__" > /opt/config/region.txt
965 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
966 echo "__docker_version__" > /opt/config/docker_version.txt
967 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
968 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
969 echo "__keystone_url__" > /opt/config/keystone.txt
970 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
971 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
972 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
973 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
974 echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
975 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
976 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
977 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
978 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
979 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
980 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
981 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
982 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
983 echo "__music_ip_addr__" > /opt/config/music_ip_addr.txt
984 echo "__oof_ip_addr__" > /opt/config/oof_ip_addr.txt
985 echo "__aaf_ip_addr__" > /opt/config/aaf_ip_addr.txt
986 echo "__cloud_env__" > /opt/config/cloud_env.txt
987 echo "__external_dns__" > /opt/config/external_dns.txt
988 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
989 echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
990 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
991 echo "__script_version__" > /opt/config/script_version.txt
992 echo "__public_net_id__" > /opt/config/public_net_id.txt
993 echo "__robot_repo__" > /opt/config/remote_repo.txt
995 # Download and run install script
996 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
998 chmod +x robot_install.sh
1004 type: OS::Neutron::Port
1006 network: { get_resource: oam_onap }
1007 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
1009 - { get_resource: onap_sg }
1012 type: OS::Neutron::FloatingIP
1014 floating_network_id: { get_param: public_net_id }
1015 port_id: { get_resource: vid_private_port }
1018 type: OS::Nova::Server
1020 image: { get_param: ubuntu_1404_image }
1021 flavor: { get_param: flavor_medium }
1026 base: { get_param: vm_base_name }
1027 key_name: { get_resource: vm_key }
1029 - port: { get_resource: vid_private_port }
1030 user_data_format: RAW
1034 __nexus_repo__: { get_param: nexus_repo }
1035 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1036 __nexus_username__: { get_param: nexus_username }
1037 __nexus_password__: { get_param: nexus_password }
1038 __artifacts_version__: { get_param: artifacts_version }
1039 __dns_ip_addr__: { get_param: dns_ip_addr }
1040 __docker_version__: { get_param: vid_docker }
1041 __gerrit_branch__: { get_param: vid_branch }
1042 __cloud_env__: { get_param: cloud_env }
1043 __external_dns__: { get_param: external_dns }
1044 __vid_repo__: { get_param: vid_repo }
1048 # Create configuration files
1049 mkdir -p /opt/config
1050 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1051 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1052 echo "__nexus_username__" > /opt/config/nexus_username.txt
1053 echo "__nexus_password__" > /opt/config/nexus_password.txt
1054 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1055 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1056 echo "__docker_version__" > /opt/config/docker_version.txt
1057 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1058 echo "__cloud_env__" > /opt/config/cloud_env.txt
1059 echo "__external_dns__" > /opt/config/external_dns.txt
1060 echo "__vid_repo__" > /opt/config/remote_repo.txt
1062 # Download and run install script
1063 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
1065 chmod +x vid_install.sh
1069 # SDN-C instantiation
1071 type: OS::Neutron::Port
1073 network: { get_resource: oam_onap }
1074 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
1076 - { get_resource: onap_sg }
1079 type: OS::Neutron::FloatingIP
1081 floating_network_id: { get_param: public_net_id }
1082 port_id: { get_resource: sdnc_private_port }
1085 type: OS::Nova::Server
1087 image: { get_param: ubuntu_1404_image }
1088 flavor: { get_param: flavor_medium }
1093 base: { get_param: vm_base_name }
1094 key_name: { get_resource: vm_key }
1096 - port: { get_resource: sdnc_private_port }
1097 user_data_format: RAW
1101 __nexus_repo__: { get_param: nexus_repo }
1102 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1103 __nexus_username__: { get_param: nexus_username }
1104 __nexus_password__: { get_param: nexus_password }
1105 __artifacts_version__: { get_param: artifacts_version }
1106 __dns_ip_addr__: { get_param: dns_ip_addr }
1107 __docker_version__: { get_param: sdnc_docker }
1108 __gerrit_branch__: { get_param: sdnc_branch }
1109 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1110 __cloud_env__: { get_param: cloud_env }
1111 __external_dns__: { get_param: external_dns }
1112 __sdnc_repo__: { get_param: sdnc_repo }
1116 # Create configuration files
1117 mkdir -p /opt/config
1118 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1119 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1120 echo "__nexus_username__" > /opt/config/nexus_username.txt
1121 echo "__nexus_password__" > /opt/config/nexus_password.txt
1122 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1123 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1124 echo "__docker_version__" > /opt/config/docker_version.txt
1125 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1126 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1127 echo "__cloud_env__" > /opt/config/cloud_env.txt
1128 echo "__external_dns__" > /opt/config/external_dns.txt
1129 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1131 # Download and run install script
1132 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1134 chmod +x sdnc_install.sh
1140 type: OS::Neutron::Port
1142 network: { get_resource: oam_onap }
1143 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1145 - { get_resource: onap_sg }
1148 type: OS::Neutron::FloatingIP
1150 floating_network_id: { get_param: public_net_id }
1151 port_id: { get_resource: sdc_private_port }
1154 type: OS::Cinder::Volume
1160 type: OS::Nova::Server
1162 image: { get_param: ubuntu_1604_image }
1163 flavor: { get_param: flavor_large }
1168 base: { get_param: vm_base_name }
1169 key_name: { get_resource: vm_key }
1171 - port: { get_resource: sdc_private_port }
1172 block_device_mapping:
1173 - device_name: /dev/vdb
1174 volume_id: {get_resource: sdc_volume_data}
1175 user_data_format: RAW
1179 __nexus_repo__: { get_param: nexus_repo }
1180 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1181 __nexus_username__: { get_param: nexus_username }
1182 __nexus_password__: { get_param: nexus_password }
1183 __env_name__: { get_param: dmaap_topic }
1184 __artifacts_version__: { get_param: artifacts_version }
1185 __dns_ip_addr__: { get_param: dns_ip_addr }
1186 __mr_ip_addr__: { get_param: mr_ip_addr }
1187 __private_ip__: { get_param: sdc_ip_addr }
1188 __docker_version__: { get_param: sdc_docker }
1189 __gerrit_branch__: { get_param: sdc_branch }
1190 __cloud_env__: { get_param: cloud_env }
1191 __external_dns__: { get_param: external_dns }
1192 __sdc_repo__: { get_param: sdc_repo }
1196 # Create configuration files
1197 mkdir -p /opt/config
1198 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1199 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1200 echo "__nexus_username__" > /opt/config/nexus_username.txt
1201 echo "__nexus_password__" > /opt/config/nexus_password.txt
1202 echo "__env_name__" > /opt/config/env_name.txt
1203 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1204 echo "__private_ip__" > /opt/config/private_ip.txt
1205 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1206 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1207 echo "__docker_version__" > /opt/config/docker_version.txt
1208 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1209 echo "__cloud_env__" > /opt/config/cloud_env.txt
1210 echo "__external_dns__" > /opt/config/external_dns.txt
1211 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1213 # Download and run install script
1214 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1216 chmod +x sdc_install.sh
1220 # PORTAL instantiation
1221 portal_private_port:
1222 type: OS::Neutron::Port
1224 network: { get_resource: oam_onap }
1225 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1227 - { get_resource: onap_sg }
1230 type: OS::Neutron::FloatingIP
1232 floating_network_id: { get_param: public_net_id }
1233 port_id: { get_resource: portal_private_port }
1236 type: OS::Nova::Server
1238 image: { get_param: ubuntu_1404_image }
1239 flavor: { get_param: flavor_medium }
1242 template: base-portal
1244 base: { get_param: vm_base_name }
1245 key_name: { get_resource: vm_key }
1247 - port: { get_resource: portal_private_port }
1248 user_data_format: RAW
1252 __nexus_repo__: { get_param: nexus_repo }
1253 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1254 __nexus_username__: { get_param: nexus_username }
1255 __nexus_password__: { get_param: nexus_password }
1256 __artifacts_version__: { get_param: artifacts_version }
1257 __dns_ip_addr__: { get_param: dns_ip_addr }
1258 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1259 __docker_version__: { get_param: portal_docker }
1260 __gerrit_branch__: { get_param: portal_branch }
1261 __cli_docker__: { get_param: cli_docker }
1262 __cloud_env__: { get_param: cloud_env }
1263 __external_dns__: { get_param: external_dns }
1264 __portal_repo__: { get_param: portal_repo }
1268 # Create configuration files
1269 mkdir -p /opt/config
1270 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1271 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1272 echo "__nexus_username__" > /opt/config/nexus_username.txt
1273 echo "__nexus_password__" > /opt/config/nexus_password.txt
1274 echo "__public_ip__" > /opt/config/public_ip.txt
1275 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1276 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1277 echo "__docker_version__" > /opt/config/docker_version.txt
1278 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1279 echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1280 echo "__cloud_env__" > /opt/config/cloud_env.txt
1281 echo "__external_dns__" > /opt/config/external_dns.txt
1282 echo "__portal_repo__" > /opt/config/remote_repo.txt
1284 # Download and run install script
1285 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1287 chmod +x portal_install.sh
1291 # Policy Engine instantiation
1292 policy_private_port:
1293 type: OS::Neutron::Port
1295 network: { get_resource: oam_onap }
1296 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1298 - { get_resource: onap_sg }
1301 type: OS::Neutron::FloatingIP
1303 floating_network_id: { get_param: public_net_id }
1304 port_id: { get_resource: policy_private_port }
1307 type: OS::Nova::Server
1309 image: { get_param: ubuntu_1404_image }
1310 flavor: { get_param: flavor_medium }
1313 template: base-policy
1315 base: { get_param: vm_base_name }
1316 key_name: { get_resource: vm_key }
1318 - port: { get_resource: policy_private_port }
1319 user_data_format: RAW
1323 __nexus_repo__: { get_param: nexus_repo }
1324 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1325 __nexus_username__: { get_param: nexus_username }
1326 __nexus_password__: { get_param: nexus_password }
1327 __artifacts_version__: { get_param: artifacts_version }
1328 __dns_ip_addr__: { get_param: dns_ip_addr }
1329 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1330 __docker_version__: { get_param: policy_docker }
1331 __gerrit_branch__: { get_param: policy_branch }
1332 __cloud_env__: { get_param: cloud_env }
1333 __external_dns__: { get_param: external_dns }
1334 __policy_repo__: { get_param: policy_repo }
1338 # Create configuration files
1339 mkdir -p /opt/config
1340 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1341 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1342 echo "__nexus_username__" > /opt/config/nexus_username.txt
1343 echo "__nexus_password__" > /opt/config/nexus_password.txt
1344 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1345 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1346 echo "__public_ip__" > /opt/config/public_ip.txt
1347 echo "__docker_version__" > /opt/config/docker_version.txt
1348 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1349 echo "__cloud_env__" > /opt/config/cloud_env.txt
1350 echo "__external_dns__" > /opt/config/external_dns.txt
1351 echo "__policy_repo__" > /opt/config/remote_repo.txt
1353 # Download and run install script
1354 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1356 chmod +x policy_install.sh
1360 # APP-C instantiation
1362 type: OS::Neutron::Port
1364 network: { get_resource: oam_onap }
1365 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1367 - { get_resource: onap_sg }
1370 type: OS::Neutron::FloatingIP
1372 floating_network_id: { get_param: public_net_id }
1373 port_id: { get_resource: appc_private_port }
1376 type: OS::Nova::Server
1378 image: { get_param: ubuntu_1404_image }
1379 flavor: { get_param: flavor_medium }
1384 base: { get_param: vm_base_name }
1385 key_name: { get_resource: vm_key }
1387 - port: { get_resource: appc_private_port }
1388 user_data_format: RAW
1392 __nexus_repo__: { get_param: nexus_repo }
1393 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1394 __nexus_username__: { get_param: nexus_username }
1395 __nexus_password__: { get_param: nexus_password }
1396 __dmaap_topic__: { get_param: dmaap_topic }
1397 __artifacts_version__: { get_param: artifacts_version }
1398 __dns_ip_addr__: { get_param: dns_ip_addr }
1399 __docker_version__: { get_param: appc_docker }
1400 __gerrit_branch__: { get_param: appc_branch }
1401 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1402 __cloud_env__: { get_param: cloud_env }
1403 __external_dns__: { get_param: external_dns }
1404 __appc_repo__: { get_param: appc_repo }
1408 # Create configuration files
1409 mkdir -p /opt/config
1410 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1411 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1412 echo "__nexus_username__" > /opt/config/nexus_username.txt
1413 echo "__nexus_password__" > /opt/config/nexus_password.txt
1414 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1415 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1416 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1417 echo "__docker_version__" > /opt/config/docker_version.txt
1418 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1419 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1420 echo "__cloud_env__" > /opt/config/cloud_env.txt
1421 echo "__external_dns__" > /opt/config/external_dns.txt
1422 echo "__appc_repo__" > /opt/config/remote_repo.txt
1424 # Download and run install script
1425 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1427 chmod +x appc_install.sh
1431 # CLAMP instantiation
1433 type: OS::Neutron::Port
1435 network: { get_resource: oam_onap }
1436 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1438 - { get_resource: onap_sg }
1441 type: OS::Neutron::FloatingIP
1443 floating_network_id: { get_param: public_net_id }
1444 port_id: { get_resource: clamp_private_port }
1447 type: OS::Nova::Server
1449 image: { get_param: ubuntu_1604_image }
1450 flavor: { get_param: flavor_medium }
1453 template: base-clamp
1455 base: { get_param: vm_base_name }
1456 key_name: { get_resource: vm_key }
1458 - port: { get_resource: clamp_private_port }
1459 user_data_format: RAW
1463 __nexus_repo__: { get_param: nexus_repo }
1464 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1465 __nexus_username__: { get_param: nexus_username }
1466 __nexus_password__: { get_param: nexus_password }
1467 __openstack_username__: { get_param: openstack_username }
1468 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1469 __openstack_api_key__: { get_param: openstack_api_key }
1470 __openstack_region__: { get_param: openstack_region }
1471 __keystone_url__: { get_param: keystone_url }
1472 __dmaap_topic__: { get_param: dmaap_topic }
1473 __artifacts_version__: { get_param: artifacts_version }
1474 __dns_ip_addr__: { get_param: dns_ip_addr }
1475 __docker_version__: { get_param: clamp_docker }
1476 __gerrit_branch__: { get_param: clamp_branch }
1477 __cloud_env__: { get_param: cloud_env }
1478 __external_dns__: { get_param: external_dns }
1479 __clamp_repo__: { get_param: clamp_repo }
1483 # Create configuration files
1484 mkdir -p /opt/config
1485 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1486 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1487 echo "__nexus_username__" > /opt/config/nexus_username.txt
1488 echo "__nexus_password__" > /opt/config/nexus_password.txt
1489 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1490 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1491 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1492 echo "__openstack_username__" > /opt/config/openstack_username.txt
1493 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1494 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1495 echo "__openstack_region__" > /opt/config/openstack_region.txt
1496 echo "__keystone_url__" > /opt/config/keystone.txt
1497 echo "__docker_version__" > /opt/config/docker_version.txt
1498 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1499 echo "__cloud_env__" > /opt/config/cloud_env.txt
1500 echo "__external_dns__" > /opt/config/external_dns.txt
1501 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1503 # Download and run install script
1504 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1506 chmod +x clamp_install.sh
1510 # OPEN-O VM instantiation
1512 type: OS::Neutron::Port
1514 network: { get_resource: oam_onap }
1515 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1517 - { get_resource: onap_sg }
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_large }
1532 template: base-multi-service
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 __so_ip_addr__: { get_param: so_ip_addr }
1554 __mr_ip_addr__: { get_param: mr_ip_addr }
1555 __policy_ip_addr__: { get_param: policy_ip_addr }
1556 __portal_ip_addr__: { get_param: portal_ip_addr }
1557 __robot_ip_addr__: { get_param: robot_ip_addr }
1558 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1559 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1560 __vid_ip_addr__: { get_param: vid_ip_addr }
1561 __clamp_ip_addr__: { get_param: clamp_ip_addr }
1562 __openo_ip_addr__: { get_param: openo_ip_addr }
1563 __cloud_env__: { get_param: cloud_env }
1564 __external_dns__: { get_param: external_dns }
1565 __vnfsdk_branch__: { get_param: vnfsdk_branch }
1566 __msb_docker__: { get_param: msb_docker }
1567 __mvim_docker__: { get_param: mvim_docker }
1568 __uui_docker__: { get_param: uui_docker }
1569 __esr_docker__: { get_param: esr_docker }
1570 __vnfsdk_repo__: { get_param: vnfsdk_repo }
1571 __vfc_nokia_docker__: { get_param: vfc_nokia_docker }
1572 __vfc_nokiav2_docker__: { get_param: vfc_nokiav2_docker }
1573 __cbam_ip__: { get_param: cbam_ip }
1574 __cbam_username__: { get_param: cbam_username }
1575 __cbam_password__: { get_param: cbam_password }
1576 __vfc_ztevnfmdriver_docker__: { get_param: vfc_ztevnfmdriver_docker }
1577 __vfc_ztesdncdriver_docker__: { get_param: vfc_ztesdncdriver_docker }
1578 __vfc_vnfres_docker__: { get_param: vfc_vnfres_docker }
1579 __vfc_vnfmgr_docker__: { get_param: vfc_vnfmgr_docker }
1580 __vfc_vnflcm_docker__: { get_param: vfc_vnflcm_docker }
1581 __vfc_resmanagement_docker__: { get_param: vfc_resmanagement_docker }
1582 __vfc_nslcm_docker__: { get_param: vfc_nslcm_docker }
1583 __vfc_huawei_docker__: { get_param: vfc_huawei_docker }
1584 __vfc_jujudriver_docker__: { get_param: vfc_jujudriver_docker }
1585 __vfc_gvnfmdriver_docker__: { get_param: vfc_gvnfmdriver_docker }
1586 __vfc_emsdriver_docker__: { get_param: vfc_emsdriver_docker }
1587 __vfc_catalog_docker__: { get_param: vfc_catalog_docker }
1588 __vfc_wfengine_mgrservice_docker__: { get_param: vfc_wfengine_mgrservice_docker }
1589 __vfc_wfengine_activiti_docker__: { get_param: vfc_wfengine_activiti_docker }
1593 # Create configuration files
1594 mkdir -p /opt/config
1595 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1596 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1597 echo "__nexus_username__" > /opt/config/nexus_username.txt
1598 echo "__nexus_password__" > /opt/config/nexus_password.txt
1599 echo "__cloud_env__" > /opt/config/cloud_env.txt
1600 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1601 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1602 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1603 echo "__external_dns__" > /opt/config/external_dns.txt
1604 echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1605 echo "__msb_docker__" > /opt/config/msb_docker.txt
1606 echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1607 echo "__uui_docker__" > /opt/config/uui_docker.txt
1608 echo "__esr_docker__" > /opt/config/esr_docker.txt
1609 echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1610 echo "__cbam_ip__" > /opt/config/cbam_ip.txt
1611 echo "__cbam_username__" > /opt/config/cbam_username.txt
1612 echo "__cbam_password__" > /opt/config/cbam_password.txt
1614 echo "export NOKIA_DOCKER_VER=__vfc_nokia_docker__" >> /opt/config/vfc_docker.txt
1615 echo "export NOKIAV2_DOCKER_VER=__vfc_nokiav2_docker__" >> /opt/config/vfc_docker.txt
1616 echo "export ZTEVNFMDRIVER_DOCKER_VER=__vfc_ztevnfmdriver_docker__" >> /opt/config/vfc_docker.txt
1617 echo "export ZTESDNCDRIVER_DOCKER_VER=__vfc_ztesdncdriver_docker__" >> /opt/config/vfc_docker.txt
1618 echo "export VNFRES_DOCKER_VER=__vfc_vnfres_docker__" >> /opt/config/vfc_docker.txt
1619 echo "export VNFMGR_DOCKER_VER=__vfc_vnfmgr_docker__" >> /opt/config/vfc_docker.txt
1620 echo "export VNFLCM_DOCKER_VER=__vfc_vnflcm_docker__" >> /opt/config/vfc_docker.txt
1621 echo "export RESMANAGEMENT_DOCKER_VER=__vfc_resmanagement_docker__" >> /opt/config/vfc_docker.txt
1622 echo "export NSLCM_DOCKER_VER=__vfc_nslcm_docker__" >> /opt/config/vfc_docker.txt
1623 echo "export HUAWEI_DOCKER_VER=__vfc_huawei_docker__" >> /opt/config/vfc_docker.txt
1624 echo "export JUJUDRIVER_DOCKER_VER=__vfc_jujudriver_docker__" >> /opt/config/vfc_docker.txt
1625 echo "export GVNFMDRIVER_DOCKER_VER=__vfc_gvnfmdriver_docker__" >> /opt/config/vfc_docker.txt
1626 echo "export EMSDRIVER_DOCKER_VER=__vfc_emsdriver_docker__" >> /opt/config/vfc_docker.txt
1627 echo "export CATALOG_DOCKER_VER=__vfc_catalog_docker__" >> /opt/config/vfc_docker.txt
1628 echo "export MGRSERVICE_DOCKER_VER=__vfc_wfengine_mgrservice_docker__" >> /opt/config/vfc_docker.txt
1629 echo "export ACTIVITI_DOCKER_VER=__vfc_wfengine_activiti_docker__" >> /opt/config/vfc_docker.txt
1631 # Create env file with the IP address of all ONAP components
1632 echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1633 echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1634 echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1635 echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1636 echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1637 echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1638 echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1639 echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1640 echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1641 echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1642 echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1643 echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1644 echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1645 echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1647 # Download and run install script
1648 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1650 chmod +x openo_install.sh
1654 # DCAE GEN 2 Controller instantiation
1655 dcae_c_private_port:
1656 type: OS::Neutron::Port
1658 network: { get_resource: oam_onap }
1659 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1661 - { get_resource: onap_sg }
1664 type: OS::Neutron::FloatingIP
1666 floating_network_id: { get_param: public_net_id }
1667 port_id: { get_resource: dcae_c_private_port }
1670 type: OS::Nova::Server
1672 image: { get_param: ubuntu_1604_image }
1673 flavor: { get_param: flavor_small }
1676 template: base-dcae-bootstrap
1678 base: { get_param: vm_base_name }
1679 key_name: { get_resource: vm_key }
1681 - port: { get_resource: dcae_c_private_port }
1683 # - { get_resource: onap_sg }
1684 user_data_format: RAW
1688 __rand_str__: { get_resource: random-str }
1690 __artifacts_version__: { get_param: artifacts_version }
1691 __docker_version__: { get_param: dcae_docker }
1692 __nexus_repo__: { get_param: nexus_repo }
1693 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1694 __nexus_username__: { get_param: nexus_username }
1695 __nexus_password__: { get_param: nexus_password }
1696 # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1697 __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1698 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1699 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1700 __dns_ip_addr__: { get_param: dns_ip_addr }
1701 __external_dns__: { get_param: external_dns }
1702 __dns_forwarder__: { get_param: dns_forwarder }
1703 __dcae_domain__: { get_param: dcae_domain }
1704 # conf for VMs DCAE is to bringup
1705 __openstack_keystone_url__: { get_param: keystone_url }
1706 __dcae_keystone_url__: { get_param: dcae_keystone_url }
1707 __dcaeos_cloud_env__: { get_param: cloud_env }
1708 __dcaeos_keystone_url__: { get_param: dcae_keystone_url }
1709 __dcaeos_region__: { get_param: openstack_region }
1710 __dcaeos_tenant_id__: { get_param: openstack_tenant_id }
1711 __dcaeos_tenant_name__: { get_param: openstack_tenant_name }
1712 __dcaeos_security_group__:
1714 template: 'onap_sg_rand'
1716 rand: { get_resource: random-str }
1717 #__dcaeos_security_group__: { get_attr: [onap_sg, name] }
1718 __dcaeos_username__: { get_param: openstack_username }
1719 __dcaeos_password__: { get_param: openstack_api_key }
1720 __dcaeos_key_name__: { get_resource: vm_key }
1721 __dcaeos_public_key__: { get_param: dcae_public_key }
1722 __dcaeos_private_key__: { get_param: dcae_private_key }
1723 __dcaeos_private_network_name__: { get_attr: [oam_onap, name] }
1724 __dcaeos_public_network_name__: { get_param: public_net_name }
1725 __dcaeos_ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1726 __dcaeos_centos_7_image__: { get_param: dcae_centos_7_image }
1727 __dcaeos_flavor_id__: { get_param: flavor_medium }
1728 __dcaeos_flavor_id_cdap__: { get_param: flavor_large }
1729 __dcaeos_dnsaas_config_enabled__: { get_param: dnsaas_config_enabled }
1730 __dcaeos_dnsaas_region__: { get_param: dnsaas_region }
1731 __dcaeos_dnsaas_keystone_url__: { get_param: dnsaas_keystone_url }
1732 __dnsaas_tenant_name__: { get_param: dnsaas_tenant_name }
1733 __dcaeos_dnsaas_username__: { get_param: dnsaas_username }
1734 __dcaeos_dnsaas_password__: { get_param: dnsaas_password }
1736 __mr_ip_addr__: { get_param: mr_ip_addr }
1737 __policy_ip_addr__: { get_param: policy_ip_addr }
1738 __sdc_ip_addr__: { get_param: sdc_ip_addr }
1739 __openo_ip_addr__: { get_param: openo_ip_addr }
1740 __aai1_ip_addr__: { get_param: aai1_ip_addr }
1741 __aai2_ip_addr__: { get_param: aai2_ip_addr }
1743 __dns_floating_ip_addr__: { get_attr: [dns_floating_ip, floating_ip_address] }
1744 __aai1_floating_ip_addr__: { get_attr: [aai1_floating_ip, floating_ip_address] }
1745 __aai2_floating_ip_addr__: { get_attr: [aai2_floating_ip, floating_ip_address] }
1746 __mrouter_floating_ip_addr__: { get_attr: [mrouter_floating_ip, floating_ip_address] }
1747 __sdc_floating_ip_addr__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1748 __policy_floating_ip_addr__: { get_attr: [policy_floating_ip, floating_ip_address] }
1749 __openo_floating_ip_addr__: { get_attr: [openo_floating_ip, floating_ip_address] }
1750 __dcae_c_floating_ip_addr__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1755 # Create configuration files
1756 mkdir -p /opt/config
1757 echo "__rand_str__" > /opt/config/dcae_zone.txt
1758 echo "__rand_str__" > /opt/config/rand_str.txt
1760 echo "__docker_version__" > /opt/config/docker_version.txt
1761 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1762 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1763 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1764 echo "__nexus_username__" > /opt/config/nexus_username.txt
1765 echo "__nexus_password__" > /opt/config/nexus_password.txt
1766 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1767 # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1768 echo "__mac_addr__" > /opt/config/mac_addr.txt
1769 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1770 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1771 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1772 echo "__external_dns__" > /opt/config/external_dns.txt
1773 echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
1774 echo "__dcae_domain__" > /opt/config/dcae_domain.txt
1775 # conf for the OpenStack env where DCAE is deployed
1776 echo "__openstack_keystone_url__" > /opt/config/openstack_keystone_url.txt
1777 echo "__dcaeos_cloud_env__" > /opt/config/cloud_env.txt
1778 echo "__dcaeos_keystone_url__" > /opt/config/keystone_url.txt
1779 echo "__dcaeos_region__" > /opt/config/openstack_region.txt
1780 echo "__dcaeos_tenant_id__" > /opt/config/tenant_id.txt
1781 echo "__dcaeos_tenant_name__" > /opt/config/tenant_name.txt
1782 echo "__dcaeos_username__" > /opt/config/openstack_user.txt
1783 echo "__dcaeos_password__" > /opt/config/openstack_password.txt
1784 echo "__dcaeos_key_name__" > /opt/config/key_name.txt
1785 echo "__dcaeos_public_key__" > /opt/config/pub_key.txt
1786 echo "__dcaeos_private_key__" > /opt/config/priv_key
1787 echo "__dcaeos_private_network_name__" > /opt/config/openstack_private_network_name.txt
1788 echo "__dcaeos_public_network_name__" > /opt/config/public_net_name.txt
1789 echo "__dcaeos_public_network_name__" > /opt/config/public_net_id.txt
1790 echo "__dcaeos_ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1791 echo "__dcaeos_centos_7_image__" > /opt/config/centos_7_image.txt
1792 echo "__dcaeos_security_group__" > /opt/config/security_group.txt
1793 echo "__dcaeos_flavor_id__" > /opt/config/flavor_id.txt
1794 echo "__dcaeos_flavor_id_cdap__" > /opt/config/flavor_id_cdap.txt
1795 echo "__dcaeos_dnsaas_config_enabled__" > /opt/config/dnsaas_config_enabled.txt
1796 echo "__dcaeos_dnsaas_region__" > /opt/config/dnsaas_region.txt
1797 echo "__dcaeos_dnsaas_keystone_url__" > /opt/config/dnsaas_keystone_url.txt
1798 echo "__dnsaas_tenant_name__" > /opt/config/dnsaas_tenant_name.txt
1799 echo "__dcaeos_dnsaas_username__" > /opt/config/dnsaas_username.txt
1800 echo "__dcaeos_dnsaas_password__" > /opt/config/dnsaas_password.txt
1801 # fixed private IP addresses of other ONAP components
1802 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1803 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
1804 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
1805 echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
1806 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
1807 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
1809 echo "__dns_floating_ip_addr__" > /opt/config/dns_floating_ip_addr.txt
1810 echo "__aai1_floating_ip_addr__" > /opt/config/aai1_floating_ip_addr.txt
1811 echo "__aai2_floating_ip_addr__" > /opt/config/aai2_floating_ip_addr.txt
1812 echo "__mrouter_floating_ip_addr__" > /opt/config/mrouter_floating_ip_addr.txt
1813 echo "__sdc_floating_ip_addr__" > /opt/config/sdc_floating_ip_addr.txt
1814 echo "__policy_floating_ip_addr__" > /opt/config/policy_floating_ip_addr.txt
1815 echo "__openo_floating_ip_addr__" > /opt/config/openo_floating_ip_addr.txt
1816 echo "__dcae_c_floating_ip_addr__" > /opt/config/dcae_c_floating_ip_addr.txt
1818 # Download and run install script
1819 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1821 chmod +x dcae2_install.sh
1822 ./dcae2_install.sh > /tmp/dcae2_install.log 2>&1
1825 # MUSIC instantiation
1827 type: OS::Neutron::Port
1829 network: { get_resource: oam_onap }
1830 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: music_ip_addr }}]
1832 - { get_resource: onap_sg }
1835 type: OS::Neutron::FloatingIP
1837 floating_network_id: { get_param: public_net_id }
1838 port_id: { get_resource: music_private_port }
1841 type: OS::Nova::Server
1843 image: { get_param: ubuntu_1404_image }
1844 flavor: { get_param: flavor_large }
1847 template: base-music
1849 base: { get_param: vm_base_name }
1850 key_name: { get_resource: vm_key }
1852 - port: { get_resource: music_private_port }
1853 user_data_format: RAW
1857 __nexus_repo__: { get_param: nexus_repo }
1858 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1859 __nexus_username__: { get_param: nexus_username }
1860 __nexus_password__: { get_param: nexus_password }
1861 __artifacts_version__: { get_param: artifacts_version }
1862 __dns_ip_addr__: { get_param: dns_ip_addr }
1863 __docker_version__: { get_param: music_docker }
1864 __cloud_env__: { get_param: cloud_env }
1865 __external_dns__: { get_param: external_dns }
1869 # Create configuration files
1870 mkdir -p /opt/config
1871 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1872 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1873 echo "__nexus_username__" > /opt/config/nexus_username.txt
1874 echo "__nexus_password__" > /opt/config/nexus_password.txt
1875 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1876 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1877 echo "__docker_version__" > /opt/config/docker_version.txt
1878 echo "__cloud_env__" > /opt/config/cloud_env.txt
1879 echo "__external_dns__" > /opt/config/external_dns.txt
1881 # Download and run install script
1882 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/music_install.sh -o /opt/music_install.sh
1884 chmod +x music_install.sh
1890 type: OS::Neutron::Port
1892 network: { get_resource: oam_onap }
1893 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: oof_ip_addr }}]
1895 - { get_resource: onap_sg }
1898 type: OS::Neutron::FloatingIP
1900 floating_network_id: { get_param: public_net_id }
1901 port_id: { get_resource: oof_private_port }
1904 type: OS::Nova::Server
1906 image: { get_param: ubuntu_1404_image }
1907 flavor: { get_param: flavor_medium }
1912 base: { get_param: vm_base_name }
1913 key_name: { get_resource: vm_key }
1915 - port: { get_resource: oof_private_port }
1916 user_data_format: RAW
1920 __nexus_repo__: { get_param: nexus_repo }
1921 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1922 __nexus_username__: { get_param: nexus_username }
1923 __nexus_password__: { get_param: nexus_password }
1924 __artifacts_version__: { get_param: artifacts_version }
1925 __dns_ip_addr__: { get_param: dns_ip_addr }
1926 __docker_version__: { get_param: oof_docker }
1927 __cloud_env__: { get_param: cloud_env }
1928 __external_dns__: { get_param: external_dns }
1932 # Create configuration files
1933 mkdir -p /opt/config
1934 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1935 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1936 echo "__nexus_username__" > /opt/config/nexus_username.txt
1937 echo "__nexus_password__" > /opt/config/nexus_password.txt
1938 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1939 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1940 echo "__docker_version__" > /opt/config/docker_version.txt
1941 echo "__cloud_env__" > /opt/config/cloud_env.txt
1942 echo "__external_dns__" > /opt/config/external_dns.txt
1944 # Download and run install script
1945 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/oof_install.sh -o /opt/oof_install.sh
1947 chmod +x oof_install.sh
1953 type: OS::Neutron::Port
1955 network: { get_resource: oam_onap }
1956 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aaf_ip_addr }}]
1958 - { get_resource: onap_sg }
1961 type: OS::Neutron::FloatingIP
1963 floating_network_id: { get_param: public_net_id }
1964 port_id: { get_resource: aaf_private_port }
1967 type: OS::Nova::Server
1969 image: { get_param: ubuntu_1404_image }
1970 flavor: { get_param: flavor_medium }
1975 base: { get_param: vm_base_name }
1976 key_name: { get_resource: vm_key }
1978 - port: { get_resource: aaf_private_port }
1979 user_data_format: RAW
1983 __nexus_repo__: { get_param: nexus_repo }
1984 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1985 __nexus_username__: { get_param: nexus_username }
1986 __nexus_password__: { get_param: nexus_password }
1987 __artifacts_version__: { get_param: artifacts_version }
1988 __dns_ip_addr__: { get_param: dns_ip_addr }
1989 __docker_version__: { get_param: aaf_docker }
1990 __cloud_env__: { get_param: cloud_env }
1991 __external_dns__: { get_param: external_dns }
1995 # Create configuration files
1996 mkdir -p /opt/config
1997 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1998 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1999 echo "__nexus_username__" > /opt/config/nexus_username.txt
2000 echo "__nexus_password__" > /opt/config/nexus_password.txt
2001 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
2002 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
2003 echo "__docker_version__" > /opt/config/docker_version.txt
2004 echo "__cloud_env__" > /opt/config/cloud_env.txt
2005 echo "__external_dns__" > /opt/config/external_dns.txt
2007 # Download and run install script
2008 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aaf_install.sh -o /opt/aaf_install.sh
2010 chmod +x aaf_install.sh
2015 type: OS::Neutron::Port
2017 network: { get_resource: oam_onap }
2018 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: nbi_ip_addr }}]
2020 - { get_resource: onap_sg }
2023 type: OS::Neutron::FloatingIP
2025 floating_network_id: { get_param: public_net_id }
2026 port_id: { get_resource: nbi_private_port }
2029 type: OS::Nova::Server
2031 image: { get_param: ubuntu_1604_image }
2032 flavor: { get_param: flavor_small }
2037 base: { get_param: vm_base_name }
2038 key_name: { get_resource: vm_key }
2040 - port: { get_resource: nbi_private_port }
2041 user_data_format: RAW
2045 __nexus_repo__: { get_param: nexus_repo }
2046 __nexus_docker_repo__: { get_param: nexus_docker_repo }
2047 __nexus_username__: { get_param: nexus_username }
2048 __nexus_password__: { get_param: nexus_password }
2049 __artifacts_version__: { get_param: artifacts_version }
2050 __dns_ip_addr__: { get_param: dns_ip_addr }
2051 __docker_version__: { get_param: nbi_docker }
2052 __cloud_env__: { get_param: cloud_env }
2053 __external_dns__: { get_param: external_dns }
2057 # Create configuration files
2058 mkdir -p /opt/config
2059 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
2060 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
2061 echo "__nexus_username__" > /opt/config/nexus_username.txt
2062 echo "__nexus_password__" > /opt/config/nexus_password.txt
2063 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
2064 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
2065 echo "__docker_version__" > /opt/config/docker_version.txt
2066 echo "__cloud_env__" > /opt/config/cloud_env.txt
2067 echo "__external_dns__" > /opt/config/external_dns.txt
2069 # Download and run install script
2070 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/nbi_install.sh -o /opt/nbi_install.sh
2072 chmod +x nbi_install.sh