1 ##########################################################################
3 #==================LICENSE_START==========================================
6 # Copyright © 2017 AT&T Intellectual Property. All rights reserved.
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 #==================LICENSE_END============================================
21 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 ##########################################################################
25 heat_template_version: 2015-10-15
27 description: Heat template to install ONAP components
37 ##############################################
39 # Parameters used across all ONAP components #
41 ##############################################
45 description: Public network for floating IP address allocation
49 description: Name of the Ubuntu 14.04 image
53 description: Name of the Ubuntu 16.04 image
57 description: Name of the Small Flavor supported by the cloud provider
61 description: Name of the Medium Flavor supported by the cloud provider
65 description: Name of the Large Flavor supported by the cloud provider
69 description: Name of the Extra Large Flavor supported by the cloud provider
73 description: Base name of ONAP VMs
77 description: Public/Private key pair name
81 description: Public key to be installed on the compute instance
85 description: Complete URL for the Nexus repository.
89 description: Complete URL for the Nexus repository for docker images.
93 description: Nexus Repository username
97 description: Nexus Repository Password
101 description: Artifacts version of ONAP components
105 label: Version number of ONAP docker images
109 label: Gerrit code branch
110 description: Gerrit branch where to download the code from
114 description: DMaaP Topic name
118 description: Openstack tenant ID
122 description: Openstack username
124 openstack_auth_method:
126 description: Openstack authentication method (password VS. api-key)
130 description: Openstack API Key
134 description: URL of Openstack Horizon
138 description: URL of Openstack Keystone
142 description: Cloud Provider Name
144 ######################
146 # Network parameters #
148 ######################
151 type: comma_delimited_list
152 description: List of External DNS for OAM ONAP network
156 description: First element of the dns_list for ONAP network
158 ### Private IP addresses ###
161 description: CIDR of the OAM ONAP network
165 description: AAI 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 }
318 dns_nameservers: { get_param: dns_list }
321 type: OS::Neutron::Router
323 external_gateway_info:
324 network: { get_param: public_net_id }
327 type: OS::Neutron::RouterInterface
329 router_id: { get_resource: router }
330 subnet_id: { get_resource: oam_ecomp_subnet }
333 # DNS Server instantiation
335 type: OS::Neutron::Port
337 network: { get_resource: oam_ecomp }
338 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dns_ip_addr }}]
341 type: OS::Neutron::FloatingIP
343 floating_network_id: { get_param: public_net_id }
344 port_id: { get_resource: dns_private_port }
347 type: OS::Nova::Server
349 image: { get_param: ubuntu_1404_image }
350 flavor: { get_param: flavor_small }
353 template: base-dns-server
355 base: { get_param: vm_base_name }
356 key_name: { get_resource: vm_key }
358 - port: { get_resource: dns_private_port }
359 user_data_format: RAW
363 __nexus_repo__: { get_param: nexus_repo }
364 __artifacts_version__: { get_param: artifacts_version }
365 __oam_network_cidr__: { get_attr: [oam_ecomp_subnet, cidr] }
366 __dns_ip_addr__: { get_param: dns_ip_addr }
367 __aai_ip_addr__: { get_param: aai_ip_addr }
368 __appc_ip_addr__: { get_param: appc_ip_addr }
369 __dcae_ip_addr__: { get_param: dcae_ip_addr }
370 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
371 __mso_ip_addr__: { get_param: mso_ip_addr }
372 __mr_ip_addr__: { get_param: mr_ip_addr }
373 __policy_ip_addr__: { get_param: policy_ip_addr }
374 __portal_ip_addr__: { get_param: portal_ip_addr }
375 __robot_ip_addr__: { get_param: robot_ip_addr }
376 __sdc_ip_addr__: { get_param: sdc_ip_addr }
377 __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
378 __vid_ip_addr__: { get_param: vid_ip_addr }
379 __cloud_env__: { get_param: cloud_env }
384 # Create configuration files
386 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
387 echo "__cloud_env__" > /opt/config/cloud_env.txt
388 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
389 echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
390 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
391 echo "__aai_ip_addr__" > /opt/config/aai_ip_addr.txt
392 echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
393 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
394 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
395 echo "__mso_ip_addr__" > /opt/config/mso_ip_addr.txt
396 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
397 echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
398 echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
399 echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
400 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
401 echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
402 echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
404 # Download and run install script
405 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
407 chmod +x dns_install.sh
413 type: OS::Neutron::Port
415 network: { get_resource: oam_ecomp }
416 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: aai_ip_addr }}]
419 type: OS::Neutron::FloatingIP
421 floating_network_id: { get_param: public_net_id }
422 port_id: { get_resource: aai_private_port }
425 type: OS::Nova::Server
427 image: { get_param: ubuntu_1404_image }
428 flavor: { get_param: flavor_xlarge }
433 base: { get_param: vm_base_name }
434 key_name: { get_resource: vm_key }
436 - port: { get_resource: aai_private_port }
437 user_data_format: RAW
441 __nexus_repo__: { get_param: nexus_repo }
442 __nexus_docker_repo__: { get_param: nexus_docker_repo }
443 __nexus_username__: { get_param: nexus_username }
444 __nexus_password__: { get_param: nexus_password }
445 __dmaap_topic__: { get_param: dmaap_topic }
446 __artifacts_version__: { get_param: artifacts_version }
447 __dns_ip_addr__: { get_param: dns_ip_addr }
448 __sdc_ip_addr__: { get_param: sdc_ip_addr }
449 __docker_version__: { get_param: docker_version }
450 __cloud_env__: { get_param: cloud_env }
451 __external_dns__: { get_param: external_dns }
455 # Create configuration files
457 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
458 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
459 echo "__nexus_username__" > /opt/config/nexus_username.txt
460 echo "__nexus_password__" > /opt/config/nexus_password.txt
461 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
462 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
463 echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
464 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
465 echo "__docker_version__" > /opt/config/docker_version.txt
466 echo "__cloud_env__" > /opt/config/cloud_env.txt
467 echo "__external_dns__" > /opt/config/external_dns.txt
469 # Download and run install script
470 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
472 chmod +x aai_install.sh
478 type: OS::Neutron::Port
480 network: { get_resource: oam_ecomp }
481 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mso_ip_addr }}]
484 type: OS::Neutron::FloatingIP
486 floating_network_id: { get_param: public_net_id }
487 port_id: { get_resource: mso_private_port }
490 type: OS::Nova::Server
492 image: { get_param: ubuntu_1604_image }
493 flavor: { get_param: flavor_large }
498 base: { get_param: vm_base_name }
499 key_name: { get_resource: vm_key }
501 - port: { get_resource: mso_private_port }
502 user_data_format: RAW
506 __nexus_repo__: { get_param: nexus_repo }
507 __nexus_docker_repo__: { get_param: nexus_docker_repo }
508 __nexus_username__: { get_param: nexus_username }
509 __nexus_password__: { get_param: nexus_password }
510 __openstack_username__: { get_param: openstack_username }
511 __openstack_tenant_id__: { get_param: openstack_tenant_id }
512 __openstack_api_key__: { get_param: openstack_api_key }
513 __openstack_region__: { get_param: openstack_region }
514 __keystone_url__: { get_param: keystone_url }
515 __dmaap_topic__: { get_param: dmaap_topic }
516 __artifacts_version__: { get_param: artifacts_version }
517 __dns_ip_addr__: { get_param: dns_ip_addr }
518 __docker_version__: { get_param: docker_version }
519 __gerrit_branch__: { get_param: gerrit_branch }
520 __cloud_env__: { get_param: cloud_env }
521 __external_dns__: { get_param: external_dns }
525 # Create configuration files
527 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
528 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
529 echo "__nexus_username__" > /opt/config/nexus_username.txt
530 echo "__nexus_password__" > /opt/config/nexus_password.txt
531 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
532 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
533 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
534 echo "__openstack_username__" > /opt/config/openstack_username.txt
535 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
536 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
537 echo "__openstack_region__" > /opt/config/openstack_region.txt
538 echo "__keystone_url__" > /opt/config/keystone.txt
539 echo "__docker_version__" > /opt/config/docker_version.txt
540 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
541 echo "__cloud_env__" > /opt/config/cloud_env.txt
542 echo "__external_dns__" > /opt/config/external_dns.txt
544 # Download and run install script
545 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
547 chmod +x mso_install.sh
551 # Message Router instantiation
552 mrouter_private_port:
553 type: OS::Neutron::Port
555 network: { get_resource: oam_ecomp }
556 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: mr_ip_addr }}]
559 type: OS::Neutron::FloatingIP
561 floating_network_id: { get_param: public_net_id }
562 port_id: { get_resource: mrouter_private_port }
565 type: OS::Nova::Server
567 image: { get_param: ubuntu_1404_image }
568 flavor: { get_param: flavor_large }
571 template: base-message-router
573 base: { get_param: vm_base_name }
574 key_name: { get_resource: vm_key }
576 - port: { get_resource: mrouter_private_port }
577 user_data_format: RAW
581 __nexus_repo__: { get_param: nexus_repo }
582 __nexus_docker_repo__: { get_param: nexus_docker_repo }
583 __nexus_username__: { get_param: nexus_username }
584 __nexus_password__: { get_param: nexus_password }
585 __artifacts_version__: { get_param: artifacts_version }
586 __dns_ip_addr__: { get_param: dns_ip_addr }
587 __gerrit_branch__: { get_param: gerrit_branch }
588 __cloud_env__: { get_param: cloud_env }
589 __external_dns__: { get_param: external_dns }
593 # Create configuration files
595 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
596 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
597 echo "__nexus_username__" > /opt/config/nexus_username.txt
598 echo "__nexus_password__" > /opt/config/nexus_password.txt
599 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
600 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
601 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
602 echo "__cloud_env__" > /opt/config/cloud_env.txt
603 echo "__external_dns__" > /opt/config/external_dns.txt
605 # Download and run install script
606 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
608 chmod +x mr_install.sh
612 # Robot Framework instantiation
614 type: OS::Neutron::Port
616 network: { get_resource: oam_ecomp }
617 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: robot_ip_addr }}]
620 type: OS::Neutron::FloatingIP
622 floating_network_id: { get_param: public_net_id }
623 port_id: { get_resource: robot_private_port }
626 type: OS::Nova::Server
628 image: { get_param: ubuntu_1604_image }
629 flavor: { get_param: flavor_small }
634 base: { get_param: vm_base_name }
635 key_name: { get_resource: vm_key }
637 - port: { get_resource: robot_private_port }
638 user_data_format: RAW
642 __nexus_repo__: { get_param: nexus_repo }
643 __nexus_docker_repo__: { get_param: nexus_docker_repo }
644 __nexus_username__: { get_param: nexus_username }
645 __nexus_password__: { get_param: nexus_password }
646 __network_name__: { get_attr: [oam_ecomp, name] }
647 __openstack_username__: { get_param: openstack_username }
648 __openstack_api_key__: { get_param : openstack_api_key }
649 __artifacts_version__: { get_param: artifacts_version }
650 __openstack_region__: { get_param: openstack_region }
651 __dns_ip_addr__: { get_param: dns_ip_addr }
652 __docker_version__: { get_param: docker_version }
653 __gerrit_branch__: { get_param: gerrit_branch }
654 __cloud_env__: { get_param: cloud_env }
655 __external_dns__: { get_param: external_dns }
659 # Create configuration files
661 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
662 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
663 echo "__nexus_username__" > /opt/config/nexus_username.txt
664 echo "__nexus_password__" > /opt/config/nexus_password.txt
665 echo "__network_name__" > /opt/config/network.txt
666 echo "__openstack_username__" > /opt/config/openstack_username.txt
667 echo "__openstack_api_key__" > /opt/config/openstack_password.txt
668 echo "__openstack_region__" > /opt/config/region.txt
669 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
670 echo "__docker_version__" > /opt/config/docker_version.txt
671 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
672 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
673 echo "__cloud_env__" > /opt/config/cloud_env.txt
674 echo "__external_dns__" > /opt/config/external_dns.txt
676 # Download and run install script
677 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
679 chmod +x robot_install.sh
685 type: OS::Neutron::Port
687 network: { get_resource: oam_ecomp }
688 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: vid_ip_addr }}]
691 type: OS::Neutron::FloatingIP
693 floating_network_id: { get_param: public_net_id }
694 port_id: { get_resource: vid_private_port }
697 type: OS::Nova::Server
699 image: { get_param: ubuntu_1404_image }
700 flavor: { get_param: flavor_medium }
705 base: { get_param: vm_base_name }
706 key_name: { get_resource: vm_key }
708 - port: { get_resource: vid_private_port }
709 user_data_format: RAW
713 __nexus_repo__: { get_param: nexus_repo }
714 __nexus_docker_repo__: { get_param: nexus_docker_repo }
715 __nexus_username__: { get_param: nexus_username }
716 __nexus_password__: { get_param: nexus_password }
717 __artifacts_version__: { get_param: artifacts_version }
718 __dns_ip_addr__: { get_param: dns_ip_addr }
719 __docker_version__: { get_param: docker_version }
720 __gerrit_branch__: { get_param: gerrit_branch }
721 __cloud_env__: { get_param: cloud_env }
722 __external_dns__: { get_param: external_dns }
726 # Create configuration files
728 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
729 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
730 echo "__nexus_username__" > /opt/config/nexus_username.txt
731 echo "__nexus_password__" > /opt/config/nexus_password.txt
732 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
733 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
734 echo "__docker_version__" > /opt/config/docker_version.txt
735 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
736 echo "__cloud_env__" > /opt/config/cloud_env.txt
737 echo "__external_dns__" > /opt/config/external_dns.txt
739 # Download and run install script
740 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
742 chmod +x vid_install.sh
746 # SDN-C instantiation
748 type: OS::Neutron::Port
750 network: { get_resource: oam_ecomp }
751 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
754 type: OS::Neutron::FloatingIP
756 floating_network_id: { get_param: public_net_id }
757 port_id: { get_resource: sdnc_private_port }
760 type: OS::Nova::Server
762 image: { get_param: ubuntu_1404_image }
763 flavor: { get_param: flavor_large }
768 base: { get_param: vm_base_name }
769 key_name: { get_resource: vm_key }
771 - port: { get_resource: sdnc_private_port }
772 user_data_format: RAW
776 __nexus_repo__: { get_param: nexus_repo }
777 __nexus_docker_repo__: { get_param: nexus_docker_repo }
778 __nexus_username__: { get_param: nexus_username }
779 __nexus_password__: { get_param: nexus_password }
780 __artifacts_version__: { get_param: artifacts_version }
781 __dns_ip_addr__: { get_param: dns_ip_addr }
782 __docker_version__: { get_param: docker_version }
783 __gerrit_branch__: { get_param: gerrit_branch }
784 __cloud_env__: { get_param: cloud_env }
785 __external_dns__: { get_param: external_dns }
789 # Create configuration files
791 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
792 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
793 echo "__nexus_username__" > /opt/config/nexus_username.txt
794 echo "__nexus_password__" > /opt/config/nexus_password.txt
795 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
796 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
797 echo "__docker_version__" > /opt/config/docker_version.txt
798 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
799 echo "__cloud_env__" > /opt/config/cloud_env.txt
800 echo "__external_dns__" > /opt/config/external_dns.txt
802 # Download and run install script
803 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
805 chmod +x sdnc_install.sh
811 type: OS::Neutron::Port
813 network: { get_resource: oam_ecomp }
814 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
817 type: OS::Neutron::FloatingIP
819 floating_network_id: { get_param: public_net_id }
820 port_id: { get_resource: sdc_private_port }
823 type: OS::Cinder::Volume
829 type: OS::Nova::Server
831 image: { get_param: ubuntu_1604_image }
832 flavor: { get_param: flavor_xlarge }
837 base: { get_param: vm_base_name }
838 key_name: { get_resource: vm_key }
840 - port: { get_resource: sdc_private_port }
841 block_device_mapping:
842 - device_name: /dev/vdb
843 volume_id: {get_resource: sdc_volume_data}
844 user_data_format: RAW
848 __nexus_repo__: { get_param: nexus_repo }
849 __nexus_docker_repo__: { get_param: nexus_docker_repo }
850 __nexus_username__: { get_param: nexus_username }
851 __nexus_password__: { get_param: nexus_password }
852 __env_name__: { get_param: dmaap_topic }
853 __artifacts_version__: { get_param: artifacts_version }
854 __dns_ip_addr__: { get_param: dns_ip_addr }
855 __mr_ip_addr__: { get_param: mr_ip_addr }
856 __public_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
857 __docker_version__: { get_param: docker_version }
858 __gerrit_branch__: { get_param: gerrit_branch }
859 __cloud_env__: { get_param: cloud_env }
860 __external_dns__: { get_param: external_dns }
864 # Create configuration files
866 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
867 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
868 echo "__nexus_username__" > /opt/config/nexus_username.txt
869 echo "__nexus_password__" > /opt/config/nexus_password.txt
870 echo "__env_name__" > /opt/config/env_name.txt
871 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
872 echo "__public_ip__" > /opt/config/public_ip.txt
873 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
874 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
875 echo "__docker_version__" > /opt/config/docker_version.txt
876 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
877 echo "__cloud_env__" > /opt/config/cloud_env.txt
878 echo "__external_dns__" > /opt/config/external_dns.txt
880 # Download and run install script
881 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
883 chmod +x asdc_install.sh
887 # PORTAL instantiation
889 type: OS::Neutron::Port
891 network: { get_resource: oam_ecomp }
892 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: portal_ip_addr }}]
895 type: OS::Neutron::FloatingIP
897 floating_network_id: { get_param: public_net_id }
898 port_id: { get_resource: portal_private_port }
901 type: OS::Nova::Server
903 image: { get_param: ubuntu_1404_image }
904 flavor: { get_param: flavor_large }
907 template: base-portal
909 base: { get_param: vm_base_name }
910 key_name: { get_resource: vm_key }
912 - port: { get_resource: portal_private_port }
913 user_data_format: RAW
917 __nexus_repo__: { get_param: nexus_repo }
918 __nexus_docker_repo__: { get_param: nexus_docker_repo }
919 __nexus_username__: { get_param: nexus_username }
920 __nexus_password__: { get_param: nexus_password }
921 __artifacts_version__: { get_param: artifacts_version }
922 __dns_ip_addr__: { get_param: dns_ip_addr }
923 __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
924 __docker_version__: { get_param: docker_version }
925 __gerrit_branch__: { get_param: gerrit_branch }
926 __cloud_env__: { get_param: cloud_env }
927 __external_dns__: { get_param: external_dns }
931 # Create configuration files
933 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
934 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
935 echo "__nexus_username__" > /opt/config/nexus_username.txt
936 echo "__nexus_password__" > /opt/config/nexus_password.txt
937 echo "__public_ip__" > /opt/config/public_ip.txt
938 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
939 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
940 echo "__docker_version__" > /opt/config/docker_version.txt
941 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
942 echo "__cloud_env__" > /opt/config/cloud_env.txt
943 echo "__external_dns__" > /opt/config/external_dns.txt
945 # Download and run install script
946 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
948 chmod +x portal_install.sh
952 # DCAE Controller instantiation
954 type: OS::Neutron::Port
956 network: { get_resource: oam_ecomp }
957 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
960 type: OS::Neutron::FloatingIP
962 floating_network_id: { get_param: public_net_id }
963 port_id: { get_resource: dcae_c_private_port }
966 type: OS::Nova::Server
968 image: { get_param: ubuntu_1404_image }
969 flavor: { get_param: flavor_medium }
972 template: base-dcae-controller
974 base: { get_param: vm_base_name }
975 key_name: { get_resource: vm_key }
977 - port: { get_resource: dcae_c_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 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
987 __gitlab_branch__: { get_param: gitlab_branch }
988 __dns_ip_addr__: { get_param: dns_ip_addr }
989 __dcae_zone__: { get_param: dcae_zone }
990 __dcae_state__: { get_param: dcae_state }
991 __artifacts_version__: { get_param: artifacts_version }
992 __tenant_id__: { get_param: openstack_tenant_id }
993 __openstack_private_network_name__: { get_attr: [oam_ecomp, name] }
994 __openstack_user__: { get_param: openstack_username }
995 __openstack_password__: { get_param: openstack_api_key }
996 __openstack_auth_method__: { get_param: openstack_auth_method }
997 __key_name__: { get_param: key_name }
998 __rand_str__: { get_resource: random-str }
999 __pub_key__: { get_param: pub_key }
1000 __nexus_repo_root__: { get_param: nexus_repo_root }
1001 __openstack_region__: { get_param: openstack_region }
1002 __horizon_url__: { get_param: horizon_url }
1003 __keystone_url__: { get_param: keystone_url }
1004 __docker_version__: { get_param: docker_version }
1005 __gerrit_branch__: { get_param: gerrit_branch }
1006 __dcae_code_version__: { get_param: dcae_code_version }
1007 __cloud_env__: { get_param: cloud_env }
1008 __public_net_id__: { get_param: public_net_id }
1009 __dcae_base_environment__: { get_param: dcae_base_environment }
1010 __dcae_ip_addr__: { get_param: dcae_ip_addr }
1011 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1012 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1013 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1014 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1015 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1016 __external_dns__: { get_param: external_dns }
1017 __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1018 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1019 __flavor_small__: { get_param: flavor_small }
1020 __flavor_medium__: { get_param: flavor_medium }
1021 __flavor_large__: { get_param: flavor_large }
1022 __flavor_xlarge__: { get_param: flavor_xlarge }
1026 # Create configuration files
1027 mkdir -p /opt/config
1028 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1029 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1030 echo "__nexus_username__" > /opt/config/nexus_username.txt
1031 echo "__nexus_password__" > /opt/config/nexus_password.txt
1032 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1033 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1034 echo "__docker_version__" > /opt/config/docker_version.txt
1035 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1036 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1037 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1038 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1039 echo "__dcae_state__" > /opt/config/dcae_state.txt
1040 echo "__tenant_id__" > /opt/config/tenant_id.txt
1041 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1042 echo "__openstack_user__" > /opt/config/openstack_user.txt
1043 echo "__openstack_password__" > /opt/config/openstack_password.txt
1044 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1045 echo "__key_name__" > /opt/config/key_name.txt
1046 echo "__rand_str__" > /opt/config/rand_str.txt
1047 echo "__pub_key__" > /opt/config/pub_key.txt
1048 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1049 echo "__openstack_region__" > /opt/config/openstack_region.txt
1050 echo "__horizon_url__" > /opt/config/horizon_url.txt
1051 echo "__keystone_url__" > /opt/config/keystone_url.txt
1052 echo "__cloud_env__" > /opt/config/cloud_env.txt
1053 echo "__public_net_id__" > /opt/config/public_net_id.txt
1054 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1055 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1056 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1057 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1058 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1059 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1060 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1061 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1062 echo "__external_dns__" > /opt/config/external_dns.txt
1063 echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1064 echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1065 echo "__flavor_small__" > /opt/config/flavor_small.txt
1066 echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1067 echo "__flavor_large__" > /opt/config/flavor_large.txt
1068 echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1070 # Download and run install script
1071 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1073 chmod +x dcae_install.sh
1077 # Policy Engine instantiation
1078 policy_private_port:
1079 type: OS::Neutron::Port
1081 network: { get_resource: oam_ecomp }
1082 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1085 type: OS::Neutron::FloatingIP
1087 floating_network_id: { get_param: public_net_id }
1088 port_id: { get_resource: policy_private_port }
1091 type: OS::Nova::Server
1093 image: { get_param: ubuntu_1404_image }
1094 flavor: { get_param: flavor_xlarge }
1097 template: base-policy
1099 base: { get_param: vm_base_name }
1100 key_name: { get_resource: vm_key }
1102 - port: { get_resource: policy_private_port }
1103 user_data_format: RAW
1107 __nexus_repo__: { get_param: nexus_repo }
1108 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1109 __nexus_username__: { get_param: nexus_username }
1110 __nexus_password__: { get_param: nexus_password }
1111 __artifacts_version__: { get_param: artifacts_version }
1112 __dns_ip_addr__: { get_param: dns_ip_addr }
1113 __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1114 __docker_version__: { get_param: docker_version }
1115 __gerrit_branch__: { get_param: gerrit_branch }
1116 __cloud_env__: { get_param: cloud_env }
1117 __external_dns__: { get_param: external_dns }
1121 # Create configuration files
1122 mkdir -p /opt/config
1123 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1124 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1125 echo "__nexus_username__" > /opt/config/nexus_username.txt
1126 echo "__nexus_password__" > /opt/config/nexus_password.txt
1127 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1128 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1129 echo "__public_ip__" > /opt/config/public_ip.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__/policy_install.sh -o /opt/policy_install.sh
1138 chmod +x policy_install.sh
1142 # APP-C instantiation
1144 type: OS::Neutron::Port
1146 network: { get_resource: oam_ecomp }
1147 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1150 type: OS::Neutron::FloatingIP
1152 floating_network_id: { get_param: public_net_id }
1153 port_id: { get_resource: appc_private_port }
1156 type: OS::Nova::Server
1158 image: { get_param: ubuntu_1404_image }
1159 flavor: { get_param: flavor_large }
1164 base: { get_param: vm_base_name }
1165 key_name: { get_resource: vm_key }
1167 - port: { get_resource: appc_private_port }
1168 user_data_format: RAW
1172 __nexus_repo__: { get_param: nexus_repo }
1173 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1174 __nexus_username__: { get_param: nexus_username }
1175 __nexus_password__: { get_param: nexus_password }
1176 __dmaap_topic__: { get_param: dmaap_topic }
1177 __artifacts_version__: { get_param: artifacts_version }
1178 __dns_ip_addr__: { get_param: dns_ip_addr }
1179 __docker_version__: { get_param: docker_version }
1180 __gerrit_branch__: { get_param: gerrit_branch }
1181 __cloud_env__: { get_param: cloud_env }
1182 __external_dns__: { get_param: external_dns }
1186 # Create configuration files
1187 mkdir -p /opt/config
1188 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1189 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1190 echo "__nexus_username__" > /opt/config/nexus_username.txt
1191 echo "__nexus_password__" > /opt/config/nexus_password.txt
1192 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1193 echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1194 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1195 echo "__docker_version__" > /opt/config/docker_version.txt
1196 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1197 echo "__cloud_env__" > /opt/config/cloud_env.txt
1198 echo "__external_dns__" > /opt/config/external_dns.txt
1200 # Download and run install script
1201 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1203 chmod +x appc_install.sh