1 heat_template_version: 2015-10-15
3 description: Heat template to install ONAP components
13 ##############################################
15 # Parameters used across all ONAP components #
17 ##############################################
21 description: Public network for floating IP address allocation
25 description: Name of the Ubuntu 14.04 image
29 description: Name of the Ubuntu 16.04 image
33 description: Name of the Small Flavor supported by the cloud provider
37 description: Name of the Medium Flavor supported by the cloud provider
41 description: Name of the Large Flavor supported by the cloud provider
45 description: Name of the Extra Large Flavor supported by the cloud provider
49 description: Base name of ONAP VMs
53 description: Public/Private key pair name
57 description: Public key to be installed on the compute instance
61 description: Complete URL for the Nexus repository.
65 description: Complete URL for the Nexus repository for docker images.
69 description: Nexus Repository username
73 description: Nexus Repository Password
77 description: Artifacts version of ONAP components
81 label: Version number of ONAP docker images
85 label: Gerrit code branch
86 description: Gerrit branch where to download the code from
90 description: DMaaP Topic name
94 description: Openstack tenant ID
98 description: Openstack username
100 openstack_auth_method:
102 description: Openstack authentication method (password VS. api-key)
106 description: Openstack API Key
110 description: URL of Openstack Horizon
114 description: URL of Openstack Keystone
118 description: Cloud Provider Name
120 ######################
122 # Network parameters #
124 ######################
127 type: comma_delimited_list
128 description: External DNS for OAM ONAP network
130 ### Private IP addresses ###
133 description: CIDR of the OAM ONAP network
137 description: AAI IP Address
141 description: APP-C IP Address
145 description: DCAE IP Address
149 description: DCAE Collector IP Address
153 description: DCAE Database IP Address
157 description: Hadoop VM1 IP Address
161 description: Hadoop VM2 IP Address
165 description: Hadoop VM3 IP Address
169 description: DNS IP Address
173 description: MSO IP Address
177 description: Message Router IP Address
181 description: Policy Engine IP Address
185 description: Portal IP Address
189 description: Robot Framework IP Address
193 description: SDC IP Address
197 description: SDN-C IP Address
201 description: VID IP Address
204 ###########################
206 # Parameters used by DCAE #
208 ###########################
210 dcae_base_environment:
212 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/...)
216 description: DCAE Zone to use in VM names created by DCAE controller
220 description: DCAE State to use in VM names created by DCAE controller
224 description: Root URL of Nexus repository
228 description: Snapshot of Maven repository for DCAE deployment
232 description: Region where the DCAE controller will spin the VMs
236 description: Branch of the Gitlab repository
240 description: DCAE Code Version Number
251 type: OS::Heat::RandomString
256 # Public key used to access ONAP components
258 type: OS::Nova::KeyPair
264 base: { get_param: key_name }
265 rand: { get_resource: random-str }
266 public_key: { get_param: pub_key }
267 save_private_key: false
270 # ONAP management private network
272 type: OS::Neutron::Net
276 template: oam_ecomp_rand
278 rand: { get_resource: random-str }
281 type: OS::Neutron::Subnet
285 template: oam_ecomp_rand
287 rand: { get_resource: random-str }
288 network_id: { get_resource: oam_ecomp }
289 cidr: { get_param: oam_network_cidr }
290 dns_nameservers: { get_param: external_dns }
293 type: OS::Neutron::Router
295 external_gateway_info:
296 network: { get_param: public_net_id }
299 type: OS::Neutron::RouterInterface
301 router_id: { get_resource: router }
302 subnet_id: { get_resource: oam_ecomp_subnet }
305 # DNS Server instantiation
307 type: OS::Neutron::Port
309 network: { get_resource: oam_ecomp }
310 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dns_ip_addr }}]
313 type: OS::Neutron::FloatingIP
315 floating_network_id: { get_param: public_net_id }
316 port_id: { get_resource: dns_private_port }
319 type: OS::Nova::Server
321 image: { get_param: ubuntu_1404_image }
322 flavor: { get_param: flavor_small }
325 template: base-dns-server
327 base: { get_param: vm_base_name }
328 key_name: { get_resource: vm_key }
330 - port: { get_resource: dns_private_port }
331 user_data_format: RAW
335 __nexus_repo__: { get_param: nexus_repo }
336 __artifacts_version__: { get_param: artifacts_version }
337 __oam_network_cidr__: { get_attr: [oam_ecomp_subnet, cidr] }
338 __dns_ip_addr__: { get_param: dns_ip_addr }
339 __aai_ip_addr__: { get_param: aai_ip_addr }
340 __appc_ip_addr__: { get_param: appc_ip_addr }
341 __dcae_ip_addr__: { get_param: dcae_ip_addr }
342 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
343 __mso_ip_addr__: { get_param: mso_ip_addr }
344 __mr_ip_addr__: { get_param: mr_ip_addr }
345 __policy_ip_addr__: { get_param: policy_ip_addr }
346 __portal_ip_addr__: { get_param: portal_ip_addr }
347 __robot_ip_addr__: { get_param: robot_ip_addr }
348 __sdc_ip_addr__: { get_param: sdc_ip_addr }
349 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
350 __vid_ip_addr__: { get_param: vid_ip_addr }
351 __cloud_env__: { get_param: cloud_env }
356 # Create configuration files
358 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
359 echo "__cloud_env__" > /opt/config/cloud_env.txt
360 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
361 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
362 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
363 echo "__aai_ip_addr__" > /opt/config/aai_ip_addr.txt
364 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
365 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
366 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
367 echo "__mso_ip_addr__" > /opt/config/mso_ip_addr.txt
368 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
369 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
370 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
371 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
372 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
373 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
374 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
376 # Download and run install script
377 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
379 chmod +x dns_install.sh
385 type: OS::Neutron::Port
387 network: { get_resource: oam_ecomp }
388 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: aai_ip_addr }}]
391 type: OS::Neutron::FloatingIP
393 floating_network_id: { get_param: public_net_id }
394 port_id: { get_resource: aai_private_port }
397 type: OS::Nova::Server
399 image: { get_param: ubuntu_1404_image }
400 flavor: { get_param: flavor_xlarge }
405 base: { get_param: vm_base_name }
406 key_name: { get_resource: vm_key }
408 - port: { get_resource: aai_private_port }
409 user_data_format: RAW
413 __nexus_repo__: { get_param: nexus_repo }
414 __nexus_docker_repo__: { get_param: nexus_docker_repo }
415 __nexus_username__: { get_param: nexus_username }
416 __nexus_password__: { get_param: nexus_password }
417 __dmaap_topic__: { get_param: dmaap_topic }
418 __artifacts_version__: { get_param: artifacts_version }
419 __dns_ip_addr__: { get_param: dns_ip_addr }
420 __sdc_ip_addr__: { get_param: sdc_ip_addr }
421 __docker_version__: { get_param: docker_version }
422 __cloud_env__: { get_param: cloud_env }
426 # Create configuration files
428 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
429 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
430 echo "__nexus_username__" > /opt/config/nexus_username.txt
431 echo "__nexus_password__" > /opt/config/nexus_password.txt
432 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
433 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
434 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
435 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
436 echo "__docker_version__" > /opt/config/docker_version.txt
437 echo "__cloud_env__" > /opt/config/cloud_env.txt
439 # Download and run install script
440 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
442 chmod +x aai_install.sh
448 type: OS::Neutron::Port
450 network: { get_resource: oam_ecomp }
451 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mso_ip_addr }}]
454 type: OS::Neutron::FloatingIP
456 floating_network_id: { get_param: public_net_id }
457 port_id: { get_resource: mso_private_port }
460 type: OS::Nova::Server
462 image: { get_param: ubuntu_1604_image }
463 flavor: { get_param: flavor_large }
468 base: { get_param: vm_base_name }
469 key_name: { get_resource: vm_key }
471 - port: { get_resource: mso_private_port }
472 user_data_format: RAW
476 __nexus_repo__: { get_param: nexus_repo }
477 __nexus_docker_repo__: { get_param: nexus_docker_repo }
478 __nexus_username__: { get_param: nexus_username }
479 __nexus_password__: { get_param: nexus_password }
480 __openstack_username__: { get_param: openstack_username }
481 __openstack_tenant_id__: { get_param: openstack_tenant_id }
482 __openstack_api_key__: { get_param: openstack_api_key }
483 __keystone_url__: { get_param: keystone_url }
484 __dmaap_topic__: { get_param: dmaap_topic }
485 __artifacts_version__: { get_param: artifacts_version }
486 __dns_ip_addr__: { get_param: dns_ip_addr }
487 __docker_version__: { get_param: docker_version }
488 __gerrit_branch__: { get_param: gerrit_branch }
489 __cloud_env__: { get_param: cloud_env }
493 # Create configuration files
495 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
496 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
497 echo "__nexus_username__" > /opt/config/nexus_username.txt
498 echo "__nexus_password__" > /opt/config/nexus_password.txt
499 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
500 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
501 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
502 echo "__openstack_username__" > /opt/config/openstack_username.txt
503 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
504 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
505 echo "__keystone_url__" > /opt/config/keystone.txt
506 echo "__docker_version__" > /opt/config/docker_version.txt
507 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
508 echo "__cloud_env__" > /opt/config/cloud_env.txt
510 # Download and run install script
511 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
513 chmod +x mso_install.sh
517 # Message Router instantiation
518 mrouter_private_port:
519 type: OS::Neutron::Port
521 network: { get_resource: oam_ecomp }
522 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mr_ip_addr }}]
525 type: OS::Neutron::FloatingIP
527 floating_network_id: { get_param: public_net_id }
528 port_id: { get_resource: mrouter_private_port }
531 type: OS::Nova::Server
533 image: { get_param: ubuntu_1404_image }
534 flavor: { get_param: flavor_large }
537 template: base-message-router
539 base: { get_param: vm_base_name }
540 key_name: { get_resource: vm_key }
542 - port: { get_resource: mrouter_private_port }
543 user_data_format: RAW
547 __nexus_repo__: { get_param: nexus_repo }
548 __nexus_docker_repo__: { get_param: nexus_docker_repo }
549 __nexus_username__: { get_param: nexus_username }
550 __nexus_password__: { get_param: nexus_password }
551 __artifacts_version__: { get_param: artifacts_version }
552 __dns_ip_addr__: { get_param: dns_ip_addr }
553 __gerrit_branch__: { get_param: gerrit_branch }
554 __cloud_env__: { get_param: cloud_env }
558 # Create configuration files
560 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
561 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
562 echo "__nexus_username__" > /opt/config/nexus_username.txt
563 echo "__nexus_password__" > /opt/config/nexus_password.txt
564 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
565 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
566 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
567 echo "__cloud_env__" > /opt/config/cloud_env.txt
569 # Download and run install script
570 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
572 chmod +x mr_install.sh
576 # Robot Framework instantiation
578 type: OS::Neutron::Port
580 network: { get_resource: oam_ecomp }
581 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: robot_ip_addr }}]
584 type: OS::Neutron::FloatingIP
586 floating_network_id: { get_param: public_net_id }
587 port_id: { get_resource: robot_private_port }
590 type: OS::Nova::Server
592 image: { get_param: ubuntu_1604_image }
593 flavor: { get_param: flavor_small }
598 base: { get_param: vm_base_name }
599 key_name: { get_resource: vm_key }
601 - port: { get_resource: robot_private_port }
602 user_data_format: RAW
606 __nexus_repo__: { get_param: nexus_repo }
607 __nexus_docker_repo__: { get_param: nexus_docker_repo }
608 __nexus_username__: { get_param: nexus_username }
609 __nexus_password__: { get_param: nexus_password }
610 __network_name__: { get_attr: [oam_ecomp, name] }
611 __openstack_username__: { get_param: openstack_username }
612 __openstack_api_key__: { get_param : openstack_api_key }
613 __artifacts_version__: { get_param: artifacts_version }
614 __openstack_region__: { get_param: openstack_region }
615 __dns_ip_addr__: { get_param: dns_ip_addr }
616 __docker_version__: { get_param: docker_version }
617 __gerrit_branch__: { get_param: gerrit_branch }
618 __cloud_env__: { get_param: cloud_env }
622 # Create configuration files
624 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
625 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
626 echo "__nexus_username__" > /opt/config/nexus_username.txt
627 echo "__nexus_password__" > /opt/config/nexus_password.txt
628 echo "__network_name__" > /opt/config/network.txt
629 echo "__openstack_username__" > /opt/config/openstack_username.txt
630 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
631 echo "__openstack_region__" > /opt/config/region.txt
632 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
633 echo "__docker_version__" > /opt/config/docker_version.txt
634 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
635 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
636 echo "__cloud_env__" > /opt/config/cloud_env.txt
638 # Download and run install script
639 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
641 chmod +x robot_install.sh
647 type: OS::Neutron::Port
649 network: { get_resource: oam_ecomp }
650 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: vid_ip_addr }}]
653 type: OS::Neutron::FloatingIP
655 floating_network_id: { get_param: public_net_id }
656 port_id: { get_resource: vid_private_port }
659 type: OS::Nova::Server
661 image: { get_param: ubuntu_1404_image }
662 flavor: { get_param: flavor_medium }
667 base: { get_param: vm_base_name }
668 key_name: { get_resource: vm_key }
670 - port: { get_resource: vid_private_port }
671 user_data_format: RAW
675 __nexus_repo__: { get_param: nexus_repo }
676 __nexus_docker_repo__: { get_param: nexus_docker_repo }
677 __nexus_username__: { get_param: nexus_username }
678 __nexus_password__: { get_param: nexus_password }
679 __artifacts_version__: { get_param: artifacts_version }
680 __dns_ip_addr__: { get_param: dns_ip_addr }
681 __docker_version__: { get_param: docker_version }
682 __gerrit_branch__: { get_param: gerrit_branch }
683 __cloud_env__: { get_param: cloud_env }
687 # Create configuration files
689 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
690 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
691 echo "__nexus_username__" > /opt/config/nexus_username.txt
692 echo "__nexus_password__" > /opt/config/nexus_password.txt
693 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
694 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
695 echo "__docker_version__" > /opt/config/docker_version.txt
696 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
697 echo "__cloud_env__" > /opt/config/cloud_env.txt
699 # Download and run install script
700 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
702 chmod +x vid_install.sh
706 # SDN-C instantiation
708 type: OS::Neutron::Port
710 network: { get_resource: oam_ecomp }
711 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
714 type: OS::Neutron::FloatingIP
716 floating_network_id: { get_param: public_net_id }
717 port_id: { get_resource: sdnc_private_port }
720 type: OS::Nova::Server
722 image: { get_param: ubuntu_1404_image }
723 flavor: { get_param: flavor_large }
728 base: { get_param: vm_base_name }
729 key_name: { get_resource: vm_key }
731 - port: { get_resource: sdnc_private_port }
732 user_data_format: RAW
736 __nexus_repo__: { get_param: nexus_repo }
737 __nexus_docker_repo__: { get_param: nexus_docker_repo }
738 __nexus_username__: { get_param: nexus_username }
739 __nexus_password__: { get_param: nexus_password }
740 __artifacts_version__: { get_param: artifacts_version }
741 __dns_ip_addr__: { get_param: dns_ip_addr }
742 __docker_version__: { get_param: docker_version }
743 __gerrit_branch__: { get_param: gerrit_branch }
744 __cloud_env__: { get_param: cloud_env }
748 # Create configuration files
750 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
751 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
752 echo "__nexus_username__" > /opt/config/nexus_username.txt
753 echo "__nexus_password__" > /opt/config/nexus_password.txt
754 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
755 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
756 echo "__docker_version__" > /opt/config/docker_version.txt
757 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
758 echo "__cloud_env__" > /opt/config/cloud_env.txt
760 # Download and run install script
761 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
763 chmod +x sdnc_install.sh
769 type: OS::Neutron::Port
771 network: { get_resource: oam_ecomp }
772 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
775 type: OS::Neutron::FloatingIP
777 floating_network_id: { get_param: public_net_id }
778 port_id: { get_resource: sdc_private_port }
781 type: OS::Cinder::Volume
787 type: OS::Nova::Server
789 image: { get_param: ubuntu_1604_image }
790 flavor: { get_param: flavor_xlarge }
795 base: { get_param: vm_base_name }
796 key_name: { get_resource: vm_key }
798 - port: { get_resource: sdc_private_port }
799 block_device_mapping:
800 - device_name: /dev/vdb
801 volume_id: {get_resource: sdc_volume_data}
802 user_data_format: RAW
806 __nexus_repo__: { get_param: nexus_repo }
807 __nexus_docker_repo__: { get_param: nexus_docker_repo }
808 __nexus_username__: { get_param: nexus_username }
809 __nexus_password__: { get_param: nexus_password }
810 __env_name__: { get_param: dmaap_topic }
811 __artifacts_version__: { get_param: artifacts_version }
812 __dns_ip_addr__: { get_param: dns_ip_addr }
813 __mr_ip_addr__: { get_param: mr_ip_addr }
814 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
815 __docker_version__: { get_param: docker_version }
816 __gerrit_branch__: { get_param: gerrit_branch }
817 __cloud_env__: { get_param: cloud_env }
821 # Create configuration files
823 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
824 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
825 echo "__nexus_username__" > /opt/config/nexus_username.txt
826 echo "__nexus_password__" > /opt/config/nexus_password.txt
827 echo "__env_name__" > /opt/config/env_name.txt
828 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
829 echo "__public_ip__" > /opt/config/public_ip.txt
830 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
831 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
832 echo "__docker_version__" > /opt/config/docker_version.txt
833 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
834 echo "__cloud_env__" > /opt/config/cloud_env.txt
836 # Download and run install script
837 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
839 chmod +x asdc_install.sh
843 # PORTAL instantiation
845 type: OS::Neutron::Port
847 network: { get_resource: oam_ecomp }
848 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: portal_ip_addr }}]
851 type: OS::Neutron::FloatingIP
853 floating_network_id: { get_param: public_net_id }
854 port_id: { get_resource: portal_private_port }
857 type: OS::Nova::Server
859 image: { get_param: ubuntu_1404_image }
860 flavor: { get_param: flavor_large }
863 template: base-portal
865 base: { get_param: vm_base_name }
866 key_name: { get_resource: vm_key }
868 - port: { get_resource: portal_private_port }
869 user_data_format: RAW
873 __nexus_repo__: { get_param: nexus_repo }
874 __nexus_docker_repo__: { get_param: nexus_docker_repo }
875 __nexus_username__: { get_param: nexus_username }
876 __nexus_password__: { get_param: nexus_password }
877 __artifacts_version__: { get_param: artifacts_version }
878 __dns_ip_addr__: { get_param: dns_ip_addr }
879 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
880 __docker_version__: { get_param: docker_version }
881 __gerrit_branch__: { get_param: gerrit_branch }
882 __cloud_env__: { get_param: cloud_env }
886 # Create configuration files
888 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
889 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
890 echo "__nexus_username__" > /opt/config/nexus_username.txt
891 echo "__nexus_password__" > /opt/config/nexus_password.txt
892 echo "__public_ip__" > /opt/config/public_ip.txt
893 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
894 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
895 echo "__docker_version__" > /opt/config/docker_version.txt
896 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
897 echo "__cloud_env__" > /opt/config/cloud_env.txt
899 # Download and run install script
900 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
902 chmod +x portal_install.sh
906 # DCAE Controller instantiation
908 type: OS::Neutron::Port
910 network: { get_resource: oam_ecomp }
911 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
914 type: OS::Neutron::FloatingIP
916 floating_network_id: { get_param: public_net_id }
917 port_id: { get_resource: dcae_c_private_port }
920 type: OS::Nova::Server
922 image: { get_param: ubuntu_1404_image }
923 flavor: { get_param: flavor_medium }
926 template: base-dcae-controller
928 base: { get_param: vm_base_name }
929 key_name: { get_resource: vm_key }
931 - port: { get_resource: dcae_c_private_port }
932 user_data_format: RAW
936 __nexus_repo__: { get_param: nexus_repo }
937 __nexus_docker_repo__: { get_param: nexus_docker_repo }
938 __nexus_username__: { get_param: nexus_username }
939 __nexus_password__: { get_param: nexus_password }
940 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
941 __gitlab_branch__: { get_param: gitlab_branch }
942 __dns_ip_addr__: { get_param: dns_ip_addr }
943 __dcae_zone__: { get_param: dcae_zone }
944 __dcae_state__: { get_param: dcae_state }
945 __artifacts_version__: { get_param: artifacts_version }
946 __tenant_id__: { get_param: openstack_tenant_id }
947 __openstack_private_network_name__: { get_attr: [oam_ecomp, name] }
948 __openstack_user__: { get_param: openstack_username }
949 __openstack_password__: { get_param: openstack_api_key }
950 __openstack_auth_method__: { get_param: openstack_auth_method }
951 __key_name__: { get_param: key_name }
952 __rand_str__: { get_resource: random-str }
953 __pub_key__: { get_param: pub_key }
954 __nexus_repo_root__: { get_param: nexus_repo_root }
955 __openstack_region__: { get_param: openstack_region }
956 __horizon_url__: { get_param: horizon_url }
957 __keystone_url__: { get_param: keystone_url }
958 __docker_version__: { get_param: docker_version }
959 __gerrit_branch__: { get_param: gerrit_branch }
960 __dcae_code_version__: { get_param: dcae_code_version }
961 __cloud_env__: { get_param: cloud_env }
962 __public_net_id__: { get_param: public_net_id }
963 __dcae_base_environment__: { get_param: dcae_base_environment }
964 __dcae_ip_addr__: { get_param: dcae_ip_addr }
965 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
966 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
967 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
968 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
969 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
973 # Create configuration files
975 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
976 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
977 echo "__nexus_username__" > /opt/config/nexus_username.txt
978 echo "__nexus_password__" > /opt/config/nexus_password.txt
979 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
980 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
981 echo "__docker_version__" > /opt/config/docker_version.txt
982 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
983 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
984 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
985 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
986 echo "__dcae_state__" > /opt/config/dcae_state.txt
987 echo "__tenant_id__" > /opt/config/tenant_id.txt
988 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
989 echo "__openstack_user__" > /opt/config/openstack_user.txt
990 echo "__openstack_password__" > /opt/config/openstack_password.txt
991 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
992 echo "__key_name__" > /opt/config/key_name.txt
993 echo "__rand_str__" > /opt/config/rand_str.txt
994 echo "__pub_key__" > /opt/config/pub_key.txt
995 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
996 echo "__openstack_region__" > /opt/config/openstack_region.txt
997 echo "__horizon_url__" > /opt/config/horizon_url.txt
998 echo "__keystone_url__" > /opt/config/keystone_url.txt
999 echo "__cloud_env__" > /opt/config/cloud_env.txt
1000 echo "__public_net_id__" > /opt/config/public_net_id.txt
1001 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1002 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1003 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1004 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1005 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1006 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1007 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1008 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1010 # Download and run install script
1011 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1013 chmod +x dcae_install.sh
1017 # Policy Engine instantiation
1018 policy_private_port:
1019 type: OS::Neutron::Port
1021 network: { get_resource: oam_ecomp }
1022 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1025 type: OS::Neutron::FloatingIP
1027 floating_network_id: { get_param: public_net_id }
1028 port_id: { get_resource: policy_private_port }
1031 type: OS::Nova::Server
1033 image: { get_param: ubuntu_1404_image }
1034 flavor: { get_param: flavor_xlarge }
1037 template: base-policy
1039 base: { get_param: vm_base_name }
1040 key_name: { get_resource: vm_key }
1042 - port: { get_resource: policy_private_port }
1043 user_data_format: RAW
1047 __nexus_repo__: { get_param: nexus_repo }
1048 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1049 __nexus_username__: { get_param: nexus_username }
1050 __nexus_password__: { get_param: nexus_password }
1051 __artifacts_version__: { get_param: artifacts_version }
1052 __dns_ip_addr__: { get_param: dns_ip_addr }
1053 __public_ip__: { get_attr: [policy_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 }
1060 # Create configuration files
1061 mkdir -p /opt/config
1062 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1063 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1064 echo "__nexus_username__" > /opt/config/nexus_username.txt
1065 echo "__nexus_password__" > /opt/config/nexus_password.txt
1066 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1067 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1068 echo "__public_ip__" > /opt/config/public_ip.txt
1069 echo "__docker_version__" > /opt/config/docker_version.txt
1070 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1071 echo "__cloud_env__" > /opt/config/cloud_env.txt
1073 # Download and run install script
1074 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1076 chmod +x policy_install.sh
1080 # APP-C instantiation
1082 type: OS::Neutron::Port
1084 network: { get_resource: oam_ecomp }
1085 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1088 type: OS::Neutron::FloatingIP
1090 floating_network_id: { get_param: public_net_id }
1091 port_id: { get_resource: appc_private_port }
1094 type: OS::Nova::Server
1096 image: { get_param: ubuntu_1404_image }
1097 flavor: { get_param: flavor_large }
1102 base: { get_param: vm_base_name }
1103 key_name: { get_resource: vm_key }
1105 - port: { get_resource: appc_private_port }
1106 user_data_format: RAW
1110 __nexus_repo__: { get_param: nexus_repo }
1111 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1112 __nexus_username__: { get_param: nexus_username }
1113 __nexus_password__: { get_param: nexus_password }
1114 __dmaap_topic__: { get_param: dmaap_topic }
1115 __artifacts_version__: { get_param: artifacts_version }
1116 __dns_ip_addr__: { get_param: dns_ip_addr }
1117 __docker_version__: { get_param: docker_version }
1118 __gerrit_branch__: { get_param: gerrit_branch }
1119 __cloud_env__: { get_param: cloud_env }
1123 # Create configuration files
1124 mkdir -p /opt/config
1125 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1126 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1127 echo "__nexus_username__" > /opt/config/nexus_username.txt
1128 echo "__nexus_password__" > /opt/config/nexus_password.txt
1129 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1130 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1131 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1132 echo "__docker_version__" > /opt/config/docker_version.txt
1133 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1134 echo "__cloud_env__" > /opt/config/cloud_env.txt
1136 # Download and run install script
1137 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1139 chmod +x appc_install.sh