1 ##########################################################################
3 #==================LICENSE_START==========================================
6 # Copyright (c) 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 deploy ONAP components
31 # Generic parameters used across all ONAP components
34 description: Public network that enables remote connection to the compute instance
38 description: Public/Private key pair name
42 description: Base name of ONAP VMs
46 description: Public key or SSL certificate to be installed on the compute instance
50 description: Complete URL for the Nexus repository.
54 description: Complete URL for the Nexus repository for docker images.
58 description: Nexus Repository username
62 description: Nexus Repository Password
66 description: Rackspace tenant ID
70 description: Rackspace username
74 description: Rackspace API Key
78 description: Rackspace Password
80 openstack_auth_method:
82 description: Openstack authentication method (password VS. api-key)
86 description: DMaaP topic name
90 description: Artifacts version of ONAP components
94 description: Cloud Provider Name
97 # Parameters for DCAE instantiation
98 dcae_base_environment:
100 description: DCAE Base Environment configuration (for this template, only RACKSPACE is supported)
104 description: DCAE Zone to use in VM names created by DCAE controller
108 description: DCAE State to use in VM names created by DCAE controller
112 description: Root URL of nexus repository
116 description: Snapshot of Maven repository
120 description: Rackspace region where the DCAE controller will spin the VMs
124 description: Branch of the Gitlab repository
128 description: DCAE Code Version Number
132 description: DCAE IP Address
136 description: DCAE Collector IP Address
140 description: DCAE Database IP Address
144 description: Hadoop VM1 IP Address
148 description: Hadoop VM2 IP Address
152 description: Hadoop VM3 IP Address
154 # ONAP repositories, docker versions, and Gerrit branches
237 type: OS::Heat::RandomString
241 # Public key used to access ONAP components
243 type: OS::Nova::KeyPair
249 base: { get_param: key_name }
250 rand: { get_resource: random-str }
251 public_key: { get_param: pub_key }
252 save_private_key: false
255 # ONAP management private network
257 type: OS::Neutron::Net
261 template: oam_onap_rand
263 rand: { get_resource: random-str }
266 type: OS::Neutron::Subnet
270 template: oam_onap_rand
272 rand: { get_resource: random-str }
273 network_id: { get_resource: oam_onap }
277 # DNS Server instantiation
279 type: OS::Neutron::Port
281 network: { get_resource: oam_onap }
282 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.0.1}]
285 type: OS::Nova::Server
287 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
288 flavor: 4 GB General Purpose v1
291 template: base-dns-server
293 base: { get_param: vm_base_name }
294 key_name: { get_resource: vm_key }
296 - network: { get_param: public_net_id }
297 - port: { get_resource: dns_private_port }
298 user_data_format: RAW
302 __nexus_repo__: { get_param: nexus_repo }
303 __artifacts_version__: { get_param: artifacts_version }
304 __cloud_env__: { get_param: cloud_env }
308 # Create configuration files
310 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
311 echo "__cloud_env__" > /opt/config/cloud_env.txt
312 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
314 # Download and run install script
315 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
317 chmod +x dns_install.sh
321 # A&AI instantiation (2 VMs)
323 type: OS::Neutron::Port
325 network: { get_resource: oam_onap }
326 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.1.1}]
329 type: OS::Cinder::Volume
334 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
337 type: OS::Nova::Server
340 flavor: 15 GB Compute v1
343 template: base-aai-inst1
345 base: { get_param: vm_base_name }
346 key_name: { get_resource: vm_key }
347 block_device_mapping:
348 - volume_id: { get_resource: aai1_volume }
351 - network: { get_param: public_net_id }
352 - port: { get_resource: aai1_private_port }
353 user_data_format: RAW
357 __nexus_repo__: { get_param: nexus_repo }
358 __nexus_docker_repo__: { get_param: nexus_docker_repo }
359 __nexus_username__: { get_param: nexus_username }
360 __nexus_password__: { get_param: nexus_password }
361 __dmaap_topic__: { get_param: dmaap_topic }
362 __artifacts_version__: { get_param: artifacts_version }
363 __docker_version__: { get_param: aai_docker }
364 __gerrit_branch__: { get_param: aai_branch }
365 __cloud_env__: { get_param: cloud_env }
366 __aai_repo__: { get_param: aai_repo }
370 # Create configuration files
372 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
373 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
374 echo "__nexus_username__" > /opt/config/nexus_username.txt
375 echo "__nexus_password__" > /opt/config/nexus_password.txt
376 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
377 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
378 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
379 echo "__docker_version__" > /opt/config/docker_version.txt
380 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
381 echo "aai_instance_1" > /opt/config/aai_instance.txt
382 echo "__cloud_env__" > /opt/config/cloud_env.txt
383 echo "__aai_repo__" > /opt/config/remote_repo.txt
385 # Download and run install script
386 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
388 chmod +x aai_install.sh
393 type: OS::Neutron::Port
395 network: { get_resource: oam_onap }
396 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.1.2}]
399 type: OS::Cinder::Volume
404 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
407 type: OS::Nova::Server
409 flavor: 15 GB Compute v1
412 template: base-aai-inst2
414 base: { get_param: vm_base_name }
415 key_name: { get_resource: vm_key }
416 block_device_mapping:
417 - volume_id: { get_resource: aai2_volume }
420 - network: { get_param: public_net_id }
421 - port: { get_resource: aai2_private_port }
422 user_data_format: RAW
426 __nexus_repo__: { get_param: nexus_repo }
427 __nexus_docker_repo__: { get_param: nexus_docker_repo }
428 __nexus_username__: { get_param: nexus_username }
429 __nexus_password__: { get_param: nexus_password }
430 __dmaap_topic__: { get_param: dmaap_topic }
431 __artifacts_version__: { get_param: artifacts_version }
432 __docker_version__: { get_param: aai_docker }
433 __gerrit_branch__: { get_param: aai_branch }
434 __cloud_env__: { get_param: cloud_env }
435 __aai_repo__: { get_param: aai_repo }
439 # Create configuration files
441 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
442 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
443 echo "__nexus_username__" > /opt/config/nexus_username.txt
444 echo "__nexus_password__" > /opt/config/nexus_password.txt
445 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
446 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
447 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
448 echo "__docker_version__" > /opt/config/docker_version.txt
449 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
450 echo "aai_instance_2" > /opt/config/aai_instance.txt
451 echo "__cloud_env__" > /opt/config/cloud_env.txt
452 echo "__aai_repo__" > /opt/config/remote_repo.txt
454 # Download and run install script
455 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
457 chmod +x aai_install.sh
463 type: OS::Neutron::Port
465 network: { get_resource: oam_onap }
466 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.5.1}]
469 type: OS::Nova::Server
471 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
472 flavor: 4 GB General Purpose v1
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: so_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 __openstack_username__: { get_param: openstack_username }
491 __openstack_tenant_id__: { get_param: openstack_tenant_id }
492 __openstack_api_key__: { get_param: openstack_api_key }
493 __dmaap_topic__: { get_param: dmaap_topic }
494 __artifacts_version__: { get_param: artifacts_version }
495 __docker_version__: { get_param: so_docker }
496 __gerrit_branch__: { get_param: so_branch }
497 __cloud_env__: { get_param: cloud_env }
498 __so_repo__: { get_param: so_repo }
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 "10.0.0.1" > /opt/config/dns_ip_addr.txt
510 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
511 echo "__openstack_username__" > /opt/config/openstack_username.txt
512 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
513 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
514 echo "__docker_version__" > /opt/config/docker_version.txt
515 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
516 echo "__cloud_env__" > /opt/config/cloud_env.txt
517 echo "__so_repo__" > /opt/config/remote_repo.txt
519 # Download and run install script
520 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
522 chmod +x so_install.sh
526 # Message Router instantiation
527 mrouter_private_port:
528 type: OS::Neutron::Port
530 network: { get_resource: oam_onap }
531 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.11.1}]
534 type: OS::Nova::Server
536 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
540 template: base-message-router
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: mrouter_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 __artifacts_version__: { get_param: artifacts_version }
556 __gerrit_branch__: { get_param: mr_branch }
557 __cloud_env__: { get_param: cloud_env }
558 __mr_repo__: { get_param: mr_repo }
562 # Create configuration files
564 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
565 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
566 echo "__nexus_username__" > /opt/config/nexus_username.txt
567 echo "__nexus_password__" > /opt/config/nexus_password.txt
568 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
569 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
570 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
571 echo "__cloud_env__" > /opt/config/cloud_env.txt
572 echo "__mr_repo__" > /opt/config/remote_repo.txt
574 # Download and run install script
575 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
577 chmod +x mr_install.sh
581 # RobotE2E instantiation
583 type: OS::Neutron::Port
585 network: { get_resource: oam_onap }
586 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.10.1}]
589 type: OS::Nova::Server
591 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
592 flavor: 2 GB General Purpose v1
597 base: { get_param: vm_base_name }
598 key_name: { get_resource: vm_key }
600 - network: { get_param: public_net_id }
601 - port: { get_resource: robot_private_port }
602 user_data_format: RAW
606 __nexus_repo__: { get_param: nexus_repo }
607 __nexus_docker_repo__: { get_param: nexus_docker_repo }
608 __nexus_username__: { get_param: nexus_username }
609 __nexus_password__: { get_param: nexus_password }
610 __network_name__: { get_attr: [oam_onap, name] }
611 __openstack_username__: { get_param: openstack_username }
612 __openstack_api_key__: { get_param : openstack_api_key }
613 __openstack_password__: { get_param: openstack_password }
614 __openstack_tenant_id__: { get_param: openstack_tenant_id }
615 __artifacts_version__: { get_param: artifacts_version }
616 __openstack_region__: { get_param: openstack_region }
617 __docker_version__: { get_param: robot_docker }
618 __gerrit_branch__: { get_param: robot_branch }
619 __cloud_env__: { get_param: cloud_env }
620 __robot_repo__: { get_param: robot_repo }
624 # Create configuration files
626 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
627 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
628 echo "__nexus_username__" > /opt/config/nexus_username.txt
629 echo "__nexus_password__" > /opt/config/nexus_password.txt
630 echo "__network_name__" > /opt/config/network.txt
631 echo "__openstack_username__" > /opt/config/openstack_username.txt
632 echo "__openstack_password__" > /opt/config/openstack_password.txt
633 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
634 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
635 echo "__openstack_region__" > /opt/config/region.txt
636 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
637 echo "__docker_version__" > /opt/config/docker_version.txt
638 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
639 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
640 echo "https://identity.api.rackspacecloud.com/v2.0" > /opt/config/keystone.txt
641 echo "10.0.1.1" > /opt/config/aai1_ip_addr.txt
642 echo "10.0.1.2" > /opt/config/aai2_ip_addr.txt
643 echo "10.0.2.1" > /opt/config/appc_ip_addr.txt
644 echo "10.0.4.1" > /opt/config/dcae_ip_addr.txt
645 echo "10.0.5.1" > /opt/config/so_ip_addr.txt
646 echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
647 echo "10.0.6.1" > /opt/config/policy_ip_addr.txt
648 echo "10.0.9.1" > /opt/config/portal_ip_addr.txt
649 echo "10.0.3.1" > /opt/config/sdc_ip_addr.txt
650 echo "10.0.7.1" > /opt/config/sdnc_ip_addr.txt
651 echo "10.0.8.1" > /opt/config/vid_ip_addr.txt
652 echo "10.0.12.1" > /opt/config/clamp_ip_addr.txt
653 echo "Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)" > /opt/config/vm_image_name.txt
654 echo "4 GB General Purpose v1" > /opt/config/vm_flavor.txt
655 echo "__cloud_env__" > /opt/config/cloud_env.txt
656 echo "__robot_repo__" > /opt/config/remote_repo.txt
658 # Download and run install script
659 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
661 chmod +x robot_install.sh
667 type: OS::Neutron::Port
669 network: { get_resource: oam_onap }
670 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.8.1}]
673 type: OS::Nova::Server
675 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
676 flavor: 2 GB General Purpose v1
681 base: { get_param: vm_base_name }
682 key_name: { get_resource: vm_key }
684 - network: { get_param: public_net_id }
685 - port: { get_resource: vid_private_port }
686 user_data_format: RAW
690 __nexus_repo__: { get_param: nexus_repo }
691 __nexus_docker_repo__: { get_param: nexus_docker_repo }
692 __nexus_username__: { get_param: nexus_username }
693 __nexus_password__: { get_param: nexus_password }
694 __artifacts_version__: { get_param: artifacts_version }
695 __docker_version__: { get_param: vid_docker }
696 __gerrit_branch__: { get_param: vid_branch }
697 __cloud_env__: { get_param: cloud_env }
698 __vid_repo__: { get_param: vid_repo }
702 # Create configuration files
704 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
705 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
706 echo "__nexus_username__" > /opt/config/nexus_username.txt
707 echo "__nexus_password__" > /opt/config/nexus_password.txt
708 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
709 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
710 echo "__docker_version__" > /opt/config/docker_version.txt
711 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
712 echo "__cloud_env__" > /opt/config/cloud_env.txt
713 echo "__vid_repo__" > /opt/config/remote_repo.txt
715 # Download and run install script
716 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
718 chmod +x vid_install.sh
722 # SDN-C instantiation
724 type: OS::Neutron::Port
726 network: { get_resource: oam_onap }
727 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.7.1}]
730 type: OS::Nova::Server
732 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
733 flavor: 4 GB General Purpose v1
738 base: { get_param: vm_base_name }
739 key_name: { get_resource: vm_key }
741 - network: { get_param: public_net_id }
742 - port: { get_resource: sdnc_private_port }
743 user_data_format: RAW
747 __nexus_repo__: { get_param: nexus_repo }
748 __nexus_docker_repo__: { get_param: nexus_docker_repo }
749 __nexus_username__: { get_param: nexus_username }
750 __nexus_password__: { get_param: nexus_password }
751 __artifacts_version__: { get_param: artifacts_version }
752 __docker_version__: { get_param: sdnc_docker }
753 __gerrit_branch__: { get_param: sdnc_branch }
754 __dgbuilder_docker__: { get_param: dgbuilder_docker }
755 __cloud_env__: { get_param: cloud_env }
756 __sdnc_repo__: { get_param: sdnc_repo }
760 # Create configuration files
762 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
763 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
764 echo "__nexus_username__" > /opt/config/nexus_username.txt
765 echo "__nexus_password__" > /opt/config/nexus_password.txt
766 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
767 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
768 echo "__docker_version__" > /opt/config/docker_version.txt
769 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
770 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
771 echo "__cloud_env__" > /opt/config/cloud_env.txt
772 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
774 # Download and run install script
775 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
777 chmod +x sdnc_install.sh
783 type: OS::Neutron::Port
785 network: { get_resource: oam_onap }
786 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.3.1}]
789 type: OS::Cinder::Volume
794 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
797 type: OS::Cinder::Volume
803 sdc_volume_attachment:
804 type: OS::Cinder::VolumeAttachment
806 volume_id: { get_resource: sdc_volume_data }
807 instance_uuid: { get_resource: sdc_vm }
808 mountpoint: /dev/xvdb
811 type: OS::Nova::Server
813 flavor: 15 GB Compute v1
818 base: { get_param: vm_base_name }
819 key_name: { get_resource: vm_key }
820 block_device_mapping:
821 - volume_id: { get_resource: sdc_volume_local }
824 - network: { get_param: public_net_id }
825 - port: { get_resource: sdc_private_port }
826 user_data_format: RAW
830 __nexus_repo__: { get_param: nexus_repo }
831 __nexus_docker_repo__: { get_param: nexus_docker_repo }
832 __nexus_username__: { get_param: nexus_username }
833 __nexus_password__: { get_param: nexus_password }
834 __env_name__: { get_param: dmaap_topic }
835 __artifacts_version__: { get_param: artifacts_version }
836 __docker_version__: { get_param: sdc_docker }
837 __gerrit_branch__: { get_param: sdc_branch }
838 __cloud_env__: { get_param: cloud_env }
839 __sdc_repo__: { get_param: sdc_repo }
843 # Create configuration files
845 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
846 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
847 echo "__nexus_username__" > /opt/config/nexus_username.txt
848 echo "__nexus_password__" > /opt/config/nexus_password.txt
849 echo "__env_name__" > /opt/config/env_name.txt
850 echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
851 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
852 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
853 echo "__docker_version__" > /opt/config/docker_version.txt
854 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
855 echo "__cloud_env__" > /opt/config/cloud_env.txt
856 echo "__sdc_repo__" > /opt/config/remote_repo.txt
858 # Download and run install script
859 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
861 chmod +x sdc_install.sh
865 # PORTAL instantiation
867 type: OS::Neutron::Port
869 network: { get_resource: oam_onap }
870 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.9.1}]
873 type: OS::Cinder::Volume
878 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
881 type: OS::Nova::Server
883 flavor: 15 GB Memory v1
886 template: base-portal
888 base: { get_param: vm_base_name }
889 key_name: { get_resource: vm_key }
890 block_device_mapping:
891 - volume_id: { get_resource: portal_volume }
894 - network: { get_param: public_net_id }
895 - port: { get_resource: portal_private_port }
896 user_data_format: RAW
900 __nexus_repo__: { get_param: nexus_repo }
901 __nexus_docker_repo__: { get_param: nexus_docker_repo }
902 __nexus_username__: { get_param: nexus_username }
903 __nexus_password__: { get_param: nexus_password }
904 __artifacts_version__: { get_param: artifacts_version }
905 __docker_version__: { get_param: portal_docker }
906 __gerrit_branch__: { get_param: portal_branch }
907 __cloud_env__: { get_param: cloud_env }
908 __cli_docker__: { get_param: cli_docker }
909 __portal_repo__: { get_param: portal_repo }
913 # Create configuration files
915 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
916 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
917 echo "__nexus_username__" > /opt/config/nexus_username.txt
918 echo "__nexus_password__" > /opt/config/nexus_password.txt
919 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
920 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
921 echo "__docker_version__" > /opt/config/docker_version.txt
922 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
923 echo "__cli_docker__" > /opt/config/cli_docker_version.txt
924 echo "__cloud_env__" > /opt/config/cloud_env.txt
925 echo "__portal_repo__" > /opt/config/remote_repo.txt
927 # Download and run install script
928 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
930 chmod +x portal_install.sh
934 # DCAE Controller instantiation
936 type: OS::Neutron::Port
938 network: { get_resource: oam_onap }
939 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.4.1}]
941 type: OS::Nova::Server
943 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
944 flavor: 8 GB General Purpose v1
947 template: base-dcae-controller
949 base: { get_param: vm_base_name }
950 key_name: { get_resource: vm_key }
952 - network: { get_param: public_net_id }
953 - port: { get_resource: dcae_c_private_port }
954 user_data_format: RAW
958 __nexus_repo__: { get_param: nexus_repo }
959 __nexus_docker_repo__: { get_param: nexus_docker_repo }
960 __nexus_username__: { get_param: nexus_username }
961 __nexus_password__: { get_param: nexus_password }
962 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
963 __gitlab_branch__: { get_param: gitlab_branch }
964 __dcae_zone__: { get_param: dcae_zone }
965 __dcae_state__: { get_param: dcae_state }
966 __artifacts_version__: { get_param: artifacts_version }
967 __tenant_id__: { get_param: openstack_tenant_id }
968 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
969 __openstack_user__: { get_param: openstack_username }
970 __openstack_password__: { get_param: openstack_api_key }
971 __openstack_auth_method__: { get_param: openstack_auth_method }
972 __key_name__: { get_param: key_name }
973 __rand_str__: { get_resource: random-str }
974 __pub_key__: { get_param: pub_key }
975 __nexus_repo_root__: { get_param: nexus_repo_root }
976 __openstack_region__: { get_param: openstack_region }
977 __docker_version__: { get_param: dcae_docker }
978 __gerrit_branch__: { get_param: dcae_branch }
979 __cloud_env__: { get_param: cloud_env }
980 __dcae_code_version__: { get_param: dcae_code_version }
981 __public_net_id__: { get_param: public_net_id }
982 __dcae_base_environment__: { get_param: dcae_base_environment }
983 __dcae_ip_addr__: { get_param: dcae_ip_addr }
984 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
985 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
986 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
987 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
988 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
989 __dcae_repo__: { get_param: dcae_repo }
990 __mr_repo__: { get_param: mr_repo }
994 # Create configuration files
996 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
997 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
998 echo "__nexus_username__" > /opt/config/nexus_username.txt
999 echo "__nexus_password__" > /opt/config/nexus_password.txt
1000 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1001 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1002 echo "__docker_version__" > /opt/config/docker_version.txt
1003 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1004 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1005 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1006 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1007 echo "__dcae_state__" > /opt/config/dcae_state.txt
1008 echo "__tenant_id__" > /opt/config/tenant_id.txt
1009 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1010 echo "__openstack_user__" > /opt/config/openstack_user.txt
1011 echo "__openstack_password__" > /opt/config/openstack_password.txt
1012 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1013 echo "__key_name__" > /opt/config/key_name.txt
1014 echo "__rand_str__" > /opt/config/rand_str.txt
1015 echo "__pub_key__" > /opt/config/pub_key.txt
1016 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1017 echo "__openstack_region__" > /opt/config/openstack_region.txt
1018 echo "https://mycloud.rackspace.com/cloud" > /opt/config/horizon_url.txt
1019 echo "https://identity.api.rackspacecloud.com" > /opt/config/keystone_url.txt
1020 echo "__cloud_env__" > /opt/config/cloud_env.txt
1021 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1022 echo "__public_net_id__" > /opt/config/public_net_id.txt
1023 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1024 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1025 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1026 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1027 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1028 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1029 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1030 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1031 echo "__mr_repo__" > /opt/config/mr_repo.txt
1033 # Download and run install script
1034 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1036 chmod +x dcae_install.sh
1040 # Policy engine instantiation
1041 policy_private_port:
1042 type: OS::Neutron::Port
1044 network: { get_resource: oam_onap }
1045 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.6.1}]
1048 type: OS::Cinder::Volume
1053 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
1056 type: OS::Nova::Server
1058 flavor: 15 GB Compute v1
1061 template: base-policy
1063 base: { get_param: vm_base_name }
1064 key_name: { get_resource: vm_key }
1065 block_device_mapping:
1066 - volume_id: { get_resource: policy_volume }
1069 - network: { get_param: public_net_id }
1070 - port: { get_resource: policy_private_port }
1071 user_data_format: RAW
1075 __nexus_repo__: { get_param: nexus_repo }
1076 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1077 __nexus_username__: { get_param: nexus_username }
1078 __nexus_password__: { get_param: nexus_password }
1079 __artifacts_version__: { get_param: artifacts_version }
1080 __docker_version__: { get_param: policy_docker }
1081 __gerrit_branch__: { get_param: policy_branch }
1082 __cloud_env__: { get_param: cloud_env }
1083 __policy_repo__: { get_param: policy_repo }
1087 # Create configuration files
1088 mkdir -p /opt/config
1089 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1090 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1091 echo "__nexus_username__" > /opt/config/nexus_username.txt
1092 echo "__nexus_password__" > /opt/config/nexus_password.txt
1093 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1094 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1095 echo "__docker_version__" > /opt/config/docker_version.txt
1096 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1097 echo "__cloud_env__" > /opt/config/cloud_env.txt
1098 echo "__policy_repo__" > /opt/config/remote_repo.txt
1100 # Download and run install script
1101 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1103 chmod +x policy_install.sh
1107 # APP-C instantiation
1109 type: OS::Neutron::Port
1111 network: { get_resource: oam_onap }
1112 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.2.1}]
1115 type: OS::Nova::Server
1117 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
1118 flavor: 4 GB General Purpose v1
1123 base: { get_param: vm_base_name }
1124 key_name: { get_resource: vm_key }
1126 - network: { get_param: public_net_id }
1127 - port: { get_resource: appc_private_port }
1128 user_data_format: RAW
1132 __nexus_repo__: { get_param: nexus_repo }
1133 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1134 __nexus_username__: { get_param: nexus_username }
1135 __nexus_password__: { get_param: nexus_password }
1136 __dmaap_topic__: { get_param: dmaap_topic }
1137 __artifacts_version__: { get_param: artifacts_version }
1138 __docker_version__: { get_param: appc_docker }
1139 __gerrit_branch__: { get_param: appc_branch }
1140 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1141 __cloud_env__: { get_param: cloud_env }
1142 __appc_repo__: { get_param: appc_repo }
1146 # Create configuration files
1147 mkdir -p /opt/config
1148 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1149 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1150 echo "__nexus_username__" > /opt/config/nexus_username.txt
1151 echo "__nexus_password__" > /opt/config/nexus_password.txt
1152 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1153 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1154 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1155 echo "__docker_version__" > /opt/config/docker_version.txt
1156 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1157 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1158 echo "__cloud_env__" > /opt/config/cloud_env.txt
1159 echo "__appc_repo__" > /opt/config/remote_repo.txt
1161 # Download and run install script
1162 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1164 chmod +x appc_install.sh
1168 # CLAMP instantiation
1170 type: OS::Neutron::Port
1172 network: { get_resource: oam_onap }
1173 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.12.1}]
1176 type: OS::Nova::Server
1178 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
1179 flavor: 4 GB General Purpose v1
1182 template: base-clamp
1184 base: { get_param: vm_base_name }
1185 key_name: { get_resource: vm_key }
1187 - network: { get_param: public_net_id }
1188 - port: { get_resource: clamp_private_port }
1189 user_data_format: RAW
1193 __nexus_repo__: { get_param: nexus_repo }
1194 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1195 __nexus_username__: { get_param: nexus_username }
1196 __nexus_password__: { get_param: nexus_password }
1197 __openstack_username__: { get_param: openstack_username }
1198 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1199 __openstack_api_key__: { get_param: openstack_api_key }
1200 __dmaap_topic__: { get_param: dmaap_topic }
1201 __artifacts_version__: { get_param: artifacts_version }
1202 __docker_version__: { get_param: clamp_docker }
1203 __gerrit_branch__: { get_param: clamp_branch }
1204 __cloud_env__: { get_param: cloud_env }
1205 __clamp_repo__: { get_param: clamp_repo }
1209 # Create configuration files
1210 mkdir -p /opt/config
1211 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1212 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1213 echo "__nexus_username__" > /opt/config/nexus_username.txt
1214 echo "__nexus_password__" > /opt/config/nexus_password.txt
1215 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1216 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1217 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1218 echo "__openstack_username__" > /opt/config/openstack_username.txt
1219 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1220 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1221 echo "__docker_version__" > /opt/config/docker_version.txt
1222 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1223 echo "__cloud_env__" > /opt/config/cloud_env.txt
1224 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1226 # Download and run install script
1227 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1229 chmod +x clamp_install.sh