1 ##########################################################################
3 #==================LICENSE_START==========================================
6 # Copyright © 2017 AT&T Intellectual Property. All rights reserved.
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 #==================LICENSE_END============================================
21 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 ##########################################################################
25 heat_template_version: 2013-05-23
27 description: Heat template to install ONAP components
37 ##############################################
39 # Parameters used across all ONAP components #
41 ##############################################
45 description: Public network for floating IP address allocation
49 description: Name of the Ubuntu 14.04 image
53 description: Name of the Ubuntu 16.04 image
57 description: Name of the 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 ######################
152 description: External DNS for OAM ONAP network
154 ### Private IP addresses ###
157 description: CIDR of the OAM ONAP network
161 description: AAI IP Address
165 description: APP-C IP Address
169 description: DCAE IP Address
173 description: DCAE Collector IP Address
177 description: DCAE Database IP Address
181 description: Hadoop VM1 IP Address
185 description: Hadoop VM2 IP Address
189 description: Hadoop VM3 IP Address
193 description: DNS IP Address
197 description: MSO IP Address
201 description: Message Router IP Address
205 description: Policy Engine IP Address
209 description: Portal IP Address
213 description: Robot Framework IP Address
217 description: SDC IP Address
221 description: SDN-C IP Address
225 description: VID IP Address
228 ###########################
230 # Parameters used by DCAE #
232 ###########################
234 dcae_base_environment:
236 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
240 description: DCAE Zone to use in VM names created by DCAE controller
244 description: DCAE State to use in VM names created by DCAE controller
248 description: Root URL of Nexus repository
252 description: Snapshot of Maven repository for DCAE deployment
256 description: Region where the DCAE controller will spin the VMs
260 description: Branch of the Gitlab repository
264 description: DCAE Code Version Number
275 type: OS::Heat::RandomString
280 # Public key used to access ONAP components
282 type: OS::Nova::KeyPair
288 base: { get_param: key_name }
289 rand: { get_resource: random-str }
290 public_key: { get_param: pub_key }
291 save_private_key: false
294 # ONAP management private network
296 type: OS::Neutron::Net
300 template: oam_ecomp_rand
302 rand: { get_resource: random-str }
305 type: OS::Neutron::Subnet
309 template: oam_ecomp_rand
311 rand: { get_resource: random-str }
312 network_id: { get_resource: oam_ecomp }
313 cidr: { get_param: oam_network_cidr }
316 # DNS Server instantiation
318 type: OS::Neutron::Port
320 network: { get_resource: oam_ecomp }
321 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dns_ip_addr }}]
324 type: OS::Nova::Server
326 image: { get_param: ubuntu_1404_image }
327 flavor: { get_param: flavor_small }
330 template: base-dns-server
332 base: { get_param: vm_base_name }
333 key_name: { get_resource: vm_key }
335 - network: { get_param: public_net_id }
336 - port: { get_resource: dns_private_port }
337 user_data_format: RAW
341 __nexus_repo__: { get_param: nexus_repo }
342 __artifacts_version__: { get_param: artifacts_version }
343 __oam_network_cidr__: { get_param: oam_network_cidr }
344 __dns_ip_addr__: { get_param: dns_ip_addr }
345 __aai_ip_addr__: { get_param: aai_ip_addr }
346 __appc_ip_addr__: { get_param: appc_ip_addr }
347 __dcae_ip_addr__: { get_param: dcae_ip_addr }
348 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
349 __mso_ip_addr__: { get_param: mso_ip_addr }
350 __mr_ip_addr__: { get_param: mr_ip_addr }
351 __policy_ip_addr__: { get_param: policy_ip_addr }
352 __portal_ip_addr__: { get_param: portal_ip_addr }
353 __robot_ip_addr__: { get_param: robot_ip_addr }
354 __sdc_ip_addr__: { get_param: sdc_ip_addr }
355 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
356 __vid_ip_addr__: { get_param: vid_ip_addr }
357 __cloud_env__: { get_param: cloud_env }
362 # Create configuration files
364 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
365 echo "__cloud_env__" > /opt/config/cloud_env.txt
366 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
367 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
368 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
369 echo "__aai_ip_addr__" > /opt/config/aai_ip_addr.txt
370 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
371 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
372 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
373 echo "__mso_ip_addr__" > /opt/config/mso_ip_addr.txt
374 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
375 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
376 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
377 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
378 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
379 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
380 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
382 # Download and run install script
383 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
385 chmod +x dns_install.sh
391 type: OS::Neutron::Port
393 network: { get_resource: oam_ecomp }
394 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: aai_ip_addr }}]
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 - network: { get_param: public_net_id }
409 - port: { get_resource: aai_private_port }
410 user_data_format: RAW
414 __nexus_repo__: { get_param: nexus_repo }
415 __nexus_docker_repo__: { get_param: nexus_docker_repo }
416 __nexus_username__: { get_param: nexus_username }
417 __nexus_password__: { get_param: nexus_password }
418 __dmaap_topic__: { get_param: dmaap_topic }
419 __artifacts_version__: { get_param: artifacts_version }
420 __dns_ip_addr__: { get_param: dns_ip_addr }
421 __aai_ip_addr__: { get_param: aai_ip_addr }
422 __sdc_ip_addr__: { get_param: sdc_ip_addr }
423 __oam_network_cidr__: { get_param: oam_network_cidr }
424 __docker_version__: { get_param: docker_version }
425 __cloud_env__: { get_param: cloud_env }
426 __external_dns__: { get_param: external_dns }
430 # Create configuration files
432 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
433 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
434 echo "__nexus_username__" > /opt/config/nexus_username.txt
435 echo "__nexus_password__" > /opt/config/nexus_password.txt
436 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
437 echo "__aai_ip_addr__" > /opt/config/local_ip_addr.txt
438 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
439 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
440 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
441 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
442 echo "__docker_version__" > /opt/config/docker_version.txt
443 echo "__cloud_env__" > /opt/config/cloud_env.txt
444 echo "__external_dns__" > /opt/config/external_dns.txt
446 # Download and run install script
447 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
449 chmod +x aai_install.sh
455 type: OS::Neutron::Port
457 network: { get_resource: oam_ecomp }
458 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mso_ip_addr }}]
461 type: OS::Nova::Server
463 image: { get_param: ubuntu_1604_image }
464 flavor: { get_param: flavor_large }
469 base: { get_param: vm_base_name }
470 key_name: { get_resource: vm_key }
472 - network: { get_param: public_net_id }
473 - port: { get_resource: mso_private_port }
474 user_data_format: RAW
478 __nexus_repo__: { get_param: nexus_repo }
479 __nexus_docker_repo__: { get_param: nexus_docker_repo }
480 __nexus_username__: { get_param: nexus_username }
481 __nexus_password__: { get_param: nexus_password }
482 __openstack_username__: { get_param: openstack_username }
483 __openstack_tenant_id__: { get_param: openstack_tenant_id }
484 __openstack_api_key__: { get_param: openstack_api_key }
485 __openstack_region__: { get_param: openstack_region }
486 __keystone_url__: { get_param: keystone_url }
487 __dmaap_topic__: { get_param: dmaap_topic }
488 __artifacts_version__: { get_param: artifacts_version }
489 __dns_ip_addr__: { get_param: dns_ip_addr }
490 __mso_ip_addr__: { get_param: mso_ip_addr }
491 __oam_network_cidr__: { get_param: oam_network_cidr }
492 __docker_version__: { get_param: docker_version }
493 __gerrit_branch__: { get_param: gerrit_branch }
494 __cloud_env__: { get_param: cloud_env }
495 __external_dns__: { get_param: external_dns }
499 # Create configuration files
501 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
502 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
503 echo "__nexus_username__" > /opt/config/nexus_username.txt
504 echo "__nexus_password__" > /opt/config/nexus_password.txt
505 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
506 echo "__mso_ip_addr__" > /opt/config/local_ip_addr.txt
507 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
508 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
509 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
510 echo "__openstack_username__" > /opt/config/openstack_username.txt
511 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
512 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
513 echo "__openstack_region__" > /opt/config/openstack_region.txt
514 echo "__keystone_url__" > /opt/config/keystone.txt
515 echo "__docker_version__" > /opt/config/docker_version.txt
516 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
517 echo "__cloud_env__" > /opt/config/cloud_env.txt
518 echo "__external_dns__" > /opt/config/external_dns.txt
520 # Download and run install script
521 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
523 chmod +x mso_install.sh
527 # Message Router instantiation
528 mrouter_private_port:
529 type: OS::Neutron::Port
531 network: { get_resource: oam_ecomp }
532 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mr_ip_addr }}]
535 type: OS::Nova::Server
537 image: { get_param: ubuntu_1404_image }
538 flavor: { get_param: flavor_large }
541 template: base-message-router
543 base: { get_param: vm_base_name }
544 key_name: { get_resource: vm_key }
546 - network: { get_param: public_net_id }
547 - port: { get_resource: mrouter_private_port }
548 user_data_format: RAW
552 __nexus_repo__: { get_param: nexus_repo }
553 __nexus_docker_repo__: { get_param: nexus_docker_repo }
554 __nexus_username__: { get_param: nexus_username }
555 __nexus_password__: { get_param: nexus_password }
556 __artifacts_version__: { get_param: artifacts_version }
557 __mr_ip_addr__: { get_param: mr_ip_addr }
558 __dns_ip_addr__: { get_param: dns_ip_addr }
559 __oam_network_cidr__: { get_param: oam_network_cidr }
560 __gerrit_branch__: { get_param: gerrit_branch }
561 __cloud_env__: { get_param: cloud_env }
562 __external_dns__: { get_param: external_dns }
566 # Create configuration files
568 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
569 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
570 echo "__nexus_username__" > /opt/config/nexus_username.txt
571 echo "__nexus_password__" > /opt/config/nexus_password.txt
572 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
573 echo "__mr_ip_addr__" > /opt/config/local_ip_addr.txt
574 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
575 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
576 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
577 echo "__cloud_env__" > /opt/config/cloud_env.txt
578 echo "__external_dns__" > /opt/config/external_dns.txt
580 # Download and run install script
581 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
583 chmod +x mr_install.sh
587 # Robot Framework instantiation
589 type: OS::Neutron::Port
591 network: { get_resource: oam_ecomp }
592 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: robot_ip_addr }}]
595 type: OS::Nova::Server
597 image: { get_param: ubuntu_1604_image }
598 flavor: { get_param: flavor_small }
603 base: { get_param: vm_base_name }
604 key_name: { get_resource: vm_key }
606 - network: { get_param: public_net_id }
607 - port: { get_resource: robot_private_port }
608 user_data_format: RAW
612 __nexus_repo__: { get_param: nexus_repo }
613 __nexus_docker_repo__: { get_param: nexus_docker_repo }
614 __nexus_username__: { get_param: nexus_username }
615 __nexus_password__: { get_param: nexus_password }
616 __network_name__: { get_attr: [oam_ecomp, name] }
617 __openstack_username__: { get_param: openstack_username }
618 __openstack_api_key__: { get_param : openstack_api_key }
619 __artifacts_version__: { get_param: artifacts_version }
620 __openstack_region__: { get_param: openstack_region }
621 __robot_ip_addr__: { get_param: robot_ip_addr }
622 __dns_ip_addr__: { get_param: dns_ip_addr }
623 __oam_network_cidr__: { get_param: oam_network_cidr }
624 __docker_version__: { get_param: docker_version }
625 __gerrit_branch__: { get_param: gerrit_branch }
626 __cloud_env__: { get_param: cloud_env }
627 __external_dns__: { get_param: external_dns }
631 # Create configuration files
633 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
634 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
635 echo "__nexus_username__" > /opt/config/nexus_username.txt
636 echo "__nexus_password__" > /opt/config/nexus_password.txt
637 echo "__network_name__" > /opt/config/network.txt
638 echo "__openstack_username__" > /opt/config/openstack_username.txt
639 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
640 echo "__openstack_region__" > /opt/config/region.txt
641 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
642 echo "__robot_ip_addr__" > /opt/config/local_ip_addr.txt
643 echo "__docker_version__" > /opt/config/docker_version.txt
644 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
645 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
646 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
647 echo "__cloud_env__" > /opt/config/cloud_env.txt
648 echo "__external_dns__" > /opt/config/external_dns.txt
650 # Download and run install script
651 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
653 chmod +x robot_install.sh
659 type: OS::Neutron::Port
661 network: { get_resource: oam_ecomp }
662 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: vid_ip_addr }}]
665 type: OS::Nova::Server
667 image: { get_param: ubuntu_1404_image }
668 flavor: { get_param: flavor_medium }
673 base: { get_param: vm_base_name }
674 key_name: { get_resource: vm_key }
676 - network: { get_param: public_net_id }
677 - port: { get_resource: vid_private_port }
678 user_data_format: RAW
682 __nexus_repo__: { get_param: nexus_repo }
683 __nexus_docker_repo__: { get_param: nexus_docker_repo }
684 __nexus_username__: { get_param: nexus_username }
685 __nexus_password__: { get_param: nexus_password }
686 __artifacts_version__: { get_param: artifacts_version }
687 __vid_ip_addr__: { get_param: vid_ip_addr }
688 __dns_ip_addr__: { get_param: dns_ip_addr }
689 __oam_network_cidr__: { get_param: oam_network_cidr }
690 __docker_version__: { get_param: docker_version }
691 __gerrit_branch__: { get_param: gerrit_branch }
692 __cloud_env__: { get_param: cloud_env }
693 __external_dns__: { get_param: external_dns }
697 # Create configuration files
699 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
700 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
701 echo "__nexus_username__" > /opt/config/nexus_username.txt
702 echo "__nexus_password__" > /opt/config/nexus_password.txt
703 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
704 echo "__vid_ip_addr__" > /opt/config/local_ip_addr.txt
705 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
706 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
707 echo "__docker_version__" > /opt/config/docker_version.txt
708 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
709 echo "__cloud_env__" > /opt/config/cloud_env.txt
710 echo "__external_dns__" > /opt/config/external_dns.txt
712 # Download and run install script
713 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
715 chmod +x vid_install.sh
719 # SDN-C instantiation
721 type: OS::Neutron::Port
723 network: { get_resource: oam_ecomp }
724 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
727 type: OS::Nova::Server
729 image: { get_param: ubuntu_1404_image }
730 flavor: { get_param: flavor_large }
735 base: { get_param: vm_base_name }
736 key_name: { get_resource: vm_key }
738 - network: { get_param: public_net_id }
739 - port: { get_resource: sdnc_private_port }
740 user_data_format: RAW
744 __nexus_repo__: { get_param: nexus_repo }
745 __nexus_docker_repo__: { get_param: nexus_docker_repo }
746 __nexus_username__: { get_param: nexus_username }
747 __nexus_password__: { get_param: nexus_password }
748 __artifacts_version__: { get_param: artifacts_version }
749 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
750 __dns_ip_addr__: { get_param: dns_ip_addr }
751 __oam_network_cidr__: { get_param: oam_network_cidr }
752 __docker_version__: { get_param: docker_version }
753 __gerrit_branch__: { get_param: gerrit_branch }
754 __cloud_env__: { get_param: cloud_env }
755 __external_dns__: { get_param: external_dns }
759 # Create configuration files
761 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
762 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
763 echo "__nexus_username__" > /opt/config/nexus_username.txt
764 echo "__nexus_password__" > /opt/config/nexus_password.txt
765 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
766 echo "__sdnc_ip_addr__" > /opt/config/local_ip_addr.txt
767 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
768 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
769 echo "__docker_version__" > /opt/config/docker_version.txt
770 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
771 echo "__cloud_env__" > /opt/config/cloud_env.txt
772 echo "__external_dns__" > /opt/config/external_dns.txt
774 # Download and run install script
775 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
777 chmod +x sdnc_install.sh
783 type: OS::Neutron::Port
785 network: { get_resource: oam_ecomp }
786 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
789 type: OS::Cinder::Volume
795 type: OS::Nova::Server
797 image: { get_param: ubuntu_1604_image }
798 flavor: { get_param: flavor_xlarge }
803 base: { get_param: vm_base_name }
804 key_name: { get_resource: vm_key }
806 - network: { get_param: public_net_id }
807 - port: { get_resource: sdc_private_port }
808 block_device_mapping:
809 - device_name: /dev/vdb
810 volume_id: { get_resource: sdc_volume_data }
811 user_data_format: RAW
815 __nexus_repo__: { get_param: nexus_repo }
816 __nexus_docker_repo__: { get_param: nexus_docker_repo }
817 __nexus_username__: { get_param: nexus_username }
818 __nexus_password__: { get_param: nexus_password }
819 __env_name__: { get_param: dmaap_topic }
820 __artifacts_version__: { get_param: artifacts_version }
821 __sdc_ip_addr__: { get_param: sdc_ip_addr }
822 __dns_ip_addr__: { get_param: dns_ip_addr }
823 __oam_network_cidr__: { get_param: oam_network_cidr }
824 __mr_ip_addr__: { get_param: mr_ip_addr }
825 __docker_version__: { get_param: docker_version }
826 __gerrit_branch__: { get_param: gerrit_branch }
827 __cloud_env__: { get_param: cloud_env }
828 __external_dns__: { get_param: external_dns }
832 # Create configuration files
834 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
835 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
836 echo "__nexus_username__" > /opt/config/nexus_username.txt
837 echo "__nexus_password__" > /opt/config/nexus_password.txt
838 echo "__env_name__" > /opt/config/env_name.txt
839 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
840 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
841 echo "__sdc_ip_addr__" > /opt/config/local_ip_addr.txt
842 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
843 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
844 echo "__docker_version__" > /opt/config/docker_version.txt
845 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
846 echo "__cloud_env__" > /opt/config/cloud_env.txt
847 echo "__external_dns__" > /opt/config/external_dns.txt
849 # Download and run install script
850 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
852 chmod +x asdc_install.sh
856 # PORTAL instantiation
858 type: OS::Neutron::Port
860 network: { get_resource: oam_ecomp }
861 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: portal_ip_addr }}]
864 type: OS::Nova::Server
866 image: { get_param: ubuntu_1404_image }
867 flavor: { get_param: flavor_large }
870 template: base-portal
872 base: { get_param: vm_base_name }
873 key_name: { get_resource: vm_key }
875 - network: { get_param: public_net_id }
876 - port: { get_resource: portal_private_port }
877 user_data_format: RAW
881 __nexus_repo__: { get_param: nexus_repo }
882 __nexus_docker_repo__: { get_param: nexus_docker_repo }
883 __nexus_username__: { get_param: nexus_username }
884 __nexus_password__: { get_param: nexus_password }
885 __artifacts_version__: { get_param: artifacts_version }
886 __portal_ip_addr__: { get_param: portal_ip_addr }
887 __dns_ip_addr__: { get_param: dns_ip_addr }
888 __oam_network_cidr__: { get_param: oam_network_cidr }
889 __docker_version__: { get_param: docker_version }
890 __gerrit_branch__: { get_param: gerrit_branch }
891 __cloud_env__: { get_param: cloud_env }
892 __external_dns__: { get_param: external_dns }
896 # Create configuration files
898 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
899 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
900 echo "__nexus_username__" > /opt/config/nexus_username.txt
901 echo "__nexus_password__" > /opt/config/nexus_password.txt
902 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
903 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
904 echo "__portal_ip_addr__" > /opt/config/local_ip_addr.txt
905 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
906 echo "__docker_version__" > /opt/config/docker_version.txt
907 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
908 echo "__cloud_env__" > /opt/config/cloud_env.txt
909 echo "__external_dns__" > /opt/config/external_dns.txt
911 # Download and run install script
912 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
914 chmod +x portal_install.sh
918 # DCAE Controller instantiation
920 type: OS::Neutron::Port
922 network: { get_resource: oam_ecomp }
923 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
926 type: OS::Nova::Server
928 image: { get_param: ubuntu_1404_image }
929 flavor: { get_param: flavor_medium }
932 template: base-dcae-controller
934 base: { get_param: vm_base_name }
935 key_name: { get_resource: vm_key }
937 - network: { get_param: public_net_id }
938 - port: { get_resource: dcae_c_private_port }
939 user_data_format: RAW
943 __nexus_repo__: { get_param: nexus_repo }
944 __nexus_docker_repo__: { get_param: nexus_docker_repo }
945 __nexus_username__: { get_param: nexus_username }
946 __nexus_password__: { get_param: nexus_password }
947 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
948 __gitlab_branch__: { get_param: gitlab_branch }
949 __dns_ip_addr__: { get_param: dns_ip_addr }
950 __oam_network_cidr__: { get_param: oam_network_cidr }
951 __dcae_zone__: { get_param: dcae_zone }
952 __dcae_state__: { get_param: dcae_state }
953 __artifacts_version__: { get_param: artifacts_version }
954 __tenant_id__: { get_param: openstack_tenant_id }
955 __openstack_private_network_name__: { get_attr: [oam_ecomp, name] }
956 __openstack_user__: { get_param: openstack_username }
957 __openstack_password__: { get_param: openstack_api_key }
958 __openstack_auth_method__: { get_param: openstack_auth_method }
959 __key_name__: { get_param: key_name }
960 __rand_str__: { get_resource: random-str }
961 __pub_key__: { get_param: pub_key }
962 __nexus_repo_root__: { get_param: nexus_repo_root }
963 __openstack_region__: { get_param: openstack_region }
964 __horizon_url__: { get_param: horizon_url }
965 __keystone_url__: { get_param: keystone_url }
966 __docker_version__: { get_param: docker_version }
967 __gerrit_branch__: { get_param: gerrit_branch }
968 __dcae_code_version__: { get_param: dcae_code_version }
969 __cloud_env__: { get_param: cloud_env }
970 __public_net_id__: { get_param: public_net_id }
971 __dcae_base_environment__: { get_param: dcae_base_environment }
972 __dcae_ip_addr__: { get_param: dcae_ip_addr }
973 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
974 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
975 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
976 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
977 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
978 __external_dns__: { get_param: external_dns }
979 __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
980 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
981 __flavor_small__: { get_param: flavor_small }
982 __flavor_medium__: { get_param: flavor_medium }
983 __flavor_large__: { get_param: flavor_large }
984 __flavor_xlarge__: { get_param: flavor_xlarge }
988 # Create configuration files
990 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
991 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
992 echo "__nexus_username__" > /opt/config/nexus_username.txt
993 echo "__nexus_password__" > /opt/config/nexus_password.txt
994 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
995 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
996 echo "__docker_version__" > /opt/config/docker_version.txt
997 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
998 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
999 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1000 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1001 echo "__dcae_state__" > /opt/config/dcae_state.txt
1002 echo "__tenant_id__" > /opt/config/tenant_id.txt
1003 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1004 echo "__openstack_user__" > /opt/config/openstack_user.txt
1005 echo "__openstack_password__" > /opt/config/openstack_password.txt
1006 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1007 echo "__key_name__" > /opt/config/key_name.txt
1008 echo "__rand_str__" > /opt/config/rand_str.txt
1009 echo "__pub_key__" > /opt/config/pub_key.txt
1010 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1011 echo "__openstack_region__" > /opt/config/openstack_region.txt
1012 echo "__horizon_url__" > /opt/config/horizon_url.txt
1013 echo "__keystone_url__" > /opt/config/keystone_url.txt
1014 echo "__cloud_env__" > /opt/config/cloud_env.txt
1015 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1016 echo "__public_net_id__" > /opt/config/public_net_id.txt
1017 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1018 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1019 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1020 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1021 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1022 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1023 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1024 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1025 echo "__external_dns__" > /opt/config/external_dns.txt
1026 echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1027 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1028 echo "__flavor_small__" > /opt/config/flavor_small.txt
1029 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1030 echo "__flavor_large__" > /opt/config/flavor_large.txt
1031 echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1033 # Download and run install script
1034 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1036 chmod +x dcae_install.sh
1040 # Policy Engine instantiation
1041 policy_private_port:
1042 type: OS::Neutron::Port
1044 network: { get_resource: oam_ecomp }
1045 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1048 type: OS::Nova::Server
1050 image: { get_param: ubuntu_1404_image }
1051 flavor: { get_param: flavor_xlarge }
1054 template: base-policy
1056 base: { get_param: vm_base_name }
1057 key_name: { get_resource: vm_key }
1059 - network: { get_param: public_net_id }
1060 - port: { get_resource: policy_private_port }
1061 user_data_format: RAW
1065 __nexus_repo__: { get_param: nexus_repo }
1066 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1067 __nexus_username__: { get_param: nexus_username }
1068 __nexus_password__: { get_param: nexus_password }
1069 __artifacts_version__: { get_param: artifacts_version }
1070 __policy_ip_addr__: { get_param: policy_ip_addr }
1071 __dns_ip_addr__: { get_param: dns_ip_addr }
1072 __oam_network_cidr__: { get_param: oam_network_cidr }
1073 __docker_version__: { get_param: docker_version }
1074 __gerrit_branch__: { get_param: gerrit_branch }
1075 __cloud_env__: { get_param: cloud_env }
1076 __external_dns__: { get_param: external_dns }
1080 # Create configuration files
1081 mkdir -p /opt/config
1082 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1083 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1084 echo "__nexus_username__" > /opt/config/nexus_username.txt
1085 echo "__nexus_password__" > /opt/config/nexus_password.txt
1086 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1087 echo "__policy_ip_addr__" > /opt/config/local_ip_addr.txt
1088 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1089 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1090 echo "__docker_version__" > /opt/config/docker_version.txt
1091 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1092 echo "__cloud_env__" > /opt/config/cloud_env.txt
1093 echo "__external_dns__" > /opt/config/external_dns.txt
1095 # Download and run install script
1096 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1098 chmod +x policy_install.sh
1102 # APP-C instantiation
1104 type: OS::Neutron::Port
1106 network: { get_resource: oam_ecomp }
1107 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1110 type: OS::Nova::Server
1112 image: { get_param: ubuntu_1404_image }
1113 flavor: { get_param: flavor_large }
1118 base: { get_param: vm_base_name }
1119 key_name: { get_resource: vm_key }
1121 - network: { get_param: public_net_id }
1122 - port: { get_resource: appc_private_port }
1123 user_data_format: RAW
1127 __nexus_repo__: { get_param: nexus_repo }
1128 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1129 __nexus_username__: { get_param: nexus_username }
1130 __nexus_password__: { get_param: nexus_password }
1131 __dmaap_topic__: { get_param: dmaap_topic }
1132 __artifacts_version__: { get_param: artifacts_version }
1133 __appc_ip_addr__: { get_param: appc_ip_addr }
1134 __dns_ip_addr__: { get_param: dns_ip_addr }
1135 __oam_network_cidr__: { get_param: oam_network_cidr }
1136 __docker_version__: { get_param: docker_version }
1137 __gerrit_branch__: { get_param: gerrit_branch }
1138 __cloud_env__: { get_param: cloud_env }
1139 __external_dns__: { get_param: external_dns }
1143 # Create configuration files
1144 mkdir -p /opt/config
1145 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1146 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1147 echo "__nexus_username__" > /opt/config/nexus_username.txt
1148 echo "__nexus_password__" > /opt/config/nexus_password.txt
1149 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1150 echo "__appc_ip_addr__" > /opt/config/local_ip_addr.txt
1151 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1152 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1153 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1154 echo "__docker_version__" > /opt/config/docker_version.txt
1155 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1156 echo "__cloud_env__" > /opt/config/cloud_env.txt
1157 echo "__external_dns__" > /opt/config/external_dns.txt
1159 # Download and run install script
1160 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1162 chmod +x appc_install.sh