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 Instance 1 IP Address
165 description: AAI Instance 2 IP Address
169 description: APP-C IP Address
173 description: DCAE IP Address
177 description: DCAE Collector IP Address
181 description: DCAE Database IP Address
185 description: Hadoop VM1 IP Address
189 description: Hadoop VM2 IP Address
193 description: Hadoop VM3 IP Address
197 description: DNS IP Address
201 description: MSO IP Address
205 description: Message Router IP Address
209 description: Policy Engine IP Address
213 description: Portal IP Address
217 description: Robot Framework IP Address
221 description: SDC IP Address
225 description: SDN-C IP Address
229 description: VID IP Address
232 ###########################
234 # Parameters used by DCAE #
236 ###########################
238 dcae_base_environment:
240 description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
244 description: DCAE Zone to use in VM names created by DCAE controller
248 description: DCAE State to use in VM names created by DCAE controller
252 description: Root URL of Nexus repository
256 description: Snapshot of Maven repository for DCAE deployment
260 description: Region where the DCAE controller will spin the VMs
264 description: Branch of the Gitlab repository
268 description: DCAE Code Version Number
279 type: OS::Heat::RandomString
284 # Public key used to access ONAP components
286 type: OS::Nova::KeyPair
292 base: { get_param: key_name }
293 rand: { get_resource: random-str }
294 public_key: { get_param: pub_key }
295 save_private_key: false
298 # ONAP management private network
300 type: OS::Neutron::Net
304 template: oam_ecomp_rand
306 rand: { get_resource: random-str }
309 type: OS::Neutron::Subnet
313 template: oam_ecomp_rand
315 rand: { get_resource: random-str }
316 network_id: { get_resource: oam_ecomp }
317 cidr: { get_param: oam_network_cidr }
320 # DNS Server instantiation
322 type: OS::Neutron::Port
324 network: { get_resource: oam_ecomp }
325 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dns_ip_addr }}]
328 type: OS::Nova::Server
330 image: { get_param: ubuntu_1404_image }
331 flavor: { get_param: flavor_small }
334 template: base-dns-server
336 base: { get_param: vm_base_name }
337 key_name: { get_resource: vm_key }
339 - network: { get_param: public_net_id }
340 - port: { get_resource: dns_private_port }
341 user_data_format: RAW
345 __nexus_repo__: { get_param: nexus_repo }
346 __artifacts_version__: { get_param: artifacts_version }
347 __oam_network_cidr__: { get_param: oam_network_cidr }
348 __dns_ip_addr__: { get_param: dns_ip_addr }
349 __aai1_ip_addr__: { get_param: aai1_ip_addr }
350 __aai2_ip_addr__: { get_param: aai2_ip_addr }
351 __appc_ip_addr__: { get_param: appc_ip_addr }
352 __dcae_ip_addr__: { get_param: dcae_ip_addr }
353 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
354 __mso_ip_addr__: { get_param: mso_ip_addr }
355 __mr_ip_addr__: { get_param: mr_ip_addr }
356 __policy_ip_addr__: { get_param: policy_ip_addr }
357 __portal_ip_addr__: { get_param: portal_ip_addr }
358 __robot_ip_addr__: { get_param: robot_ip_addr }
359 __sdc_ip_addr__: { get_param: sdc_ip_addr }
360 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
361 __vid_ip_addr__: { get_param: vid_ip_addr }
362 __cloud_env__: { get_param: cloud_env }
363 __external_dns__: { get_param: external_dns }
367 # Create configuration files
369 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
370 echo "__cloud_env__" > /opt/config/cloud_env.txt
371 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
372 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
373 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
374 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
375 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
376 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
377 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
378 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
379 echo "__mso_ip_addr__" > /opt/config/mso_ip_addr.txt
380 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
381 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
382 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
383 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
384 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
385 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
386 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
387 echo "__external_dns__" > /opt/config/external_dns.txt
389 # Download and run install script
390 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
392 chmod +x dns_install.sh
396 # A&AI instantiation (2 VMs)
398 type: OS::Neutron::Port
400 network: { get_resource: oam_ecomp }
401 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
404 type: OS::Nova::Server
407 image: { get_param: ubuntu_1404_image }
408 flavor: { get_param: flavor_xlarge }
411 template: base-aai-inst1
413 base: { get_param: vm_base_name }
414 key_name: { get_resource: vm_key }
416 - network: { get_param: public_net_id }
417 - port: { get_resource: aai1_private_port }
418 user_data_format: RAW
422 __nexus_repo__: { get_param: nexus_repo }
423 __nexus_docker_repo__: { get_param: nexus_docker_repo }
424 __nexus_username__: { get_param: nexus_username }
425 __nexus_password__: { get_param: nexus_password }
426 __dmaap_topic__: { get_param: dmaap_topic }
427 __artifacts_version__: { get_param: artifacts_version }
428 __dns_ip_addr__: { get_param: dns_ip_addr }
429 __aai_ip_addr__: { get_param: aai1_ip_addr }
430 __oam_network_cidr__: { get_param: oam_network_cidr }
431 __docker_version__: { get_param: docker_version }
432 __gerrit_branch__: { get_param: gerrit_branch }
433 __cloud_env__: { get_param: cloud_env }
434 __external_dns__: { get_param: external_dns }
438 # Create configuration files
440 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
441 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
442 echo "__nexus_username__" > /opt/config/nexus_username.txt
443 echo "__nexus_password__" > /opt/config/nexus_password.txt
444 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
445 echo "__aai_ip_addr__" > /opt/config/local_ip_addr.txt
446 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
447 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
448 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
449 echo "__docker_version__" > /opt/config/docker_version.txt
450 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
451 echo "aai_instance_1" > /opt/config/aai_instance.txt
452 echo "__cloud_env__" > /opt/config/cloud_env.txt
453 echo "__external_dns__" > /opt/config/external_dns.txt
455 # Download and run install script
456 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
458 chmod +x aai_install.sh
463 type: OS::Neutron::Port
465 network: { get_resource: oam_ecomp }
466 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
469 type: OS::Nova::Server
471 image: { get_param: ubuntu_1404_image }
472 flavor: { get_param: flavor_xlarge }
475 template: base-aai-inst2
477 base: { get_param: vm_base_name }
478 key_name: { get_resource: vm_key }
480 - network: { get_param: public_net_id }
481 - port: { get_resource: aai2_private_port }
482 user_data_format: RAW
486 __nexus_repo__: { get_param: nexus_repo }
487 __nexus_docker_repo__: { get_param: nexus_docker_repo }
488 __nexus_username__: { get_param: nexus_username }
489 __nexus_password__: { get_param: nexus_password }
490 __dmaap_topic__: { get_param: dmaap_topic }
491 __artifacts_version__: { get_param: artifacts_version }
492 __dns_ip_addr__: { get_param: dns_ip_addr }
493 __aai_ip_addr__: { get_param: aai2_ip_addr }
494 __oam_network_cidr__: { get_param: oam_network_cidr }
495 __docker_version__: { get_param: docker_version }
496 __gerrit_branch__: { get_param: gerrit_branch }
497 __cloud_env__: { get_param: cloud_env }
498 __external_dns__: { get_param: external_dns }
502 # Create configuration files
504 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
505 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
506 echo "__nexus_username__" > /opt/config/nexus_username.txt
507 echo "__nexus_password__" > /opt/config/nexus_password.txt
508 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
509 echo "__aai_ip_addr__" > /opt/config/local_ip_addr.txt
510 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
511 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
512 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
513 echo "__docker_version__" > /opt/config/docker_version.txt
514 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
515 echo "aai_instance_2" > /opt/config/aai_instance.txt
516 echo "__cloud_env__" > /opt/config/cloud_env.txt
517 echo "__external_dns__" > /opt/config/external_dns.txt
519 # Download and run install script
520 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
522 chmod +x aai_install.sh
528 type: OS::Neutron::Port
530 network: { get_resource: oam_ecomp }
531 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mso_ip_addr }}]
534 type: OS::Nova::Server
536 image: { get_param: ubuntu_1604_image }
537 flavor: { get_param: flavor_large }
542 base: { get_param: vm_base_name }
543 key_name: { get_resource: vm_key }
545 - network: { get_param: public_net_id }
546 - port: { get_resource: mso_private_port }
547 user_data_format: RAW
551 __nexus_repo__: { get_param: nexus_repo }
552 __nexus_docker_repo__: { get_param: nexus_docker_repo }
553 __nexus_username__: { get_param: nexus_username }
554 __nexus_password__: { get_param: nexus_password }
555 __openstack_username__: { get_param: openstack_username }
556 __openstack_tenant_id__: { get_param: openstack_tenant_id }
557 __openstack_api_key__: { get_param: openstack_api_key }
558 __openstack_region__: { get_param: openstack_region }
559 __keystone_url__: { get_param: keystone_url }
560 __dmaap_topic__: { get_param: dmaap_topic }
561 __artifacts_version__: { get_param: artifacts_version }
562 __dns_ip_addr__: { get_param: dns_ip_addr }
563 __mso_ip_addr__: { get_param: mso_ip_addr }
564 __oam_network_cidr__: { get_param: oam_network_cidr }
565 __docker_version__: { get_param: docker_version }
566 __gerrit_branch__: { get_param: gerrit_branch }
567 __cloud_env__: { get_param: cloud_env }
568 __external_dns__: { get_param: external_dns }
572 # Create configuration files
574 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
575 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
576 echo "__nexus_username__" > /opt/config/nexus_username.txt
577 echo "__nexus_password__" > /opt/config/nexus_password.txt
578 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
579 echo "__mso_ip_addr__" > /opt/config/local_ip_addr.txt
580 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
581 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
582 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
583 echo "__openstack_username__" > /opt/config/openstack_username.txt
584 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
585 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
586 echo "__openstack_region__" > /opt/config/openstack_region.txt
587 echo "__keystone_url__" > /opt/config/keystone.txt
588 echo "__docker_version__" > /opt/config/docker_version.txt
589 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
590 echo "__cloud_env__" > /opt/config/cloud_env.txt
591 echo "__external_dns__" > /opt/config/external_dns.txt
593 # Download and run install script
594 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
596 chmod +x mso_install.sh
600 # Message Router instantiation
601 mrouter_private_port:
602 type: OS::Neutron::Port
604 network: { get_resource: oam_ecomp }
605 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mr_ip_addr }}]
608 type: OS::Nova::Server
610 image: { get_param: ubuntu_1404_image }
611 flavor: { get_param: flavor_large }
614 template: base-message-router
616 base: { get_param: vm_base_name }
617 key_name: { get_resource: vm_key }
619 - network: { get_param: public_net_id }
620 - port: { get_resource: mrouter_private_port }
621 user_data_format: RAW
625 __nexus_repo__: { get_param: nexus_repo }
626 __nexus_docker_repo__: { get_param: nexus_docker_repo }
627 __nexus_username__: { get_param: nexus_username }
628 __nexus_password__: { get_param: nexus_password }
629 __artifacts_version__: { get_param: artifacts_version }
630 __mr_ip_addr__: { get_param: mr_ip_addr }
631 __dns_ip_addr__: { get_param: dns_ip_addr }
632 __oam_network_cidr__: { get_param: oam_network_cidr }
633 __gerrit_branch__: { get_param: gerrit_branch }
634 __cloud_env__: { get_param: cloud_env }
635 __external_dns__: { get_param: external_dns }
639 # Create configuration files
641 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
642 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
643 echo "__nexus_username__" > /opt/config/nexus_username.txt
644 echo "__nexus_password__" > /opt/config/nexus_password.txt
645 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
646 echo "__mr_ip_addr__" > /opt/config/local_ip_addr.txt
647 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
648 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
649 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
650 echo "__cloud_env__" > /opt/config/cloud_env.txt
651 echo "__external_dns__" > /opt/config/external_dns.txt
653 # Download and run install script
654 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
656 chmod +x mr_install.sh
660 # Robot Framework instantiation
662 type: OS::Neutron::Port
664 network: { get_resource: oam_ecomp }
665 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: robot_ip_addr }}]
668 type: OS::Nova::Server
670 image: { get_param: ubuntu_1604_image }
671 flavor: { get_param: flavor_small }
676 base: { get_param: vm_base_name }
677 key_name: { get_resource: vm_key }
679 - network: { get_param: public_net_id }
680 - port: { get_resource: robot_private_port }
681 user_data_format: RAW
685 __nexus_repo__: { get_param: nexus_repo }
686 __nexus_docker_repo__: { get_param: nexus_docker_repo }
687 __nexus_username__: { get_param: nexus_username }
688 __nexus_password__: { get_param: nexus_password }
689 __network_name__: { get_attr: [oam_ecomp, name] }
690 __openstack_username__: { get_param: openstack_username }
691 __openstack_api_key__: { get_param : openstack_api_key }
692 __artifacts_version__: { get_param: artifacts_version }
693 __openstack_region__: { get_param: openstack_region }
694 __robot_ip_addr__: { get_param: robot_ip_addr }
695 __dns_ip_addr__: { get_param: dns_ip_addr }
696 __oam_network_cidr__: { get_param: oam_network_cidr }
697 __docker_version__: { get_param: docker_version }
698 __gerrit_branch__: { get_param: gerrit_branch }
699 __keystone_url__: { get_param: keystone_url }
700 __aai1_ip_addr__: { get_param: aai1_ip_addr }
701 __aai2_ip_addr__: { get_param: aai2_ip_addr }
702 __appc_ip_addr__: { get_param: appc_ip_addr }
703 __dcae_ip_addr__: { get_param: dcae_ip_addr }
704 __mso_ip_addr__: { get_param: mso_ip_addr }
705 __mr_ip_addr__: { get_param: mr_ip_addr }
706 __policy_ip_addr__: { get_param: policy_ip_addr }
707 __portal_ip_addr__: { get_param: portal_ip_addr }
708 __sdc_ip_addr__: { get_param: sdc_ip_addr }
709 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
710 __vid_ip_addr__: { get_param: vid_ip_addr }
711 __cloud_env__: { get_param: cloud_env }
712 __external_dns__: { get_param: external_dns }
713 __vm_image_name__: { get_param: ubuntu_1404_image}
714 __vm_flavor__: { get_param: flavor_medium}
718 # Create configuration files
720 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
721 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
722 echo "__nexus_username__" > /opt/config/nexus_username.txt
723 echo "__nexus_password__" > /opt/config/nexus_password.txt
724 echo "__network_name__" > /opt/config/network.txt
725 echo "__openstack_username__" > /opt/config/openstack_username.txt
726 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
727 echo "__openstack_region__" > /opt/config/region.txt
728 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
729 echo "__robot_ip_addr__" > /opt/config/local_ip_addr.txt
730 echo "__docker_version__" > /opt/config/docker_version.txt
731 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
732 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
733 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
734 echo "__keystone_url__" > /opt/config/keystone.txt
735 echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
736 echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
737 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
738 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
739 echo "__mso_ip_addr__" > /opt/config/mso_ip_addr.txt
740 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
741 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
742 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
743 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
744 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
745 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
746 echo "__cloud_env__" > /opt/config/cloud_env.txt
747 echo "__external_dns__" > /opt/config/external_dns.txt
748 echo "__vm_image_name__" > /opt/config/vm_image_name.txt
749 echo "__vm_flavor__" > /opt/config/vm_flavor.txt
751 # Download and run install script
752 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
754 chmod +x robot_install.sh
760 type: OS::Neutron::Port
762 network: { get_resource: oam_ecomp }
763 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: vid_ip_addr }}]
766 type: OS::Nova::Server
768 image: { get_param: ubuntu_1404_image }
769 flavor: { get_param: flavor_medium }
774 base: { get_param: vm_base_name }
775 key_name: { get_resource: vm_key }
777 - network: { get_param: public_net_id }
778 - port: { get_resource: vid_private_port }
779 user_data_format: RAW
783 __nexus_repo__: { get_param: nexus_repo }
784 __nexus_docker_repo__: { get_param: nexus_docker_repo }
785 __nexus_username__: { get_param: nexus_username }
786 __nexus_password__: { get_param: nexus_password }
787 __artifacts_version__: { get_param: artifacts_version }
788 __vid_ip_addr__: { get_param: vid_ip_addr }
789 __dns_ip_addr__: { get_param: dns_ip_addr }
790 __oam_network_cidr__: { get_param: oam_network_cidr }
791 __docker_version__: { get_param: docker_version }
792 __gerrit_branch__: { get_param: gerrit_branch }
793 __cloud_env__: { get_param: cloud_env }
794 __external_dns__: { get_param: external_dns }
798 # Create configuration files
800 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
801 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
802 echo "__nexus_username__" > /opt/config/nexus_username.txt
803 echo "__nexus_password__" > /opt/config/nexus_password.txt
804 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
805 echo "__vid_ip_addr__" > /opt/config/local_ip_addr.txt
806 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
807 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
808 echo "__docker_version__" > /opt/config/docker_version.txt
809 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
810 echo "__cloud_env__" > /opt/config/cloud_env.txt
811 echo "__external_dns__" > /opt/config/external_dns.txt
813 # Download and run install script
814 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
816 chmod +x vid_install.sh
820 # SDN-C instantiation
822 type: OS::Neutron::Port
824 network: { get_resource: oam_ecomp }
825 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
828 type: OS::Nova::Server
830 image: { get_param: ubuntu_1404_image }
831 flavor: { get_param: flavor_large }
836 base: { get_param: vm_base_name }
837 key_name: { get_resource: vm_key }
839 - network: { get_param: public_net_id }
840 - port: { get_resource: sdnc_private_port }
841 user_data_format: RAW
845 __nexus_repo__: { get_param: nexus_repo }
846 __nexus_docker_repo__: { get_param: nexus_docker_repo }
847 __nexus_username__: { get_param: nexus_username }
848 __nexus_password__: { get_param: nexus_password }
849 __artifacts_version__: { get_param: artifacts_version }
850 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
851 __dns_ip_addr__: { get_param: dns_ip_addr }
852 __oam_network_cidr__: { get_param: oam_network_cidr }
853 __docker_version__: { get_param: docker_version }
854 __gerrit_branch__: { get_param: gerrit_branch }
855 __cloud_env__: { get_param: cloud_env }
856 __external_dns__: { get_param: external_dns }
860 # Create configuration files
862 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
863 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
864 echo "__nexus_username__" > /opt/config/nexus_username.txt
865 echo "__nexus_password__" > /opt/config/nexus_password.txt
866 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
867 echo "__sdnc_ip_addr__" > /opt/config/local_ip_addr.txt
868 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
869 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
870 echo "__docker_version__" > /opt/config/docker_version.txt
871 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
872 echo "__cloud_env__" > /opt/config/cloud_env.txt
873 echo "__external_dns__" > /opt/config/external_dns.txt
875 # Download and run install script
876 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
878 chmod +x sdnc_install.sh
884 type: OS::Neutron::Port
886 network: { get_resource: oam_ecomp }
887 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
890 type: OS::Cinder::Volume
896 type: OS::Nova::Server
898 image: { get_param: ubuntu_1604_image }
899 flavor: { get_param: flavor_xlarge }
904 base: { get_param: vm_base_name }
905 key_name: { get_resource: vm_key }
907 - network: { get_param: public_net_id }
908 - port: { get_resource: sdc_private_port }
909 block_device_mapping:
910 - device_name: /dev/vdb
911 volume_id: { get_resource: sdc_volume_data }
912 user_data_format: RAW
916 __nexus_repo__: { get_param: nexus_repo }
917 __nexus_docker_repo__: { get_param: nexus_docker_repo }
918 __nexus_username__: { get_param: nexus_username }
919 __nexus_password__: { get_param: nexus_password }
920 __env_name__: { get_param: dmaap_topic }
921 __artifacts_version__: { get_param: artifacts_version }
922 __sdc_ip_addr__: { get_param: sdc_ip_addr }
923 __dns_ip_addr__: { get_param: dns_ip_addr }
924 __oam_network_cidr__: { get_param: oam_network_cidr }
925 __mr_ip_addr__: { get_param: mr_ip_addr }
926 __docker_version__: { get_param: docker_version }
927 __gerrit_branch__: { get_param: gerrit_branch }
928 __cloud_env__: { get_param: cloud_env }
929 __external_dns__: { get_param: external_dns }
933 # Create configuration files
935 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
936 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
937 echo "__nexus_username__" > /opt/config/nexus_username.txt
938 echo "__nexus_password__" > /opt/config/nexus_password.txt
939 echo "__env_name__" > /opt/config/env_name.txt
940 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
941 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
942 echo "__sdc_ip_addr__" > /opt/config/local_ip_addr.txt
943 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
944 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
945 echo "__docker_version__" > /opt/config/docker_version.txt
946 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
947 echo "__cloud_env__" > /opt/config/cloud_env.txt
948 echo "__external_dns__" > /opt/config/external_dns.txt
950 # Download and run install script
951 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
953 chmod +x asdc_install.sh
957 # PORTAL instantiation
959 type: OS::Neutron::Port
961 network: { get_resource: oam_ecomp }
962 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: portal_ip_addr }}]
965 type: OS::Nova::Server
967 image: { get_param: ubuntu_1404_image }
968 flavor: { get_param: flavor_large }
971 template: base-portal
973 base: { get_param: vm_base_name }
974 key_name: { get_resource: vm_key }
976 - network: { get_param: public_net_id }
977 - port: { get_resource: portal_private_port }
978 user_data_format: RAW
982 __nexus_repo__: { get_param: nexus_repo }
983 __nexus_docker_repo__: { get_param: nexus_docker_repo }
984 __nexus_username__: { get_param: nexus_username }
985 __nexus_password__: { get_param: nexus_password }
986 __artifacts_version__: { get_param: artifacts_version }
987 __portal_ip_addr__: { get_param: portal_ip_addr }
988 __dns_ip_addr__: { get_param: dns_ip_addr }
989 __oam_network_cidr__: { get_param: oam_network_cidr }
990 __docker_version__: { get_param: docker_version }
991 __gerrit_branch__: { get_param: gerrit_branch }
992 __cloud_env__: { get_param: cloud_env }
993 __external_dns__: { get_param: external_dns }
997 # Create configuration files
999 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1000 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1001 echo "__nexus_username__" > /opt/config/nexus_username.txt
1002 echo "__nexus_password__" > /opt/config/nexus_password.txt
1003 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1004 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1005 echo "__portal_ip_addr__" > /opt/config/local_ip_addr.txt
1006 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1007 echo "__docker_version__" > /opt/config/docker_version.txt
1008 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1009 echo "__cloud_env__" > /opt/config/cloud_env.txt
1010 echo "__external_dns__" > /opt/config/external_dns.txt
1012 # Download and run install script
1013 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1015 chmod +x portal_install.sh
1019 # DCAE Controller instantiation
1020 dcae_c_private_port:
1021 type: OS::Neutron::Port
1023 network: { get_resource: oam_ecomp }
1024 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1027 type: OS::Nova::Server
1029 image: { get_param: ubuntu_1404_image }
1030 flavor: { get_param: flavor_medium }
1033 template: base-dcae-controller
1035 base: { get_param: vm_base_name }
1036 key_name: { get_resource: vm_key }
1038 - network: { get_param: public_net_id }
1039 - port: { get_resource: dcae_c_private_port }
1040 user_data_format: RAW
1044 __nexus_repo__: { get_param: nexus_repo }
1045 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1046 __nexus_username__: { get_param: nexus_username }
1047 __nexus_password__: { get_param: nexus_password }
1048 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1049 __gitlab_branch__: { get_param: gitlab_branch }
1050 __dns_ip_addr__: { get_param: dns_ip_addr }
1051 __oam_network_cidr__: { get_param: oam_network_cidr }
1052 __dcae_zone__: { get_param: dcae_zone }
1053 __dcae_state__: { get_param: dcae_state }
1054 __artifacts_version__: { get_param: artifacts_version }
1055 __tenant_id__: { get_param: openstack_tenant_id }
1056 __openstack_private_network_name__: { get_attr: [oam_ecomp, name] }
1057 __openstack_user__: { get_param: openstack_username }
1058 __openstack_password__: { get_param: openstack_api_key }
1059 __openstack_auth_method__: { get_param: openstack_auth_method }
1060 __key_name__: { get_param: key_name }
1061 __rand_str__: { get_resource: random-str }
1062 __pub_key__: { get_param: pub_key }
1063 __nexus_repo_root__: { get_param: nexus_repo_root }
1064 __openstack_region__: { get_param: openstack_region }
1065 __horizon_url__: { get_param: horizon_url }
1066 __keystone_url__: { get_param: keystone_url }
1067 __docker_version__: { get_param: docker_version }
1068 __gerrit_branch__: { get_param: gerrit_branch }
1069 __dcae_code_version__: { get_param: dcae_code_version }
1070 __cloud_env__: { get_param: cloud_env }
1071 __public_net_id__: { get_param: public_net_id }
1072 __dcae_base_environment__: { get_param: dcae_base_environment }
1073 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1074 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1075 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1076 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1077 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1078 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1079 __external_dns__: { get_param: external_dns }
1080 __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1081 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1082 __flavor_small__: { get_param: flavor_small }
1083 __flavor_medium__: { get_param: flavor_medium }
1084 __flavor_large__: { get_param: flavor_large }
1085 __flavor_xlarge__: { get_param: flavor_xlarge }
1089 # Create configuration files
1090 mkdir -p /opt/config
1091 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1092 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1093 echo "__nexus_username__" > /opt/config/nexus_username.txt
1094 echo "__nexus_password__" > /opt/config/nexus_password.txt
1095 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1096 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1097 echo "__docker_version__" > /opt/config/docker_version.txt
1098 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1099 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1100 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1101 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1102 echo "__dcae_state__" > /opt/config/dcae_state.txt
1103 echo "__tenant_id__" > /opt/config/tenant_id.txt
1104 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1105 echo "__openstack_user__" > /opt/config/openstack_user.txt
1106 echo "__openstack_password__" > /opt/config/openstack_password.txt
1107 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1108 echo "__key_name__" > /opt/config/key_name.txt
1109 echo "__rand_str__" > /opt/config/rand_str.txt
1110 echo "__pub_key__" > /opt/config/pub_key.txt
1111 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1112 echo "__openstack_region__" > /opt/config/openstack_region.txt
1113 echo "__horizon_url__" > /opt/config/horizon_url.txt
1114 echo "__keystone_url__" > /opt/config/keystone_url.txt
1115 echo "__cloud_env__" > /opt/config/cloud_env.txt
1116 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1117 echo "__public_net_id__" > /opt/config/public_net_id.txt
1118 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1119 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1120 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1121 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1122 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1123 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1124 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1125 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1126 echo "__external_dns__" > /opt/config/external_dns.txt
1127 echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1128 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1129 echo "__flavor_small__" > /opt/config/flavor_small.txt
1130 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1131 echo "__flavor_large__" > /opt/config/flavor_large.txt
1132 echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1134 # Download and run install script
1135 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1137 chmod +x dcae_install.sh
1141 # Policy Engine instantiation
1142 policy_private_port:
1143 type: OS::Neutron::Port
1145 network: { get_resource: oam_ecomp }
1146 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1149 type: OS::Nova::Server
1151 image: { get_param: ubuntu_1404_image }
1152 flavor: { get_param: flavor_xlarge }
1155 template: base-policy
1157 base: { get_param: vm_base_name }
1158 key_name: { get_resource: vm_key }
1160 - network: { get_param: public_net_id }
1161 - port: { get_resource: policy_private_port }
1162 user_data_format: RAW
1166 __nexus_repo__: { get_param: nexus_repo }
1167 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1168 __nexus_username__: { get_param: nexus_username }
1169 __nexus_password__: { get_param: nexus_password }
1170 __artifacts_version__: { get_param: artifacts_version }
1171 __policy_ip_addr__: { get_param: policy_ip_addr }
1172 __dns_ip_addr__: { get_param: dns_ip_addr }
1173 __oam_network_cidr__: { get_param: oam_network_cidr }
1174 __docker_version__: { get_param: docker_version }
1175 __gerrit_branch__: { get_param: gerrit_branch }
1176 __cloud_env__: { get_param: cloud_env }
1177 __external_dns__: { get_param: external_dns }
1181 # Create configuration files
1182 mkdir -p /opt/config
1183 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1184 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1185 echo "__nexus_username__" > /opt/config/nexus_username.txt
1186 echo "__nexus_password__" > /opt/config/nexus_password.txt
1187 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1188 echo "__policy_ip_addr__" > /opt/config/local_ip_addr.txt
1189 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1190 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1191 echo "__docker_version__" > /opt/config/docker_version.txt
1192 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1193 echo "__cloud_env__" > /opt/config/cloud_env.txt
1194 echo "__external_dns__" > /opt/config/external_dns.txt
1196 # Download and run install script
1197 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1199 chmod +x policy_install.sh
1203 # APP-C instantiation
1205 type: OS::Neutron::Port
1207 network: { get_resource: oam_ecomp }
1208 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1211 type: OS::Nova::Server
1213 image: { get_param: ubuntu_1404_image }
1214 flavor: { get_param: flavor_large }
1219 base: { get_param: vm_base_name }
1220 key_name: { get_resource: vm_key }
1222 - network: { get_param: public_net_id }
1223 - port: { get_resource: appc_private_port }
1224 user_data_format: RAW
1228 __nexus_repo__: { get_param: nexus_repo }
1229 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1230 __nexus_username__: { get_param: nexus_username }
1231 __nexus_password__: { get_param: nexus_password }
1232 __dmaap_topic__: { get_param: dmaap_topic }
1233 __artifacts_version__: { get_param: artifacts_version }
1234 __appc_ip_addr__: { get_param: appc_ip_addr }
1235 __dns_ip_addr__: { get_param: dns_ip_addr }
1236 __oam_network_cidr__: { get_param: oam_network_cidr }
1237 __docker_version__: { get_param: docker_version }
1238 __gerrit_branch__: { get_param: gerrit_branch }
1239 __cloud_env__: { get_param: cloud_env }
1240 __external_dns__: { get_param: external_dns }
1244 # Create configuration files
1245 mkdir -p /opt/config
1246 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1247 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1248 echo "__nexus_username__" > /opt/config/nexus_username.txt
1249 echo "__nexus_password__" > /opt/config/nexus_password.txt
1250 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1251 echo "__appc_ip_addr__" > /opt/config/local_ip_addr.txt
1252 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1253 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1254 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1255 echo "__docker_version__" > /opt/config/docker_version.txt
1256 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1257 echo "__cloud_env__" > /opt/config/cloud_env.txt
1258 echo "__external_dns__" > /opt/config/external_dns.txt
1260 # Download and run install script
1261 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1263 chmod +x appc_install.sh