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: Base name of ONAP VMs
77 description: Public/Private key pair name
81 description: Public key to be installed on the compute instance
85 description: Complete URL for the Nexus repository.
89 description: Complete URL for the Nexus repository for docker images.
93 description: Nexus Repository username
97 description: Nexus Repository Password
101 description: Artifacts version of ONAP components
105 label: Version number of ONAP docker images
109 label: Gerrit code branch
110 description: Gerrit branch where to download the code from
114 description: DMaaP Topic name
118 description: Openstack tenant ID
122 description: Openstack username
124 openstack_auth_method:
126 description: Openstack authentication method (password VS. api-key)
130 description: Openstack API Key
134 description: URL of Openstack Horizon
138 description: URL of Openstack Keystone
142 description: Cloud Provider Name
144 ######################
146 # Network parameters #
148 ######################
151 type: comma_delimited_list
152 description: List of External DNS for OAM ONAP network
156 description: First element of the dns_list for ONAP network
158 ### Private IP addresses ###
161 description: CIDR of the OAM ONAP network
165 description: AAI Instance 1 IP Address
169 description: AAI Instance 2 IP Address
173 description: APP-C IP Address
177 description: DCAE IP Address
181 description: DCAE Collector IP Address
185 description: DCAE Database IP Address
189 description: Hadoop VM1 IP Address
193 description: Hadoop VM2 IP Address
197 description: Hadoop VM3 IP Address
201 description: DNS IP Address
205 description: MSO IP Address
209 description: Message Router IP Address
213 description: Policy Engine IP Address
217 description: Portal IP Address
221 description: Robot Framework IP Address
225 description: SDC IP Address
229 description: SDN-C IP Address
233 description: VID IP Address
237 description: CLAMP IP Address
241 description: DCAE Collector Floating IP Address
245 description: DCAE Collector Database Floating IP Address
249 description: Hadoop VM1 Floating IP Address
253 description: Hadoop VM2 Floating IP Address
257 description: Hadoop VM3 Floating IP Address
259 ###########################
261 # Parameters used by DCAE #
263 ###########################
265 dcae_base_environment:
267 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
271 description: DCAE Zone to use in VM names created by DCAE controller
275 description: DCAE State to use in VM names created by DCAE controller
279 description: Root URL of Nexus repository
283 description: Snapshot of Maven repository for DCAE deployment
287 description: Region where the DCAE controller will spin the VMs
291 description: Branch of the Gitlab repository
295 description: DCAE Code Version Number
297 #####################
299 # ONAP repositories #
301 #####################
305 description: AAI repository
309 description: APPC repository
313 description: DCAE repository
317 description: Message Router repository
321 description: MSO repository
325 description: Policy repository
329 description: Portal repository
333 description: Robot repository
337 description: SDC repository
341 description: SDNC repository
345 description: VID repository
349 description: CLAMP repository
360 type: OS::Heat::RandomString
365 # Public key used to access ONAP components
367 type: OS::Nova::KeyPair
373 base: { get_param: key_name }
374 rand: { get_resource: random-str }
375 public_key: { get_param: pub_key }
376 save_private_key: false
379 # ONAP management private network
381 type: OS::Neutron::Net
385 template: oam_onap_rand
387 rand: { get_resource: random-str }
390 type: OS::Neutron::Subnet
394 template: oam_onap_rand
396 rand: { get_resource: random-str }
397 network_id: { get_resource: oam_onap }
398 cidr: { get_param: oam_network_cidr }
399 dns_nameservers: { get_param: dns_list }
402 type: OS::Neutron::Router
404 external_gateway_info:
405 network: { get_param: public_net_id }
408 type: OS::Neutron::RouterInterface
410 router_id: { get_resource: router }
411 subnet_id: { get_resource: oam_onap_subnet }
414 # DNS Server instantiation
416 type: OS::Neutron::Port
418 network: { get_resource: oam_onap }
419 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
422 type: OS::Neutron::FloatingIP
424 floating_network_id: { get_param: public_net_id }
425 port_id: { get_resource: dns_private_port }
428 type: OS::Nova::Server
430 image: { get_param: ubuntu_1404_image }
431 flavor: { get_param: flavor_small }
434 template: base-dns-server
436 base: { get_param: vm_base_name }
437 key_name: { get_resource: vm_key }
439 - port: { get_resource: dns_private_port }
440 user_data_format: RAW
444 __nexus_repo__: { get_param: nexus_repo }
445 __artifacts_version__: { get_param: artifacts_version }
446 __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
447 __dns_ip_addr__: { get_param: dns_ip_addr }
448 __aai1_ip_addr__: { get_param: aai1_ip_addr }
449 __aai2_ip_addr__: { get_param: aai2_ip_addr }
450 __appc_ip_addr__: { get_param: appc_ip_addr }
451 __dcae_ip_addr__: { get_param: dcae_ip_addr }
452 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
453 __mso_ip_addr__: { get_param: mso_ip_addr }
454 __mr_ip_addr__: { get_param: mr_ip_addr }
455 __policy_ip_addr__: { get_param: policy_ip_addr }
456 __portal_ip_addr__: { get_param: portal_ip_addr }
457 __robot_ip_addr__: { get_param: robot_ip_addr }
458 __sdc_ip_addr__: { get_param: sdc_ip_addr }
459 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
460 __vid_ip_addr__: { get_param: vid_ip_addr }
461 __clamp_ip_addr__: { get_param: clamp_ip_addr }
462 __cloud_env__: { get_param: cloud_env }
463 __external_dns__: { get_param: external_dns }
467 # Create configuration files
469 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
470 echo "__cloud_env__" > /opt/config/cloud_env.txt
471 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
472 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
473 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
474 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
475 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
476 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
477 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
478 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
479 echo "__mso_ip_addr__" > /opt/config/mso_ip_addr.txt
480 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
481 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
482 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
483 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
484 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
485 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
486 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
487 echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
488 echo "__external_dns__" > /opt/config/external_dns.txt
490 # Download and run install script
491 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
493 chmod +x dns_install.sh
497 # A&AI instantiation (2 VMs)
499 type: OS::Neutron::Port
501 network: { get_resource: oam_onap }
502 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
505 type: OS::Neutron::FloatingIP
507 floating_network_id: { get_param: public_net_id }
508 port_id: { get_resource: aai1_private_port }
511 type: OS::Nova::Server
514 image: { get_param: ubuntu_1404_image }
515 flavor: { get_param: flavor_xlarge }
518 template: base-aai-inst1
520 base: { get_param: vm_base_name }
521 key_name: { get_resource: vm_key }
523 - port: { get_resource: aai1_private_port }
524 user_data_format: RAW
528 __nexus_repo__: { get_param: nexus_repo }
529 __nexus_docker_repo__: { get_param: nexus_docker_repo }
530 __nexus_username__: { get_param: nexus_username }
531 __nexus_password__: { get_param: nexus_password }
532 __dmaap_topic__: { get_param: dmaap_topic }
533 __artifacts_version__: { get_param: artifacts_version }
534 __dns_ip_addr__: { get_param: dns_ip_addr }
535 __docker_version__: { get_param: docker_version }
536 __gerrit_branch__: { get_param: gerrit_branch }
537 __cloud_env__: { get_param: cloud_env }
538 __external_dns__: { get_param: external_dns }
539 __aai_repo__: { get_param: aai_repo }
543 # Create configuration files
545 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
546 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
547 echo "__nexus_username__" > /opt/config/nexus_username.txt
548 echo "__nexus_password__" > /opt/config/nexus_password.txt
549 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
550 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
551 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
552 echo "__docker_version__" > /opt/config/docker_version.txt
553 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
554 echo "aai_instance_1" > /opt/config/aai_instance.txt
555 echo "__cloud_env__" > /opt/config/cloud_env.txt
556 echo "__external_dns__" > /opt/config/external_dns.txt
557 echo "__aai_repo__" > /opt/config/remote_repo.txt
559 # Download and run install script
560 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
562 chmod +x aai_install.sh
567 type: OS::Neutron::Port
569 network: { get_resource: oam_onap }
570 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
573 type: OS::Neutron::FloatingIP
575 floating_network_id: { get_param: public_net_id }
576 port_id: { get_resource: aai2_private_port }
579 type: OS::Nova::Server
581 image: { get_param: ubuntu_1404_image }
582 flavor: { get_param: flavor_xlarge }
585 template: base-aai-inst2
587 base: { get_param: vm_base_name }
588 key_name: { get_resource: vm_key }
590 - port: { get_resource: aai2_private_port }
591 user_data_format: RAW
595 __nexus_repo__: { get_param: nexus_repo }
596 __nexus_docker_repo__: { get_param: nexus_docker_repo }
597 __nexus_username__: { get_param: nexus_username }
598 __nexus_password__: { get_param: nexus_password }
599 __dmaap_topic__: { get_param: dmaap_topic }
600 __artifacts_version__: { get_param: artifacts_version }
601 __dns_ip_addr__: { get_param: dns_ip_addr }
602 __docker_version__: { get_param: docker_version }
603 __gerrit_branch__: { get_param: gerrit_branch }
604 __cloud_env__: { get_param: cloud_env }
605 __external_dns__: { get_param: external_dns }
606 __aai_repo__: { get_param: aai_repo }
610 # Create configuration files
612 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
613 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
614 echo "__nexus_username__" > /opt/config/nexus_username.txt
615 echo "__nexus_password__" > /opt/config/nexus_password.txt
616 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
617 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
618 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
619 echo "__docker_version__" > /opt/config/docker_version.txt
620 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
621 echo "aai_instance_2" > /opt/config/aai_instance.txt
622 echo "__cloud_env__" > /opt/config/cloud_env.txt
623 echo "__external_dns__" > /opt/config/external_dns.txt
624 echo "__aai_repo__" > /opt/config/remote_repo.txt
626 # Download and run install script
627 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
629 chmod +x aai_install.sh
635 type: OS::Neutron::Port
637 network: { get_resource: oam_onap }
638 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mso_ip_addr }}]
641 type: OS::Neutron::FloatingIP
643 floating_network_id: { get_param: public_net_id }
644 port_id: { get_resource: mso_private_port }
647 type: OS::Nova::Server
649 image: { get_param: ubuntu_1604_image }
650 flavor: { get_param: flavor_large }
655 base: { get_param: vm_base_name }
656 key_name: { get_resource: vm_key }
658 - port: { get_resource: mso_private_port }
659 user_data_format: RAW
663 __nexus_repo__: { get_param: nexus_repo }
664 __nexus_docker_repo__: { get_param: nexus_docker_repo }
665 __nexus_username__: { get_param: nexus_username }
666 __nexus_password__: { get_param: nexus_password }
667 __openstack_username__: { get_param: openstack_username }
668 __openstack_tenant_id__: { get_param: openstack_tenant_id }
669 __openstack_api_key__: { get_param: openstack_api_key }
670 __openstack_region__: { get_param: openstack_region }
671 __keystone_url__: { get_param: keystone_url }
672 __dmaap_topic__: { get_param: dmaap_topic }
673 __artifacts_version__: { get_param: artifacts_version }
674 __dns_ip_addr__: { get_param: dns_ip_addr }
675 __docker_version__: { get_param: docker_version }
676 __gerrit_branch__: { get_param: gerrit_branch }
677 __cloud_env__: { get_param: cloud_env }
678 __external_dns__: { get_param: external_dns }
679 __mso_repo__: { get_param: mso_repo }
683 # Create configuration files
685 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
686 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
687 echo "__nexus_username__" > /opt/config/nexus_username.txt
688 echo "__nexus_password__" > /opt/config/nexus_password.txt
689 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
690 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
691 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
692 echo "__openstack_username__" > /opt/config/openstack_username.txt
693 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
694 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
695 echo "__openstack_region__" > /opt/config/openstack_region.txt
696 echo "__keystone_url__" > /opt/config/keystone.txt
697 echo "__docker_version__" > /opt/config/docker_version.txt
698 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
699 echo "__cloud_env__" > /opt/config/cloud_env.txt
700 echo "__external_dns__" > /opt/config/external_dns.txt
701 echo "__mso_repo__" > /opt/config/remote_repo.txt
703 # Download and run install script
704 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
706 chmod +x mso_install.sh
710 # Message Router instantiation
711 mrouter_private_port:
712 type: OS::Neutron::Port
714 network: { get_resource: oam_onap }
715 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
718 type: OS::Neutron::FloatingIP
720 floating_network_id: { get_param: public_net_id }
721 port_id: { get_resource: mrouter_private_port }
724 type: OS::Nova::Server
726 image: { get_param: ubuntu_1404_image }
727 flavor: { get_param: flavor_large }
730 template: base-message-router
732 base: { get_param: vm_base_name }
733 key_name: { get_resource: vm_key }
735 - port: { get_resource: mrouter_private_port }
736 user_data_format: RAW
740 __nexus_repo__: { get_param: nexus_repo }
741 __nexus_docker_repo__: { get_param: nexus_docker_repo }
742 __nexus_username__: { get_param: nexus_username }
743 __nexus_password__: { get_param: nexus_password }
744 __artifacts_version__: { get_param: artifacts_version }
745 __dns_ip_addr__: { get_param: dns_ip_addr }
746 __gerrit_branch__: { get_param: gerrit_branch }
747 __cloud_env__: { get_param: cloud_env }
748 __external_dns__: { get_param: external_dns }
749 __mr_repo__: { get_param: mr_repo }
753 # Create configuration files
755 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
756 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
757 echo "__nexus_username__" > /opt/config/nexus_username.txt
758 echo "__nexus_password__" > /opt/config/nexus_password.txt
759 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
760 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
761 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
762 echo "__cloud_env__" > /opt/config/cloud_env.txt
763 echo "__external_dns__" > /opt/config/external_dns.txt
764 echo "__mr_repo__" > /opt/config/remote_repo.txt
766 # Download and run install script
767 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
769 chmod +x mr_install.sh
773 # Robot Framework instantiation
775 type: OS::Neutron::Port
777 network: { get_resource: oam_onap }
778 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
781 type: OS::Neutron::FloatingIP
783 floating_network_id: { get_param: public_net_id }
784 port_id: { get_resource: robot_private_port }
787 type: OS::Nova::Server
789 image: { get_param: ubuntu_1604_image }
790 flavor: { get_param: flavor_small }
795 base: { get_param: vm_base_name }
796 key_name: { get_resource: vm_key }
798 - port: { get_resource: robot_private_port }
799 user_data_format: RAW
803 __nexus_repo__: { get_param: nexus_repo }
804 __nexus_docker_repo__: { get_param: nexus_docker_repo }
805 __nexus_username__: { get_param: nexus_username }
806 __nexus_password__: { get_param: nexus_password }
807 __network_name__: { get_attr: [oam_onap, name] }
808 __openstack_username__: { get_param: openstack_username }
809 __openstack_api_key__: { get_param : openstack_api_key }
810 __openstack_tenant_id__: { get_param: openstack_tenant_id }
811 __artifacts_version__: { get_param: artifacts_version }
812 __openstack_region__: { get_param: openstack_region }
813 __dns_ip_addr__: { get_param: dns_ip_addr }
814 __docker_version__: { get_param: docker_version }
815 __gerrit_branch__: { get_param: gerrit_branch }
816 __cloud_env__: { get_param: cloud_env }
817 __keystone_url__: { get_param: keystone_url }
818 __aai1_ip_addr__: { get_param: aai1_ip_addr }
819 __aai2_ip_addr__: { get_param: aai2_ip_addr }
820 __appc_ip_addr__: { get_param: appc_ip_addr }
821 __dcae_ip_addr__: { get_param: dcae_ip_addr }
822 __mso_ip_addr__: { get_param: mso_ip_addr }
823 __mr_ip_addr__: { get_param: mr_ip_addr }
824 __policy_ip_addr__: { get_param: policy_ip_addr }
825 __portal_ip_addr__: { get_param: portal_ip_addr }
826 __sdc_ip_addr__: { get_param: sdc_ip_addr }
827 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
828 __vid_ip_addr__: { get_param: vid_ip_addr }
829 __external_dns__: { get_param: external_dns }
830 __vm_image_name__: { get_param: ubuntu_1404_image }
831 __vm_flavor__: { get_param: flavor_medium }
832 __robot_repo__: { get_param: robot_repo }
836 # Create configuration files
838 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
839 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
840 echo "__nexus_username__" > /opt/config/nexus_username.txt
841 echo "__nexus_password__" > /opt/config/nexus_password.txt
842 echo "__network_name__" > /opt/config/network.txt
843 echo "__openstack_username__" > /opt/config/openstack_username.txt
844 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
845 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
846 echo "__openstack_region__" > /opt/config/region.txt
847 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
848 echo "__docker_version__" > /opt/config/docker_version.txt
849 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
850 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
851 echo "__keystone_url__" > /opt/config/keystone.txt
852 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
853 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
854 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
855 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
856 echo "__mso_ip_addr__" > /opt/config/mso_ip_addr.txt
857 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
858 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
859 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
860 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
861 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
862 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
863 echo "__cloud_env__" > /opt/config/cloud_env.txt
864 echo "__external_dns__" > /opt/config/external_dns.txt
865 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
866 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
867 echo "__robot_repo__" > /opt/config/remote_repo.txt
869 # Download and run install script
870 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
872 chmod +x robot_install.sh
878 type: OS::Neutron::Port
880 network: { get_resource: oam_onap }
881 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
884 type: OS::Neutron::FloatingIP
886 floating_network_id: { get_param: public_net_id }
887 port_id: { get_resource: vid_private_port }
890 type: OS::Nova::Server
892 image: { get_param: ubuntu_1404_image }
893 flavor: { get_param: flavor_medium }
898 base: { get_param: vm_base_name }
899 key_name: { get_resource: vm_key }
901 - port: { get_resource: vid_private_port }
902 user_data_format: RAW
906 __nexus_repo__: { get_param: nexus_repo }
907 __nexus_docker_repo__: { get_param: nexus_docker_repo }
908 __nexus_username__: { get_param: nexus_username }
909 __nexus_password__: { get_param: nexus_password }
910 __artifacts_version__: { get_param: artifacts_version }
911 __dns_ip_addr__: { get_param: dns_ip_addr }
912 __docker_version__: { get_param: docker_version }
913 __gerrit_branch__: { get_param: gerrit_branch }
914 __cloud_env__: { get_param: cloud_env }
915 __external_dns__: { get_param: external_dns }
916 __vid_repo__: { get_param: vid_repo }
920 # Create configuration files
922 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
923 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
924 echo "__nexus_username__" > /opt/config/nexus_username.txt
925 echo "__nexus_password__" > /opt/config/nexus_password.txt
926 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
927 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
928 echo "__docker_version__" > /opt/config/docker_version.txt
929 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
930 echo "__cloud_env__" > /opt/config/cloud_env.txt
931 echo "__external_dns__" > /opt/config/external_dns.txt
932 echo "__vid_repo__" > /opt/config/remote_repo.txt
934 # Download and run install script
935 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
937 chmod +x vid_install.sh
941 # SDN-C instantiation
943 type: OS::Neutron::Port
945 network: { get_resource: oam_onap }
946 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
949 type: OS::Neutron::FloatingIP
951 floating_network_id: { get_param: public_net_id }
952 port_id: { get_resource: sdnc_private_port }
955 type: OS::Nova::Server
957 image: { get_param: ubuntu_1404_image }
958 flavor: { get_param: flavor_large }
963 base: { get_param: vm_base_name }
964 key_name: { get_resource: vm_key }
966 - port: { get_resource: sdnc_private_port }
967 user_data_format: RAW
971 __nexus_repo__: { get_param: nexus_repo }
972 __nexus_docker_repo__: { get_param: nexus_docker_repo }
973 __nexus_username__: { get_param: nexus_username }
974 __nexus_password__: { get_param: nexus_password }
975 __artifacts_version__: { get_param: artifacts_version }
976 __dns_ip_addr__: { get_param: dns_ip_addr }
977 __docker_version__: { get_param: docker_version }
978 __gerrit_branch__: { get_param: gerrit_branch }
979 __cloud_env__: { get_param: cloud_env }
980 __external_dns__: { get_param: external_dns }
981 __sdnc_repo__: { get_param: sdnc_repo }
985 # Create configuration files
987 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
988 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
989 echo "__nexus_username__" > /opt/config/nexus_username.txt
990 echo "__nexus_password__" > /opt/config/nexus_password.txt
991 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
992 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
993 echo "__docker_version__" > /opt/config/docker_version.txt
994 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
995 echo "__cloud_env__" > /opt/config/cloud_env.txt
996 echo "__external_dns__" > /opt/config/external_dns.txt
997 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
999 # Download and run install script
1000 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1002 chmod +x sdnc_install.sh
1008 type: OS::Neutron::Port
1010 network: { get_resource: oam_onap }
1011 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1014 type: OS::Neutron::FloatingIP
1016 floating_network_id: { get_param: public_net_id }
1017 port_id: { get_resource: sdc_private_port }
1020 type: OS::Cinder::Volume
1026 type: OS::Nova::Server
1028 image: { get_param: ubuntu_1604_image }
1029 flavor: { get_param: flavor_xlarge }
1034 base: { get_param: vm_base_name }
1035 key_name: { get_resource: vm_key }
1037 - port: { get_resource: sdc_private_port }
1038 block_device_mapping:
1039 - device_name: /dev/vdb
1040 volume_id: {get_resource: sdc_volume_data}
1041 user_data_format: RAW
1045 __nexus_repo__: { get_param: nexus_repo }
1046 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1047 __nexus_username__: { get_param: nexus_username }
1048 __nexus_password__: { get_param: nexus_password }
1049 __env_name__: { get_param: dmaap_topic }
1050 __artifacts_version__: { get_param: artifacts_version }
1051 __dns_ip_addr__: { get_param: dns_ip_addr }
1052 __mr_ip_addr__: { get_param: mr_ip_addr }
1053 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1054 __docker_version__: { get_param: docker_version }
1055 __gerrit_branch__: { get_param: gerrit_branch }
1056 __cloud_env__: { get_param: cloud_env }
1057 __external_dns__: { get_param: external_dns }
1058 __sdc_repo__: { get_param: sdc_repo }
1062 # Create configuration files
1063 mkdir -p /opt/config
1064 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1065 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1066 echo "__nexus_username__" > /opt/config/nexus_username.txt
1067 echo "__nexus_password__" > /opt/config/nexus_password.txt
1068 echo "__env_name__" > /opt/config/env_name.txt
1069 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1070 echo "__public_ip__" > /opt/config/public_ip.txt
1071 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1072 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1073 echo "__docker_version__" > /opt/config/docker_version.txt
1074 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1075 echo "__cloud_env__" > /opt/config/cloud_env.txt
1076 echo "__external_dns__" > /opt/config/external_dns.txt
1077 echo "__sdc_repo__" > /opt/config/remote_repo.txt
1079 # Download and run install script
1080 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1082 chmod +x sdc_install.sh
1086 # PORTAL instantiation
1087 portal_private_port:
1088 type: OS::Neutron::Port
1090 network: { get_resource: oam_onap }
1091 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1094 type: OS::Neutron::FloatingIP
1096 floating_network_id: { get_param: public_net_id }
1097 port_id: { get_resource: portal_private_port }
1100 type: OS::Nova::Server
1102 image: { get_param: ubuntu_1404_image }
1103 flavor: { get_param: flavor_large }
1106 template: base-portal
1108 base: { get_param: vm_base_name }
1109 key_name: { get_resource: vm_key }
1111 - port: { get_resource: portal_private_port }
1112 user_data_format: RAW
1116 __nexus_repo__: { get_param: nexus_repo }
1117 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1118 __nexus_username__: { get_param: nexus_username }
1119 __nexus_password__: { get_param: nexus_password }
1120 __artifacts_version__: { get_param: artifacts_version }
1121 __dns_ip_addr__: { get_param: dns_ip_addr }
1122 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1123 __docker_version__: { get_param: docker_version }
1124 __gerrit_branch__: { get_param: gerrit_branch }
1125 __cloud_env__: { get_param: cloud_env }
1126 __external_dns__: { get_param: external_dns }
1127 __portal_repo__: { get_param: portal_repo }
1131 # Create configuration files
1132 mkdir -p /opt/config
1133 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1134 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1135 echo "__nexus_username__" > /opt/config/nexus_username.txt
1136 echo "__nexus_password__" > /opt/config/nexus_password.txt
1137 echo "__public_ip__" > /opt/config/public_ip.txt
1138 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1139 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1140 echo "__docker_version__" > /opt/config/docker_version.txt
1141 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1142 echo "__cloud_env__" > /opt/config/cloud_env.txt
1143 echo "__external_dns__" > /opt/config/external_dns.txt
1144 echo "__portal_repo__" > /opt/config/remote_repo.txt
1146 # Download and run install script
1147 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1149 chmod +x portal_install.sh
1153 # DCAE Controller instantiation
1154 dcae_c_private_port:
1155 type: OS::Neutron::Port
1157 network: { get_resource: oam_onap }
1158 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1161 type: OS::Neutron::FloatingIP
1163 floating_network_id: { get_param: public_net_id }
1164 port_id: { get_resource: dcae_c_private_port }
1167 type: OS::Nova::Server
1169 image: { get_param: ubuntu_1404_image }
1170 flavor: { get_param: flavor_medium }
1173 template: base-dcae-controller
1175 base: { get_param: vm_base_name }
1176 key_name: { get_resource: vm_key }
1178 - port: { get_resource: dcae_c_private_port }
1179 user_data_format: RAW
1183 __nexus_repo__: { get_param: nexus_repo }
1184 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1185 __nexus_username__: { get_param: nexus_username }
1186 __nexus_password__: { get_param: nexus_password }
1187 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1188 __gitlab_branch__: { get_param: gitlab_branch }
1189 __dns_ip_addr__: { get_param: dns_ip_addr }
1190 __dcae_zone__: { get_param: dcae_zone }
1191 __dcae_state__: { get_param: dcae_state }
1192 __artifacts_version__: { get_param: artifacts_version }
1193 __tenant_id__: { get_param: openstack_tenant_id }
1194 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1195 __openstack_user__: { get_param: openstack_username }
1196 __openstack_password__: { get_param: openstack_api_key }
1197 __openstack_auth_method__: { get_param: openstack_auth_method }
1198 __key_name__: { get_param: key_name }
1199 __rand_str__: { get_resource: random-str }
1200 __pub_key__: { get_param: pub_key }
1201 __nexus_repo_root__: { get_param: nexus_repo_root }
1202 __openstack_region__: { get_param: openstack_region }
1203 __horizon_url__: { get_param: horizon_url }
1204 __keystone_url__: { get_param: keystone_url }
1205 __docker_version__: { get_param: docker_version }
1206 __gerrit_branch__: { get_param: gerrit_branch }
1207 __dcae_code_version__: { get_param: dcae_code_version }
1208 __cloud_env__: { get_param: cloud_env }
1209 __public_net_id__: { get_param: public_net_id }
1210 __dcae_base_environment__: { get_param: dcae_base_environment }
1211 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1212 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1213 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1214 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1215 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1216 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1217 __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1218 __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
1219 __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
1220 __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
1221 __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
1222 __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
1223 __external_dns__: { get_param: external_dns }
1224 __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1225 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1226 __flavor_small__: { get_param: flavor_small }
1227 __flavor_medium__: { get_param: flavor_medium }
1228 __flavor_large__: { get_param: flavor_large }
1229 __flavor_xlarge__: { get_param: flavor_xlarge }
1230 __dcae_repo__: { get_param: dcae_repo }
1231 __mr_repo__: { get_param: mr_repo }
1235 # Create configuration files
1236 mkdir -p /opt/config
1237 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1238 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1239 echo "__nexus_username__" > /opt/config/nexus_username.txt
1240 echo "__nexus_password__" > /opt/config/nexus_password.txt
1241 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1242 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1243 echo "__docker_version__" > /opt/config/docker_version.txt
1244 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1245 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1246 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1247 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1248 echo "__dcae_state__" > /opt/config/dcae_state.txt
1249 echo "__tenant_id__" > /opt/config/tenant_id.txt
1250 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1251 echo "__openstack_user__" > /opt/config/openstack_user.txt
1252 echo "__openstack_password__" > /opt/config/openstack_password.txt
1253 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1254 echo "__key_name__" > /opt/config/key_name.txt
1255 echo "__rand_str__" > /opt/config/rand_str.txt
1256 echo "__pub_key__" > /opt/config/pub_key.txt
1257 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1258 echo "__openstack_region__" > /opt/config/openstack_region.txt
1259 echo "__horizon_url__" > /opt/config/horizon_url.txt
1260 echo "__keystone_url__" > /opt/config/keystone_url.txt
1261 echo "__cloud_env__" > /opt/config/cloud_env.txt
1262 echo "__public_net_id__" > /opt/config/public_net_id.txt
1263 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1264 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1265 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1266 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1267 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1268 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1269 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1270 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1271 echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1272 echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
1273 echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
1274 echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
1275 echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
1276 echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
1277 echo "__external_dns__" > /opt/config/external_dns.txt
1278 echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1279 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1280 echo "__flavor_small__" > /opt/config/flavor_small.txt
1281 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1282 echo "__flavor_large__" > /opt/config/flavor_large.txt
1283 echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1284 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1285 echo "__mr_repo__" > /opt/config/mr_repo.txt
1287 # Download and run install script
1288 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1290 chmod +x dcae_install.sh
1294 # Policy Engine instantiation
1295 policy_private_port:
1296 type: OS::Neutron::Port
1298 network: { get_resource: oam_onap }
1299 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1302 type: OS::Neutron::FloatingIP
1304 floating_network_id: { get_param: public_net_id }
1305 port_id: { get_resource: policy_private_port }
1308 type: OS::Nova::Server
1310 image: { get_param: ubuntu_1404_image }
1311 flavor: { get_param: flavor_xlarge }
1314 template: base-policy
1316 base: { get_param: vm_base_name }
1317 key_name: { get_resource: vm_key }
1319 - port: { get_resource: policy_private_port }
1320 user_data_format: RAW
1324 __nexus_repo__: { get_param: nexus_repo }
1325 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1326 __nexus_username__: { get_param: nexus_username }
1327 __nexus_password__: { get_param: nexus_password }
1328 __artifacts_version__: { get_param: artifacts_version }
1329 __dns_ip_addr__: { get_param: dns_ip_addr }
1330 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1331 __docker_version__: { get_param: docker_version }
1332 __gerrit_branch__: { get_param: gerrit_branch }
1333 __cloud_env__: { get_param: cloud_env }
1334 __external_dns__: { get_param: external_dns }
1335 __policy_repo__: { get_param: policy_repo }
1339 # Create configuration files
1340 mkdir -p /opt/config
1341 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1342 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1343 echo "__nexus_username__" > /opt/config/nexus_username.txt
1344 echo "__nexus_password__" > /opt/config/nexus_password.txt
1345 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1346 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1347 echo "__public_ip__" > /opt/config/public_ip.txt
1348 echo "__docker_version__" > /opt/config/docker_version.txt
1349 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1350 echo "__cloud_env__" > /opt/config/cloud_env.txt
1351 echo "__external_dns__" > /opt/config/external_dns.txt
1352 echo "__policy_repo__" > /opt/config/remote_repo.txt
1354 # Download and run install script
1355 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1357 chmod +x policy_install.sh
1361 # APP-C instantiation
1363 type: OS::Neutron::Port
1365 network: { get_resource: oam_onap }
1366 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1369 type: OS::Neutron::FloatingIP
1371 floating_network_id: { get_param: public_net_id }
1372 port_id: { get_resource: appc_private_port }
1375 type: OS::Nova::Server
1377 image: { get_param: ubuntu_1404_image }
1378 flavor: { get_param: flavor_large }
1383 base: { get_param: vm_base_name }
1384 key_name: { get_resource: vm_key }
1386 - port: { get_resource: appc_private_port }
1387 user_data_format: RAW
1391 __nexus_repo__: { get_param: nexus_repo }
1392 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1393 __nexus_username__: { get_param: nexus_username }
1394 __nexus_password__: { get_param: nexus_password }
1395 __dmaap_topic__: { get_param: dmaap_topic }
1396 __artifacts_version__: { get_param: artifacts_version }
1397 __dns_ip_addr__: { get_param: dns_ip_addr }
1398 __docker_version__: { get_param: docker_version }
1399 __gerrit_branch__: { get_param: gerrit_branch }
1400 __cloud_env__: { get_param: cloud_env }
1401 __external_dns__: { get_param: external_dns }
1402 __appc_repo__: { get_param: appc_repo }
1406 # Create configuration files
1407 mkdir -p /opt/config
1408 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1409 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1410 echo "__nexus_username__" > /opt/config/nexus_username.txt
1411 echo "__nexus_password__" > /opt/config/nexus_password.txt
1412 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1413 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1414 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1415 echo "__docker_version__" > /opt/config/docker_version.txt
1416 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1417 echo "__cloud_env__" > /opt/config/cloud_env.txt
1418 echo "__external_dns__" > /opt/config/external_dns.txt
1419 echo "__appc_repo__" > /opt/config/remote_repo.txt
1421 # Download and run install script
1422 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1424 chmod +x appc_install.sh
1428 # CLAMP instantiation
1430 type: OS::Neutron::Port
1432 network: { get_resource: oam_onap }
1433 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1436 type: OS::Neutron::FloatingIP
1438 floating_network_id: { get_param: public_net_id }
1439 port_id: { get_resource: clamp_private_port }
1442 type: OS::Nova::Server
1444 image: { get_param: ubuntu_1604_image }
1445 flavor: { get_param: flavor_medium }
1448 template: base-clamp
1450 base: { get_param: vm_base_name }
1451 key_name: { get_resource: vm_key }
1453 - port: { get_resource: clamp_private_port }
1454 user_data_format: RAW
1458 __nexus_repo__: { get_param: nexus_repo }
1459 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1460 __nexus_username__: { get_param: nexus_username }
1461 __nexus_password__: { get_param: nexus_password }
1462 __openstack_username__: { get_param: openstack_username }
1463 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1464 __openstack_api_key__: { get_param: openstack_api_key }
1465 __openstack_region__: { get_param: openstack_region }
1466 __keystone_url__: { get_param: keystone_url }
1467 __dmaap_topic__: { get_param: dmaap_topic }
1468 __artifacts_version__: { get_param: artifacts_version }
1469 __dns_ip_addr__: { get_param: dns_ip_addr }
1470 __docker_version__: { get_param: docker_version }
1471 __gerrit_branch__: { get_param: gerrit_branch }
1472 __cloud_env__: { get_param: cloud_env }
1473 __external_dns__: { get_param: external_dns }
1474 __clamp_repo__: { get_param: clamp_repo }
1478 # Create configuration files
1479 mkdir -p /opt/config
1480 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1481 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1482 echo "__nexus_username__" > /opt/config/nexus_username.txt
1483 echo "__nexus_password__" > /opt/config/nexus_password.txt
1484 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1485 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1486 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1487 echo "__openstack_username__" > /opt/config/openstack_username.txt
1488 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1489 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1490 echo "__openstack_region__" > /opt/config/openstack_region.txt
1491 echo "__keystone_url__" > /opt/config/keystone.txt
1492 echo "__docker_version__" > /opt/config/docker_version.txt
1493 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1494 echo "__cloud_env__" > /opt/config/cloud_env.txt
1495 echo "__external_dns__" > /opt/config/external_dns.txt
1496 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1498 # Download and run install script
1499 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1501 chmod +x clamp_install.sh