1 ##########################################################################
3 #==================LICENSE_START==========================================
6 # Copyright © 2017 AT&T Intellectual Property. All rights reserved.
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 #==================LICENSE_END============================================
21 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 ##########################################################################
25 heat_template_version: 2013-05-23
27 description: Heat template to 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: Docker version of ONAP docker images
98 description: Gerrit branch where to download the code from
102 description: Cloud Provider Name
105 # Parameters for DCAE instantiation
106 dcae_base_environment:
108 description: DCAE Base Environment configuration (for this template, only RACKSPACE is supported)
112 description: DCAE Zone to use in VM names created by DCAE controller
116 description: DCAE State to use in VM names created by DCAE controller
120 description: Root URL of nexus repository
124 description: Snapshot of Maven repository
128 description: Rackspace region where the DCAE controller will spin the VMs
132 description: Branch of the Gitlab repository
136 description: DCAE Code Version Number
140 description: DCAE IP Address
144 description: DCAE Collector IP Address
148 description: DCAE Database IP Address
152 description: Hadoop VM1 IP Address
156 description: Hadoop VM2 IP Address
160 description: Hadoop VM3 IP Address
166 description: AAI repository
170 description: APPC repository
174 description: DCAE repository
178 description: Message Router repository
182 description: MSO repository
186 description: Policy repository
190 description: Portal repository
194 description: Robot repository
198 description: SDC repository
202 description: SDNC repository
206 description: VID repository
211 type: OS::Heat::RandomString
215 # Public key used to access ONAP components
217 type: OS::Nova::KeyPair
223 base: { get_param: key_name }
224 rand: { get_resource: random-str }
225 public_key: { get_param: pub_key }
226 save_private_key: false
229 # ONAP management private network
231 type: OS::Neutron::Net
235 template: oam_onap_rand
237 rand: { get_resource: random-str }
240 type: OS::Neutron::Subnet
244 template: oam_onap_rand
246 rand: { get_resource: random-str }
247 network_id: { get_resource: oam_onap }
251 # DNS Server instantiation
253 type: OS::Neutron::Port
255 network: { get_resource: oam_onap }
256 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.0.1}]
259 type: OS::Nova::Server
261 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
262 flavor: 4 GB General Purpose v1
265 template: base-dns-server
267 base: { get_param: vm_base_name }
268 key_name: { get_resource: vm_key }
270 - network: { get_param: public_net_id }
271 - port: { get_resource: dns_private_port }
272 user_data_format: RAW
276 __nexus_repo__: { get_param: nexus_repo }
277 __artifacts_version__: { get_param: artifacts_version }
278 __cloud_env__: { get_param: cloud_env }
282 # Create configuration files
284 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
285 echo "__cloud_env__" > /opt/config/cloud_env.txt
286 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
288 # Download and run install script
289 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
291 chmod +x dns_install.sh
295 # A&AI instantiation (2 VMs)
297 type: OS::Neutron::Port
299 network: { get_resource: oam_onap }
300 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.1.1}]
303 type: OS::Cinder::Volume
308 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
311 type: OS::Nova::Server
314 flavor: 15 GB Compute v1
317 template: base-aai-inst1
319 base: { get_param: vm_base_name }
320 key_name: { get_resource: vm_key }
321 block_device_mapping:
322 - volume_id: { get_resource: aai1_volume }
325 - network: { get_param: public_net_id }
326 - port: { get_resource: aai1_private_port }
327 user_data_format: RAW
331 __nexus_repo__: { get_param: nexus_repo }
332 __nexus_docker_repo__: { get_param: nexus_docker_repo }
333 __nexus_username__: { get_param: nexus_username }
334 __nexus_password__: { get_param: nexus_password }
335 __dmaap_topic__: { get_param: dmaap_topic }
336 __artifacts_version__: { get_param: artifacts_version }
337 __docker_version__: { get_param: docker_version }
338 __gerrit_branch__: { get_param: gerrit_branch }
339 __cloud_env__: { get_param: cloud_env }
340 __aai_repo__: { get_param: aai_repo }
344 # Create configuration files
346 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
347 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
348 echo "__nexus_username__" > /opt/config/nexus_username.txt
349 echo "__nexus_password__" > /opt/config/nexus_password.txt
350 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
351 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
352 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
353 echo "__docker_version__" > /opt/config/docker_version.txt
354 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
355 echo "aai_instance_1" > /opt/config/aai_instance.txt
356 echo "__cloud_env__" > /opt/config/cloud_env.txt
357 echo "__aai_repo__" > /opt/config/remote_repo.txt
359 # Download and run install script
360 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
362 chmod +x aai_install.sh
367 type: OS::Neutron::Port
369 network: { get_resource: oam_onap }
370 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.1.2}]
373 type: OS::Cinder::Volume
378 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
381 type: OS::Nova::Server
383 flavor: 15 GB Compute v1
386 template: base-aai-inst2
388 base: { get_param: vm_base_name }
389 key_name: { get_resource: vm_key }
390 block_device_mapping:
391 - volume_id: { get_resource: aai2_volume }
394 - network: { get_param: public_net_id }
395 - port: { get_resource: aai2_private_port }
396 user_data_format: RAW
400 __nexus_repo__: { get_param: nexus_repo }
401 __nexus_docker_repo__: { get_param: nexus_docker_repo }
402 __nexus_username__: { get_param: nexus_username }
403 __nexus_password__: { get_param: nexus_password }
404 __dmaap_topic__: { get_param: dmaap_topic }
405 __artifacts_version__: { get_param: artifacts_version }
406 __docker_version__: { get_param: docker_version }
407 __gerrit_branch__: { get_param: gerrit_branch }
408 __cloud_env__: { get_param: cloud_env }
409 __aai_repo__: { get_param: aai_repo }
413 # Create configuration files
415 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
416 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
417 echo "__nexus_username__" > /opt/config/nexus_username.txt
418 echo "__nexus_password__" > /opt/config/nexus_password.txt
419 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
420 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
421 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
422 echo "__docker_version__" > /opt/config/docker_version.txt
423 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
424 echo "aai_instance_2" > /opt/config/aai_instance.txt
425 echo "__cloud_env__" > /opt/config/cloud_env.txt
426 echo "__aai_repo__" > /opt/config/remote_repo.txt
428 # Download and run install script
429 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
431 chmod +x aai_install.sh
437 type: OS::Neutron::Port
439 network: { get_resource: oam_onap }
440 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.5.1}]
443 type: OS::Nova::Server
445 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
446 flavor: 4 GB General Purpose v1
451 base: { get_param: vm_base_name }
452 key_name: { get_resource: vm_key }
454 - network: { get_param: public_net_id }
455 - port: { get_resource: mso_private_port }
456 user_data_format: RAW
460 __nexus_repo__: { get_param: nexus_repo }
461 __nexus_docker_repo__: { get_param: nexus_docker_repo }
462 __nexus_username__: { get_param: nexus_username }
463 __nexus_password__: { get_param: nexus_password }
464 __openstack_username__: { get_param: openstack_username }
465 __openstack_tenant_id__: { get_param: openstack_tenant_id }
466 __openstack_api_key__: { get_param: openstack_api_key }
467 __dmaap_topic__: { get_param: dmaap_topic }
468 __artifacts_version__: { get_param: artifacts_version }
469 __docker_version__: { get_param: docker_version }
470 __gerrit_branch__: { get_param: gerrit_branch }
471 __cloud_env__: { get_param: cloud_env }
472 __mso_repo__: { get_param: mso_repo }
476 # Create configuration files
478 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
479 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
480 echo "__nexus_username__" > /opt/config/nexus_username.txt
481 echo "__nexus_password__" > /opt/config/nexus_password.txt
482 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
483 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
484 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
485 echo "__openstack_username__" > /opt/config/openstack_username.txt
486 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
487 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
488 echo "__docker_version__" > /opt/config/docker_version.txt
489 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
490 echo "__cloud_env__" > /opt/config/cloud_env.txt
491 echo "__mso_repo__" > /opt/config/remote_repo.txt
493 # Download and run install script
494 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
496 chmod +x mso_install.sh
500 # Message Router instantiation
501 mrouter_private_port:
502 type: OS::Neutron::Port
504 network: { get_resource: oam_onap }
505 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.11.1}]
508 type: OS::Nova::Server
510 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
514 template: base-message-router
516 base: { get_param: vm_base_name }
517 key_name: { get_resource: vm_key }
519 - network: { get_param: public_net_id }
520 - port: { get_resource: mrouter_private_port }
521 user_data_format: RAW
525 __nexus_repo__: { get_param: nexus_repo }
526 __nexus_docker_repo__: { get_param: nexus_docker_repo }
527 __nexus_username__: { get_param: nexus_username }
528 __nexus_password__: { get_param: nexus_password }
529 __artifacts_version__: { get_param: artifacts_version }
530 __gerrit_branch__: { get_param: gerrit_branch }
531 __cloud_env__: { get_param: cloud_env }
532 __mr_repo__: { get_param: mr_repo }
536 # Create configuration files
538 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
539 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
540 echo "__nexus_username__" > /opt/config/nexus_username.txt
541 echo "__nexus_password__" > /opt/config/nexus_password.txt
542 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
543 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
544 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
545 echo "__cloud_env__" > /opt/config/cloud_env.txt
546 echo "__mr_repo__" > /opt/config/remote_repo.txt
548 # Download and run install script
549 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
551 chmod +x mr_install.sh
555 # RobotE2E instantiation
557 type: OS::Neutron::Port
559 network: { get_resource: oam_onap }
560 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.10.1}]
563 type: OS::Nova::Server
565 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
566 flavor: 2 GB General Purpose v1
571 base: { get_param: vm_base_name }
572 key_name: { get_resource: vm_key }
574 - network: { get_param: public_net_id }
575 - port: { get_resource: robot_private_port }
576 user_data_format: RAW
580 __nexus_repo__: { get_param: nexus_repo }
581 __nexus_docker_repo__: { get_param: nexus_docker_repo }
582 __nexus_username__: { get_param: nexus_username }
583 __nexus_password__: { get_param: nexus_password }
584 __network_name__: { get_attr: [oam_onap, name] }
585 __openstack_username__: { get_param: openstack_username }
586 __openstack_api_key__: { get_param : openstack_api_key }
587 __openstack_password__: { get_param: openstack_password }
588 __artifacts_version__: { get_param: artifacts_version }
589 __openstack_region__: { get_param: openstack_region }
590 __docker_version__: { get_param: docker_version }
591 __gerrit_branch__: { get_param: gerrit_branch }
592 __cloud_env__: { get_param: cloud_env }
593 __robot_repo__: { get_param: robot_repo }
597 # Create configuration files
599 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
600 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
601 echo "__nexus_username__" > /opt/config/nexus_username.txt
602 echo "__nexus_password__" > /opt/config/nexus_password.txt
603 echo "__network_name__" > /opt/config/network.txt
604 echo "__openstack_username__" > /opt/config/openstack_username.txt
605 echo "__openstack_password__" > /opt/config/openstack_password.txt
606 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
607 echo "__openstack_region__" > /opt/config/region.txt
608 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
609 echo "__docker_version__" > /opt/config/docker_version.txt
610 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
611 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
612 echo "https://identity.api.rackspacecloud.com/v2.0" > /opt/config/keystone.txt
613 echo "10.0.1.1" > /opt/config/aai1_ip_addr.txt
614 echo "10.0.1.2" > /opt/config/aai2_ip_addr.txt
615 echo "10.0.2.1" > /opt/config/appc_ip_addr.txt
616 echo "10.0.4.1" > /opt/config/dcae_ip_addr.txt
617 echo "10.0.5.1" > /opt/config/mso_ip_addr.txt
618 echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
619 echo "10.0.6.1" > /opt/config/policy_ip_addr.txt
620 echo "10.0.9.1" > /opt/config/portal_ip_addr.txt
621 echo "10.0.3.1" > /opt/config/sdc_ip_addr.txt
622 echo "10.0.7.1" > /opt/config/sdnc_ip_addr.txt
623 echo "10.0.8.1" > /opt/config/vid_ip_addr.txt
624 echo "Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)" > /opt/config/vm_image_name.txt
625 echo "4 GB General Purpose v1" > /opt/config/vm_flavor.txt
626 echo "__cloud_env__" > /opt/config/cloud_env.txt
627 echo "__robot_repo__" > /opt/config/remote_repo.txt
629 # Download and run install script
630 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
632 chmod +x robot_install.sh
638 type: OS::Neutron::Port
640 network: { get_resource: oam_onap }
641 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.8.1}]
644 type: OS::Nova::Server
646 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
647 flavor: 2 GB General Purpose v1
652 base: { get_param: vm_base_name }
653 key_name: { get_resource: vm_key }
655 - network: { get_param: public_net_id }
656 - port: { get_resource: vid_private_port }
657 user_data_format: RAW
661 __nexus_repo__: { get_param: nexus_repo }
662 __nexus_docker_repo__: { get_param: nexus_docker_repo }
663 __nexus_username__: { get_param: nexus_username }
664 __nexus_password__: { get_param: nexus_password }
665 __artifacts_version__: { get_param: artifacts_version }
666 __docker_version__: { get_param: docker_version }
667 __gerrit_branch__: { get_param: gerrit_branch }
668 __cloud_env__: { get_param: cloud_env }
669 __vid_repo__: { get_param: vid_repo }
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 "10.0.0.1" > /opt/config/dns_ip_addr.txt
681 echo "__docker_version__" > /opt/config/docker_version.txt
682 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
683 echo "__cloud_env__" > /opt/config/cloud_env.txt
684 echo "__vid_repo__" > /opt/config/remote_repo.txt
686 # Download and run install script
687 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
689 chmod +x vid_install.sh
693 # SDN-C instantiation
695 type: OS::Neutron::Port
697 network: { get_resource: oam_onap }
698 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.7.1}]
701 type: OS::Nova::Server
703 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
704 flavor: 4 GB General Purpose v1
709 base: { get_param: vm_base_name }
710 key_name: { get_resource: vm_key }
712 - network: { get_param: public_net_id }
713 - port: { get_resource: sdnc_private_port }
714 user_data_format: RAW
718 __nexus_repo__: { get_param: nexus_repo }
719 __nexus_docker_repo__: { get_param: nexus_docker_repo }
720 __nexus_username__: { get_param: nexus_username }
721 __nexus_password__: { get_param: nexus_password }
722 __artifacts_version__: { get_param: artifacts_version }
723 __docker_version__: { get_param: docker_version }
724 __gerrit_branch__: { get_param: gerrit_branch }
725 __cloud_env__: { get_param: cloud_env }
726 __sdnc_repo__: { get_param: sdnc_repo }
730 # Create configuration files
732 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
733 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
734 echo "__nexus_username__" > /opt/config/nexus_username.txt
735 echo "__nexus_password__" > /opt/config/nexus_password.txt
736 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
737 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
738 echo "__docker_version__" > /opt/config/docker_version.txt
739 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
740 echo "__cloud_env__" > /opt/config/cloud_env.txt
741 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
743 # Download and run install script
744 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
746 chmod +x sdnc_install.sh
752 type: OS::Neutron::Port
754 network: { get_resource: oam_onap }
755 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.3.1}]
758 type: OS::Cinder::Volume
763 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
766 type: OS::Cinder::Volume
772 sdc_volume_attachment:
773 type: OS::Cinder::VolumeAttachment
775 volume_id: { get_resource: sdc_volume_data }
776 instance_uuid: { get_resource: sdc_vm }
777 mountpoint: /dev/xvdb
780 type: OS::Nova::Server
782 flavor: 15 GB Compute v1
787 base: { get_param: vm_base_name }
788 key_name: { get_resource: vm_key }
789 block_device_mapping:
790 - volume_id: { get_resource: sdc_volume_local }
793 - network: { get_param: public_net_id }
794 - port: { get_resource: sdc_private_port }
795 user_data_format: RAW
799 __nexus_repo__: { get_param: nexus_repo }
800 __nexus_docker_repo__: { get_param: nexus_docker_repo }
801 __nexus_username__: { get_param: nexus_username }
802 __nexus_password__: { get_param: nexus_password }
803 __env_name__: { get_param: dmaap_topic }
804 __artifacts_version__: { get_param: artifacts_version }
805 __docker_version__: { get_param: docker_version }
806 __gerrit_branch__: { get_param: gerrit_branch }
807 __cloud_env__: { get_param: cloud_env }
808 __sdc_repo__: { get_param: sdc_repo }
812 # Create configuration files
814 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
815 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
816 echo "__nexus_username__" > /opt/config/nexus_username.txt
817 echo "__nexus_password__" > /opt/config/nexus_password.txt
818 echo "__env_name__" > /opt/config/env_name.txt
819 echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
820 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
821 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
822 echo "__docker_version__" > /opt/config/docker_version.txt
823 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
824 echo "__cloud_env__" > /opt/config/cloud_env.txt
825 echo "__sdc_repo__" > /opt/config/remote_repo.txt
827 # Download and run install script
828 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
830 chmod +x asdc_install.sh
834 # PORTAL instantiation
836 type: OS::Neutron::Port
838 network: { get_resource: oam_onap }
839 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.9.1}]
842 type: OS::Cinder::Volume
847 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
850 type: OS::Nova::Server
852 flavor: 15 GB Memory v1
855 template: base-portal
857 base: { get_param: vm_base_name }
858 key_name: { get_resource: vm_key }
859 block_device_mapping:
860 - volume_id: { get_resource: portal_volume }
863 - network: { get_param: public_net_id }
864 - port: { get_resource: portal_private_port }
865 user_data_format: RAW
869 __nexus_repo__: { get_param: nexus_repo }
870 __nexus_docker_repo__: { get_param: nexus_docker_repo }
871 __nexus_username__: { get_param: nexus_username }
872 __nexus_password__: { get_param: nexus_password }
873 __artifacts_version__: { get_param: artifacts_version }
874 __docker_version__: { get_param: docker_version }
875 __gerrit_branch__: { get_param: gerrit_branch }
876 __cloud_env__: { get_param: cloud_env }
877 __portal_repo__: { get_param: portal_repo }
881 # Create configuration files
883 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
884 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
885 echo "__nexus_username__" > /opt/config/nexus_username.txt
886 echo "__nexus_password__" > /opt/config/nexus_password.txt
887 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
888 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
889 echo "__docker_version__" > /opt/config/docker_version.txt
890 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
891 echo "__cloud_env__" > /opt/config/cloud_env.txt
892 echo "__portal_repo__" > /opt/config/remote_repo.txt
894 # Download and run install script
895 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
897 chmod +x portal_install.sh
901 # DCAE Controller instantiation
903 type: OS::Neutron::Port
905 network: { get_resource: oam_onap }
906 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.4.1}]
908 type: OS::Nova::Server
910 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
911 flavor: 8 GB General Purpose v1
914 template: base-dcae-controller
916 base: { get_param: vm_base_name }
917 key_name: { get_resource: vm_key }
919 - network: { get_param: public_net_id }
920 - port: { get_resource: dcae_c_private_port }
921 user_data_format: RAW
925 __nexus_repo__: { get_param: nexus_repo }
926 __nexus_docker_repo__: { get_param: nexus_docker_repo }
927 __nexus_username__: { get_param: nexus_username }
928 __nexus_password__: { get_param: nexus_password }
929 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
930 __gitlab_branch__: { get_param: gitlab_branch }
931 __dcae_zone__: { get_param: dcae_zone }
932 __dcae_state__: { get_param: dcae_state }
933 __artifacts_version__: { get_param: artifacts_version }
934 __tenant_id__: { get_param: openstack_tenant_id }
935 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
936 __openstack_user__: { get_param: openstack_username }
937 __openstack_password__: { get_param: openstack_api_key }
938 __openstack_auth_method__: { get_param: openstack_auth_method }
939 __key_name__: { get_param: key_name }
940 __rand_str__: { get_resource: random-str }
941 __pub_key__: { get_param: pub_key }
942 __nexus_repo_root__: { get_param: nexus_repo_root }
943 __openstack_region__: { get_param: openstack_region }
944 __docker_version__: { get_param: docker_version }
945 __gerrit_branch__: { get_param: gerrit_branch }
946 __cloud_env__: { get_param: cloud_env }
947 __dcae_code_version__: { get_param: dcae_code_version }
948 __public_net_id__: { get_param: public_net_id }
949 __dcae_base_environment__: { get_param: dcae_base_environment }
950 __dcae_ip_addr__: { get_param: dcae_ip_addr }
951 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
952 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
953 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
954 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
955 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
956 __dcae_repo__: { get_param: dcae_repo }
957 __mr_repo__: { get_param: mr_repo }
961 # Create configuration files
963 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
964 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
965 echo "__nexus_username__" > /opt/config/nexus_username.txt
966 echo "__nexus_password__" > /opt/config/nexus_password.txt
967 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
968 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
969 echo "__docker_version__" > /opt/config/docker_version.txt
970 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
971 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
972 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
973 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
974 echo "__dcae_state__" > /opt/config/dcae_state.txt
975 echo "__tenant_id__" > /opt/config/tenant_id.txt
976 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
977 echo "__openstack_user__" > /opt/config/openstack_user.txt
978 echo "__openstack_password__" > /opt/config/openstack_password.txt
979 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
980 echo "__key_name__" > /opt/config/key_name.txt
981 echo "__rand_str__" > /opt/config/rand_str.txt
982 echo "__pub_key__" > /opt/config/pub_key.txt
983 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
984 echo "__openstack_region__" > /opt/config/openstack_region.txt
985 echo "https://mycloud.rackspace.com/cloud" > /opt/config/horizon_url.txt
986 echo "https://identity.api.rackspacecloud.com/v2.0" > /opt/config/keystone_url.txt
987 echo "__cloud_env__" > /opt/config/cloud_env.txt
988 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
989 echo "__public_net_id__" > /opt/config/public_net_id.txt
990 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
991 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
992 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
993 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
994 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
995 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
996 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
997 echo "__dcae_repo__" > /opt/config/remote_repo.txt
998 echo "__mr_repo__" > /opt/config/mr_repo.txt
1000 # Download and run install script
1001 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1003 chmod +x dcae_install.sh
1007 # Policy engine instantiation
1008 policy_private_port:
1009 type: OS::Neutron::Port
1011 network: { get_resource: oam_onap }
1012 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.6.1}]
1015 type: OS::Cinder::Volume
1020 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
1023 type: OS::Nova::Server
1025 flavor: 15 GB Compute v1
1028 template: base-policy
1030 base: { get_param: vm_base_name }
1031 key_name: { get_resource: vm_key }
1032 block_device_mapping:
1033 - volume_id: { get_resource: policy_volume }
1036 - network: { get_param: public_net_id }
1037 - port: { get_resource: policy_private_port }
1038 user_data_format: RAW
1042 __nexus_repo__: { get_param: nexus_repo }
1043 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1044 __nexus_username__: { get_param: nexus_username }
1045 __nexus_password__: { get_param: nexus_password }
1046 __artifacts_version__: { get_param: artifacts_version }
1047 __docker_version__: { get_param: docker_version }
1048 __gerrit_branch__: { get_param: gerrit_branch }
1049 __cloud_env__: { get_param: cloud_env }
1050 __policy_repo__: { get_param: policy_repo }
1054 # Create configuration files
1055 mkdir -p /opt/config
1056 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1057 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1058 echo "__nexus_username__" > /opt/config/nexus_username.txt
1059 echo "__nexus_password__" > /opt/config/nexus_password.txt
1060 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1061 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1062 echo "__docker_version__" > /opt/config/docker_version.txt
1063 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1064 echo "__cloud_env__" > /opt/config/cloud_env.txt
1065 echo "__policy_repo__" > /opt/config/remote_repo.txt
1067 # Download and run install script
1068 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1070 chmod +x policy_install.sh
1074 # APP-C instantiation
1076 type: OS::Neutron::Port
1078 network: { get_resource: oam_onap }
1079 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.2.1}]
1082 type: OS::Nova::Server
1084 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
1085 flavor: 4 GB General Purpose v1
1090 base: { get_param: vm_base_name }
1091 key_name: { get_resource: vm_key }
1093 - network: { get_param: public_net_id }
1094 - port: { get_resource: appc_private_port }
1095 user_data_format: RAW
1099 __nexus_repo__: { get_param: nexus_repo }
1100 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1101 __nexus_username__: { get_param: nexus_username }
1102 __nexus_password__: { get_param: nexus_password }
1103 __dmaap_topic__: { get_param: dmaap_topic }
1104 __artifacts_version__: { get_param: artifacts_version }
1105 __docker_version__: { get_param: docker_version }
1106 __gerrit_branch__: { get_param: gerrit_branch }
1107 __cloud_env__: { get_param: cloud_env }
1108 __appc_repo__: { get_param: appc_repo }
1112 # Create configuration files
1113 mkdir -p /opt/config
1114 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1115 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1116 echo "__nexus_username__" > /opt/config/nexus_username.txt
1117 echo "__nexus_password__" > /opt/config/nexus_password.txt
1118 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1119 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1120 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1121 echo "__docker_version__" > /opt/config/docker_version.txt
1122 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1123 echo "__cloud_env__" > /opt/config/cloud_env.txt
1124 echo "__appc_repo__" > /opt/config/remote_repo.txt
1126 # Download and run install script
1127 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1129 chmod +x appc_install.sh