1 heat_template_version: 2013-05-23
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 ######################
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/1-NIC-FLOATING-IPS)
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 }
292 # DNS Server instantiation
294 type: OS::Neutron::Port
296 network: { get_resource: oam_ecomp }
297 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dns_ip_addr }}]
300 type: OS::Nova::Server
302 image: { get_param: ubuntu_1404_image }
303 flavor: { get_param: flavor_small }
306 template: base-dns-server
308 base: { get_param: vm_base_name }
309 key_name: { get_resource: vm_key }
311 - network: { get_param: public_net_id }
312 - port: { get_resource: dns_private_port }
313 user_data_format: RAW
317 __nexus_repo__: { get_param: nexus_repo }
318 __artifacts_version__: { get_param: artifacts_version }
319 __oam_network_cidr__: { get_param: oam_network_cidr }
320 __dns_ip_addr__: { get_param: dns_ip_addr }
321 __aai_ip_addr__: { get_param: aai_ip_addr }
322 __appc_ip_addr__: { get_param: appc_ip_addr }
323 __dcae_ip_addr__: { get_param: dcae_ip_addr }
324 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
325 __mso_ip_addr__: { get_param: mso_ip_addr }
326 __mr_ip_addr__: { get_param: mr_ip_addr }
327 __policy_ip_addr__: { get_param: policy_ip_addr }
328 __portal_ip_addr__: { get_param: portal_ip_addr }
329 __robot_ip_addr__: { get_param: robot_ip_addr }
330 __sdc_ip_addr__: { get_param: sdc_ip_addr }
331 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
332 __vid_ip_addr__: { get_param: vid_ip_addr }
333 __cloud_env__: { get_param: cloud_env }
338 # Create configuration files
340 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
341 echo "__cloud_env__" > /opt/config/cloud_env.txt
342 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
343 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
344 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
345 echo "__aai_ip_addr__" > /opt/config/aai_ip_addr.txt
346 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
347 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
348 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
349 echo "__mso_ip_addr__" > /opt/config/mso_ip_addr.txt
350 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
351 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
352 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
353 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
354 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
355 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
356 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
358 # Download and run install script
359 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
361 chmod +x dns_install.sh
367 type: OS::Neutron::Port
369 network: { get_resource: oam_ecomp }
370 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: aai_ip_addr }}]
373 type: OS::Nova::Server
375 image: { get_param: ubuntu_1404_image }
376 flavor: { get_param: flavor_xlarge }
381 base: { get_param: vm_base_name }
382 key_name: { get_resource: vm_key }
384 - network: { get_param: public_net_id }
385 - port: { get_resource: aai_private_port }
386 user_data_format: RAW
390 __nexus_repo__: { get_param: nexus_repo }
391 __nexus_docker_repo__: { get_param: nexus_docker_repo }
392 __nexus_username__: { get_param: nexus_username }
393 __nexus_password__: { get_param: nexus_password }
394 __dmaap_topic__: { get_param: dmaap_topic }
395 __artifacts_version__: { get_param: artifacts_version }
396 __dns_ip_addr__: { get_param: dns_ip_addr }
397 __aai_ip_addr__: { get_param: aai_ip_addr }
398 __sdc_ip_addr__: { get_param: sdc_ip_addr }
399 __oam_network_cidr__: { get_param: oam_network_cidr }
400 __docker_version__: { get_param: docker_version }
401 __cloud_env__: { get_param: cloud_env }
402 __external_dns__: { get_param: external_dns }
406 # Create configuration files
408 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
409 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
410 echo "__nexus_username__" > /opt/config/nexus_username.txt
411 echo "__nexus_password__" > /opt/config/nexus_password.txt
412 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
413 echo "__aai_ip_addr__" > /opt/config/local_ip_addr.txt
414 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
415 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
416 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
417 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
418 echo "__docker_version__" > /opt/config/docker_version.txt
419 echo "__cloud_env__" > /opt/config/cloud_env.txt
420 echo "__external_dns__" > /opt/config/external_dns.txt
422 # Download and run install script
423 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
425 chmod +x aai_install.sh
431 type: OS::Neutron::Port
433 network: { get_resource: oam_ecomp }
434 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mso_ip_addr }}]
437 type: OS::Nova::Server
439 image: { get_param: ubuntu_1604_image }
440 flavor: { get_param: flavor_large }
445 base: { get_param: vm_base_name }
446 key_name: { get_resource: vm_key }
448 - network: { get_param: public_net_id }
449 - port: { get_resource: mso_private_port }
450 user_data_format: RAW
454 __nexus_repo__: { get_param: nexus_repo }
455 __nexus_docker_repo__: { get_param: nexus_docker_repo }
456 __nexus_username__: { get_param: nexus_username }
457 __nexus_password__: { get_param: nexus_password }
458 __openstack_username__: { get_param: openstack_username }
459 __openstack_tenant_id__: { get_param: openstack_tenant_id }
460 __openstack_api_key__: { get_param: openstack_api_key }
461 __openstack_region__: { get_param: openstack_region }
462 __keystone_url__: { get_param: keystone_url }
463 __dmaap_topic__: { get_param: dmaap_topic }
464 __artifacts_version__: { get_param: artifacts_version }
465 __dns_ip_addr__: { get_param: dns_ip_addr }
466 __mso_ip_addr__: { get_param: mso_ip_addr }
467 __oam_network_cidr__: { get_param: oam_network_cidr }
468 __docker_version__: { get_param: docker_version }
469 __gerrit_branch__: { get_param: gerrit_branch }
470 __cloud_env__: { get_param: cloud_env }
471 __external_dns__: { get_param: external_dns }
475 # Create configuration files
477 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
478 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
479 echo "__nexus_username__" > /opt/config/nexus_username.txt
480 echo "__nexus_password__" > /opt/config/nexus_password.txt
481 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
482 echo "__mso_ip_addr__" > /opt/config/local_ip_addr.txt
483 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
484 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
485 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
486 echo "__openstack_username__" > /opt/config/openstack_username.txt
487 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
488 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
489 echo "__openstack_region__" > /opt/config/openstack_region.txt
490 echo "__keystone_url__" > /opt/config/keystone.txt
491 echo "__docker_version__" > /opt/config/docker_version.txt
492 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
493 echo "__cloud_env__" > /opt/config/cloud_env.txt
494 echo "__external_dns__" > /opt/config/external_dns.txt
496 # Download and run install script
497 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
499 chmod +x mso_install.sh
503 # Message Router instantiation
504 mrouter_private_port:
505 type: OS::Neutron::Port
507 network: { get_resource: oam_ecomp }
508 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mr_ip_addr }}]
511 type: OS::Nova::Server
513 image: { get_param: ubuntu_1404_image }
514 flavor: { get_param: flavor_large }
517 template: base-message-router
519 base: { get_param: vm_base_name }
520 key_name: { get_resource: vm_key }
522 - network: { get_param: public_net_id }
523 - port: { get_resource: mrouter_private_port }
524 user_data_format: RAW
528 __nexus_repo__: { get_param: nexus_repo }
529 __nexus_docker_repo__: { get_param: nexus_docker_repo }
530 __nexus_username__: { get_param: nexus_username }
531 __nexus_password__: { get_param: nexus_password }
532 __artifacts_version__: { get_param: artifacts_version }
533 __mr_ip_addr__: { get_param: mr_ip_addr }
534 __dns_ip_addr__: { get_param: dns_ip_addr }
535 __oam_network_cidr__: { get_param: oam_network_cidr }
536 __gerrit_branch__: { get_param: gerrit_branch }
537 __cloud_env__: { get_param: cloud_env }
538 __external_dns__: { get_param: external_dns }
542 # Create configuration files
544 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
545 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
546 echo "__nexus_username__" > /opt/config/nexus_username.txt
547 echo "__nexus_password__" > /opt/config/nexus_password.txt
548 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
549 echo "__mr_ip_addr__" > /opt/config/local_ip_addr.txt
550 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
551 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
552 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
553 echo "__cloud_env__" > /opt/config/cloud_env.txt
554 echo "__external_dns__" > /opt/config/external_dns.txt
556 # Download and run install script
557 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
559 chmod +x mr_install.sh
563 # Robot Framework instantiation
565 type: OS::Neutron::Port
567 network: { get_resource: oam_ecomp }
568 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: robot_ip_addr }}]
571 type: OS::Nova::Server
573 image: { get_param: ubuntu_1604_image }
574 flavor: { get_param: flavor_small }
579 base: { get_param: vm_base_name }
580 key_name: { get_resource: vm_key }
582 - network: { get_param: public_net_id }
583 - port: { get_resource: robot_private_port }
584 user_data_format: RAW
588 __nexus_repo__: { get_param: nexus_repo }
589 __nexus_docker_repo__: { get_param: nexus_docker_repo }
590 __nexus_username__: { get_param: nexus_username }
591 __nexus_password__: { get_param: nexus_password }
592 __network_name__: { get_attr: [oam_ecomp, name] }
593 __openstack_username__: { get_param: openstack_username }
594 __openstack_api_key__: { get_param : openstack_api_key }
595 __artifacts_version__: { get_param: artifacts_version }
596 __openstack_region__: { get_param: openstack_region }
597 __robot_ip_addr__: { get_param: robot_ip_addr }
598 __dns_ip_addr__: { get_param: dns_ip_addr }
599 __oam_network_cidr__: { get_param: oam_network_cidr }
600 __docker_version__: { get_param: docker_version }
601 __gerrit_branch__: { get_param: gerrit_branch }
602 __cloud_env__: { get_param: cloud_env }
603 __external_dns__: { get_param: external_dns }
607 # Create configuration files
609 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
610 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
611 echo "__nexus_username__" > /opt/config/nexus_username.txt
612 echo "__nexus_password__" > /opt/config/nexus_password.txt
613 echo "__network_name__" > /opt/config/network.txt
614 echo "__openstack_username__" > /opt/config/openstack_username.txt
615 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
616 echo "__openstack_region__" > /opt/config/region.txt
617 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
618 echo "__robot_ip_addr__" > /opt/config/local_ip_addr.txt
619 echo "__docker_version__" > /opt/config/docker_version.txt
620 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
621 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
622 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
623 echo "__cloud_env__" > /opt/config/cloud_env.txt
624 echo "__external_dns__" > /opt/config/external_dns.txt
626 # Download and run install script
627 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
629 chmod +x robot_install.sh
635 type: OS::Neutron::Port
637 network: { get_resource: oam_ecomp }
638 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: vid_ip_addr }}]
641 type: OS::Nova::Server
643 image: { get_param: ubuntu_1404_image }
644 flavor: { get_param: flavor_medium }
649 base: { get_param: vm_base_name }
650 key_name: { get_resource: vm_key }
652 - network: { get_param: public_net_id }
653 - port: { get_resource: vid_private_port }
654 user_data_format: RAW
658 __nexus_repo__: { get_param: nexus_repo }
659 __nexus_docker_repo__: { get_param: nexus_docker_repo }
660 __nexus_username__: { get_param: nexus_username }
661 __nexus_password__: { get_param: nexus_password }
662 __artifacts_version__: { get_param: artifacts_version }
663 __vid_ip_addr__: { get_param: vid_ip_addr }
664 __dns_ip_addr__: { get_param: dns_ip_addr }
665 __oam_network_cidr__: { get_param: oam_network_cidr }
666 __docker_version__: { get_param: docker_version }
667 __gerrit_branch__: { get_param: gerrit_branch }
668 __cloud_env__: { get_param: cloud_env }
669 __external_dns__: { get_param: external_dns }
673 # Create configuration files
675 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
676 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
677 echo "__nexus_username__" > /opt/config/nexus_username.txt
678 echo "__nexus_password__" > /opt/config/nexus_password.txt
679 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
680 echo "__vid_ip_addr__" > /opt/config/local_ip_addr.txt
681 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
682 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
683 echo "__docker_version__" > /opt/config/docker_version.txt
684 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
685 echo "__cloud_env__" > /opt/config/cloud_env.txt
686 echo "__external_dns__" > /opt/config/external_dns.txt
688 # Download and run install script
689 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
691 chmod +x vid_install.sh
695 # SDN-C instantiation
697 type: OS::Neutron::Port
699 network: { get_resource: oam_ecomp }
700 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
703 type: OS::Nova::Server
705 image: { get_param: ubuntu_1404_image }
706 flavor: { get_param: flavor_large }
711 base: { get_param: vm_base_name }
712 key_name: { get_resource: vm_key }
714 - network: { get_param: public_net_id }
715 - port: { get_resource: sdnc_private_port }
716 user_data_format: RAW
720 __nexus_repo__: { get_param: nexus_repo }
721 __nexus_docker_repo__: { get_param: nexus_docker_repo }
722 __nexus_username__: { get_param: nexus_username }
723 __nexus_password__: { get_param: nexus_password }
724 __artifacts_version__: { get_param: artifacts_version }
725 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
726 __dns_ip_addr__: { get_param: dns_ip_addr }
727 __oam_network_cidr__: { get_param: oam_network_cidr }
728 __docker_version__: { get_param: docker_version }
729 __gerrit_branch__: { get_param: gerrit_branch }
730 __cloud_env__: { get_param: cloud_env }
731 __external_dns__: { get_param: external_dns }
735 # Create configuration files
737 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
738 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
739 echo "__nexus_username__" > /opt/config/nexus_username.txt
740 echo "__nexus_password__" > /opt/config/nexus_password.txt
741 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
742 echo "__sdnc_ip_addr__" > /opt/config/local_ip_addr.txt
743 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
744 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
745 echo "__docker_version__" > /opt/config/docker_version.txt
746 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
747 echo "__cloud_env__" > /opt/config/cloud_env.txt
748 echo "__external_dns__" > /opt/config/external_dns.txt
750 # Download and run install script
751 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
753 chmod +x sdnc_install.sh
759 type: OS::Neutron::Port
761 network: { get_resource: oam_ecomp }
762 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
765 type: OS::Cinder::Volume
771 type: OS::Nova::Server
773 image: { get_param: ubuntu_1604_image }
774 flavor: { get_param: flavor_xlarge }
779 base: { get_param: vm_base_name }
780 key_name: { get_resource: vm_key }
782 - network: { get_param: public_net_id }
783 - port: { get_resource: sdc_private_port }
784 block_device_mapping:
785 - device_name: /dev/vdb
786 volume_id: { get_resource: sdc_volume_data }
787 user_data_format: RAW
791 __nexus_repo__: { get_param: nexus_repo }
792 __nexus_docker_repo__: { get_param: nexus_docker_repo }
793 __nexus_username__: { get_param: nexus_username }
794 __nexus_password__: { get_param: nexus_password }
795 __env_name__: { get_param: dmaap_topic }
796 __artifacts_version__: { get_param: artifacts_version }
797 __sdc_ip_addr__: { get_param: sdc_ip_addr }
798 __dns_ip_addr__: { get_param: dns_ip_addr }
799 __oam_network_cidr__: { get_param: oam_network_cidr }
800 __mr_ip_addr__: { get_param: mr_ip_addr }
801 __docker_version__: { get_param: docker_version }
802 __gerrit_branch__: { get_param: gerrit_branch }
803 __cloud_env__: { get_param: cloud_env }
804 __external_dns__: { get_param: external_dns }
808 # Create configuration files
810 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
811 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
812 echo "__nexus_username__" > /opt/config/nexus_username.txt
813 echo "__nexus_password__" > /opt/config/nexus_password.txt
814 echo "__env_name__" > /opt/config/env_name.txt
815 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
816 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
817 echo "__sdc_ip_addr__" > /opt/config/local_ip_addr.txt
818 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
819 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
820 echo "__docker_version__" > /opt/config/docker_version.txt
821 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
822 echo "__cloud_env__" > /opt/config/cloud_env.txt
823 echo "__external_dns__" > /opt/config/external_dns.txt
825 # Download and run install script
826 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
828 chmod +x asdc_install.sh
832 # PORTAL instantiation
834 type: OS::Neutron::Port
836 network: { get_resource: oam_ecomp }
837 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: portal_ip_addr }}]
840 type: OS::Nova::Server
842 image: { get_param: ubuntu_1404_image }
843 flavor: { get_param: flavor_large }
846 template: base-portal
848 base: { get_param: vm_base_name }
849 key_name: { get_resource: vm_key }
851 - network: { get_param: public_net_id }
852 - port: { get_resource: portal_private_port }
853 user_data_format: RAW
857 __nexus_repo__: { get_param: nexus_repo }
858 __nexus_docker_repo__: { get_param: nexus_docker_repo }
859 __nexus_username__: { get_param: nexus_username }
860 __nexus_password__: { get_param: nexus_password }
861 __artifacts_version__: { get_param: artifacts_version }
862 __portal_ip_addr__: { get_param: portal_ip_addr }
863 __dns_ip_addr__: { get_param: dns_ip_addr }
864 __oam_network_cidr__: { get_param: oam_network_cidr }
865 __docker_version__: { get_param: docker_version }
866 __gerrit_branch__: { get_param: gerrit_branch }
867 __cloud_env__: { get_param: cloud_env }
868 __external_dns__: { get_param: external_dns }
872 # Create configuration files
874 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
875 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
876 echo "__nexus_username__" > /opt/config/nexus_username.txt
877 echo "__nexus_password__" > /opt/config/nexus_password.txt
878 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
879 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
880 echo "__portal_ip_addr__" > /opt/config/local_ip_addr.txt
881 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
882 echo "__docker_version__" > /opt/config/docker_version.txt
883 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
884 echo "__cloud_env__" > /opt/config/cloud_env.txt
885 echo "__external_dns__" > /opt/config/external_dns.txt
887 # Download and run install script
888 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
890 chmod +x portal_install.sh
894 # DCAE Controller instantiation
896 type: OS::Neutron::Port
898 network: { get_resource: oam_ecomp }
899 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
902 type: OS::Nova::Server
904 image: { get_param: ubuntu_1404_image }
905 flavor: { get_param: flavor_medium }
908 template: base-dcae-controller
910 base: { get_param: vm_base_name }
911 key_name: { get_resource: vm_key }
913 - network: { get_param: public_net_id }
914 - port: { get_resource: dcae_c_private_port }
915 user_data_format: RAW
919 __nexus_repo__: { get_param: nexus_repo }
920 __nexus_docker_repo__: { get_param: nexus_docker_repo }
921 __nexus_username__: { get_param: nexus_username }
922 __nexus_password__: { get_param: nexus_password }
923 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
924 __gitlab_branch__: { get_param: gitlab_branch }
925 __dns_ip_addr__: { get_param: dns_ip_addr }
926 __oam_network_cidr__: { get_param: oam_network_cidr }
927 __dcae_zone__: { get_param: dcae_zone }
928 __dcae_state__: { get_param: dcae_state }
929 __artifacts_version__: { get_param: artifacts_version }
930 __tenant_id__: { get_param: openstack_tenant_id }
931 __openstack_private_network_name__: { get_attr: [oam_ecomp, name] }
932 __openstack_user__: { get_param: openstack_username }
933 __openstack_password__: { get_param: openstack_api_key }
934 __openstack_auth_method__: { get_param: openstack_auth_method }
935 __key_name__: { get_param: key_name }
936 __rand_str__: { get_resource: random-str }
937 __pub_key__: { get_param: pub_key }
938 __nexus_repo_root__: { get_param: nexus_repo_root }
939 __openstack_region__: { get_param: openstack_region }
940 __horizon_url__: { get_param: horizon_url }
941 __keystone_url__: { get_param: keystone_url }
942 __docker_version__: { get_param: docker_version }
943 __gerrit_branch__: { get_param: gerrit_branch }
944 __dcae_code_version__: { get_param: dcae_code_version }
945 __cloud_env__: { get_param: cloud_env }
946 __public_net_id__: { get_param: public_net_id }
947 __dcae_base_environment__: { get_param: dcae_base_environment }
948 __dcae_ip_addr__: { get_param: dcae_ip_addr }
949 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
950 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
951 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
952 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
953 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
954 __external_dns__: { get_param: external_dns }
955 __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
956 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
957 __flavor_small__: { get_param: flavor_small }
958 __flavor_medium__: { get_param: flavor_medium }
959 __flavor_large__: { get_param: flavor_large }
960 __flavor_xlarge__: { get_param: flavor_xlarge }
964 # Create configuration files
966 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
967 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
968 echo "__nexus_username__" > /opt/config/nexus_username.txt
969 echo "__nexus_password__" > /opt/config/nexus_password.txt
970 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
971 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
972 echo "__docker_version__" > /opt/config/docker_version.txt
973 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
974 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
975 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
976 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
977 echo "__dcae_state__" > /opt/config/dcae_state.txt
978 echo "__tenant_id__" > /opt/config/tenant_id.txt
979 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
980 echo "__openstack_user__" > /opt/config/openstack_user.txt
981 echo "__openstack_password__" > /opt/config/openstack_password.txt
982 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
983 echo "__key_name__" > /opt/config/key_name.txt
984 echo "__rand_str__" > /opt/config/rand_str.txt
985 echo "__pub_key__" > /opt/config/pub_key.txt
986 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
987 echo "__openstack_region__" > /opt/config/openstack_region.txt
988 echo "__horizon_url__" > /opt/config/horizon_url.txt
989 echo "__keystone_url__" > /opt/config/keystone_url.txt
990 echo "__cloud_env__" > /opt/config/cloud_env.txt
991 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
992 echo "__public_net_id__" > /opt/config/public_net_id.txt
993 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
994 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
995 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
996 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
997 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
998 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
999 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1000 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1001 echo "__external_dns__" > /opt/config/external_dns.txt
1002 echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1003 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1004 echo "__flavor_small__" > /opt/config/flavor_small.txt
1005 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1006 echo "__flavor_large__" > /opt/config/flavor_large.txt
1007 echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1009 # Download and run install script
1010 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1012 chmod +x dcae_install.sh
1016 # Policy Engine instantiation
1017 policy_private_port:
1018 type: OS::Neutron::Port
1020 network: { get_resource: oam_ecomp }
1021 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1024 type: OS::Nova::Server
1026 image: { get_param: ubuntu_1404_image }
1027 flavor: { get_param: flavor_xlarge }
1030 template: base-policy
1032 base: { get_param: vm_base_name }
1033 key_name: { get_resource: vm_key }
1035 - network: { get_param: public_net_id }
1036 - port: { get_resource: policy_private_port }
1037 user_data_format: RAW
1041 __nexus_repo__: { get_param: nexus_repo }
1042 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1043 __nexus_username__: { get_param: nexus_username }
1044 __nexus_password__: { get_param: nexus_password }
1045 __artifacts_version__: { get_param: artifacts_version }
1046 __policy_ip_addr__: { get_param: policy_ip_addr }
1047 __dns_ip_addr__: { get_param: dns_ip_addr }
1048 __oam_network_cidr__: { get_param: oam_network_cidr }
1049 __docker_version__: { get_param: docker_version }
1050 __gerrit_branch__: { get_param: gerrit_branch }
1051 __cloud_env__: { get_param: cloud_env }
1052 __external_dns__: { get_param: external_dns }
1056 # Create configuration files
1057 mkdir -p /opt/config
1058 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1059 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1060 echo "__nexus_username__" > /opt/config/nexus_username.txt
1061 echo "__nexus_password__" > /opt/config/nexus_password.txt
1062 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1063 echo "__policy_ip_addr__" > /opt/config/local_ip_addr.txt
1064 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1065 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1066 echo "__docker_version__" > /opt/config/docker_version.txt
1067 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1068 echo "__cloud_env__" > /opt/config/cloud_env.txt
1069 echo "__external_dns__" > /opt/config/external_dns.txt
1071 # Download and run install script
1072 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1074 chmod +x policy_install.sh
1078 # APP-C instantiation
1080 type: OS::Neutron::Port
1082 network: { get_resource: oam_ecomp }
1083 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1086 type: OS::Nova::Server
1088 image: { get_param: ubuntu_1404_image }
1089 flavor: { get_param: flavor_large }
1094 base: { get_param: vm_base_name }
1095 key_name: { get_resource: vm_key }
1097 - network: { get_param: public_net_id }
1098 - port: { get_resource: appc_private_port }
1099 user_data_format: RAW
1103 __nexus_repo__: { get_param: nexus_repo }
1104 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1105 __nexus_username__: { get_param: nexus_username }
1106 __nexus_password__: { get_param: nexus_password }
1107 __dmaap_topic__: { get_param: dmaap_topic }
1108 __artifacts_version__: { get_param: artifacts_version }
1109 __appc_ip_addr__: { get_param: appc_ip_addr }
1110 __dns_ip_addr__: { get_param: dns_ip_addr }
1111 __oam_network_cidr__: { get_param: oam_network_cidr }
1112 __docker_version__: { get_param: docker_version }
1113 __gerrit_branch__: { get_param: gerrit_branch }
1114 __cloud_env__: { get_param: cloud_env }
1115 __external_dns__: { get_param: external_dns }
1119 # Create configuration files
1120 mkdir -p /opt/config
1121 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1122 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1123 echo "__nexus_username__" > /opt/config/nexus_username.txt
1124 echo "__nexus_password__" > /opt/config/nexus_password.txt
1125 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1126 echo "__appc_ip_addr__" > /opt/config/local_ip_addr.txt
1127 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1128 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1129 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1130 echo "__docker_version__" > /opt/config/docker_version.txt
1131 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1132 echo "__cloud_env__" > /opt/config/cloud_env.txt
1133 echo "__external_dns__" > /opt/config/external_dns.txt
1135 # Download and run install script
1136 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1138 chmod +x appc_install.sh