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
210 description: CLAMP repository
215 type: OS::Heat::RandomString
219 # Public key used to access ONAP components
221 type: OS::Nova::KeyPair
227 base: { get_param: key_name }
228 rand: { get_resource: random-str }
229 public_key: { get_param: pub_key }
230 save_private_key: false
233 # ONAP management private network
235 type: OS::Neutron::Net
239 template: oam_onap_rand
241 rand: { get_resource: random-str }
244 type: OS::Neutron::Subnet
248 template: oam_onap_rand
250 rand: { get_resource: random-str }
251 network_id: { get_resource: oam_onap }
255 # DNS Server instantiation
257 type: OS::Neutron::Port
259 network: { get_resource: oam_onap }
260 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.0.1}]
263 type: OS::Nova::Server
265 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
266 flavor: 4 GB General Purpose v1
269 template: base-dns-server
271 base: { get_param: vm_base_name }
272 key_name: { get_resource: vm_key }
274 - network: { get_param: public_net_id }
275 - port: { get_resource: dns_private_port }
276 user_data_format: RAW
280 __nexus_repo__: { get_param: nexus_repo }
281 __artifacts_version__: { get_param: artifacts_version }
282 __cloud_env__: { get_param: cloud_env }
286 # Create configuration files
288 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
289 echo "__cloud_env__" > /opt/config/cloud_env.txt
290 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
292 # Download and run install script
293 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
295 chmod +x dns_install.sh
299 # A&AI instantiation (2 VMs)
301 type: OS::Neutron::Port
303 network: { get_resource: oam_onap }
304 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.1.1}]
307 type: OS::Cinder::Volume
312 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
315 type: OS::Nova::Server
318 flavor: 15 GB Compute v1
321 template: base-aai-inst1
323 base: { get_param: vm_base_name }
324 key_name: { get_resource: vm_key }
325 block_device_mapping:
326 - volume_id: { get_resource: aai1_volume }
329 - network: { get_param: public_net_id }
330 - port: { get_resource: aai1_private_port }
331 user_data_format: RAW
335 __nexus_repo__: { get_param: nexus_repo }
336 __nexus_docker_repo__: { get_param: nexus_docker_repo }
337 __nexus_username__: { get_param: nexus_username }
338 __nexus_password__: { get_param: nexus_password }
339 __dmaap_topic__: { get_param: dmaap_topic }
340 __artifacts_version__: { get_param: artifacts_version }
341 __docker_version__: { get_param: docker_version }
342 __gerrit_branch__: { get_param: gerrit_branch }
343 __cloud_env__: { get_param: cloud_env }
344 __aai_repo__: { get_param: aai_repo }
348 # Create configuration files
350 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
351 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
352 echo "__nexus_username__" > /opt/config/nexus_username.txt
353 echo "__nexus_password__" > /opt/config/nexus_password.txt
354 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
355 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
356 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
357 echo "__docker_version__" > /opt/config/docker_version.txt
358 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
359 echo "aai_instance_1" > /opt/config/aai_instance.txt
360 echo "__cloud_env__" > /opt/config/cloud_env.txt
361 echo "__aai_repo__" > /opt/config/remote_repo.txt
363 # Download and run install script
364 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
366 chmod +x aai_install.sh
371 type: OS::Neutron::Port
373 network: { get_resource: oam_onap }
374 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.1.2}]
377 type: OS::Cinder::Volume
382 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
385 type: OS::Nova::Server
387 flavor: 15 GB Compute v1
390 template: base-aai-inst2
392 base: { get_param: vm_base_name }
393 key_name: { get_resource: vm_key }
394 block_device_mapping:
395 - volume_id: { get_resource: aai2_volume }
398 - network: { get_param: public_net_id }
399 - port: { get_resource: aai2_private_port }
400 user_data_format: RAW
404 __nexus_repo__: { get_param: nexus_repo }
405 __nexus_docker_repo__: { get_param: nexus_docker_repo }
406 __nexus_username__: { get_param: nexus_username }
407 __nexus_password__: { get_param: nexus_password }
408 __dmaap_topic__: { get_param: dmaap_topic }
409 __artifacts_version__: { get_param: artifacts_version }
410 __docker_version__: { get_param: docker_version }
411 __gerrit_branch__: { get_param: gerrit_branch }
412 __cloud_env__: { get_param: cloud_env }
413 __aai_repo__: { get_param: aai_repo }
417 # Create configuration files
419 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
420 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
421 echo "__nexus_username__" > /opt/config/nexus_username.txt
422 echo "__nexus_password__" > /opt/config/nexus_password.txt
423 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
424 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
425 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
426 echo "__docker_version__" > /opt/config/docker_version.txt
427 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
428 echo "aai_instance_2" > /opt/config/aai_instance.txt
429 echo "__cloud_env__" > /opt/config/cloud_env.txt
430 echo "__aai_repo__" > /opt/config/remote_repo.txt
432 # Download and run install script
433 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
435 chmod +x aai_install.sh
441 type: OS::Neutron::Port
443 network: { get_resource: oam_onap }
444 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.5.1}]
447 type: OS::Nova::Server
449 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
450 flavor: 4 GB General Purpose v1
455 base: { get_param: vm_base_name }
456 key_name: { get_resource: vm_key }
458 - network: { get_param: public_net_id }
459 - port: { get_resource: mso_private_port }
460 user_data_format: RAW
464 __nexus_repo__: { get_param: nexus_repo }
465 __nexus_docker_repo__: { get_param: nexus_docker_repo }
466 __nexus_username__: { get_param: nexus_username }
467 __nexus_password__: { get_param: nexus_password }
468 __openstack_username__: { get_param: openstack_username }
469 __openstack_tenant_id__: { get_param: openstack_tenant_id }
470 __openstack_api_key__: { get_param: openstack_api_key }
471 __dmaap_topic__: { get_param: dmaap_topic }
472 __artifacts_version__: { get_param: artifacts_version }
473 __docker_version__: { get_param: docker_version }
474 __gerrit_branch__: { get_param: gerrit_branch }
475 __cloud_env__: { get_param: cloud_env }
476 __mso_repo__: { get_param: mso_repo }
480 # Create configuration files
482 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
483 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
484 echo "__nexus_username__" > /opt/config/nexus_username.txt
485 echo "__nexus_password__" > /opt/config/nexus_password.txt
486 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
487 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
488 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
489 echo "__openstack_username__" > /opt/config/openstack_username.txt
490 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
491 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
492 echo "__docker_version__" > /opt/config/docker_version.txt
493 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
494 echo "__cloud_env__" > /opt/config/cloud_env.txt
495 echo "__mso_repo__" > /opt/config/remote_repo.txt
497 # Download and run install script
498 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
500 chmod +x mso_install.sh
504 # Message Router instantiation
505 mrouter_private_port:
506 type: OS::Neutron::Port
508 network: { get_resource: oam_onap }
509 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.11.1}]
512 type: OS::Nova::Server
514 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
518 template: base-message-router
520 base: { get_param: vm_base_name }
521 key_name: { get_resource: vm_key }
523 - network: { get_param: public_net_id }
524 - port: { get_resource: mrouter_private_port }
525 user_data_format: RAW
529 __nexus_repo__: { get_param: nexus_repo }
530 __nexus_docker_repo__: { get_param: nexus_docker_repo }
531 __nexus_username__: { get_param: nexus_username }
532 __nexus_password__: { get_param: nexus_password }
533 __artifacts_version__: { get_param: artifacts_version }
534 __gerrit_branch__: { get_param: gerrit_branch }
535 __cloud_env__: { get_param: cloud_env }
536 __mr_repo__: { get_param: mr_repo }
540 # Create configuration files
542 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
543 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
544 echo "__nexus_username__" > /opt/config/nexus_username.txt
545 echo "__nexus_password__" > /opt/config/nexus_password.txt
546 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
547 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
548 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
549 echo "__cloud_env__" > /opt/config/cloud_env.txt
550 echo "__mr_repo__" > /opt/config/remote_repo.txt
552 # Download and run install script
553 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
555 chmod +x mr_install.sh
559 # RobotE2E instantiation
561 type: OS::Neutron::Port
563 network: { get_resource: oam_onap }
564 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.10.1}]
567 type: OS::Nova::Server
569 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
570 flavor: 2 GB General Purpose v1
575 base: { get_param: vm_base_name }
576 key_name: { get_resource: vm_key }
578 - network: { get_param: public_net_id }
579 - port: { get_resource: robot_private_port }
580 user_data_format: RAW
584 __nexus_repo__: { get_param: nexus_repo }
585 __nexus_docker_repo__: { get_param: nexus_docker_repo }
586 __nexus_username__: { get_param: nexus_username }
587 __nexus_password__: { get_param: nexus_password }
588 __network_name__: { get_attr: [oam_onap, name] }
589 __openstack_username__: { get_param: openstack_username }
590 __openstack_api_key__: { get_param : openstack_api_key }
591 __openstack_password__: { get_param: openstack_password }
592 __artifacts_version__: { get_param: artifacts_version }
593 __openstack_region__: { get_param: openstack_region }
594 __docker_version__: { get_param: docker_version }
595 __gerrit_branch__: { get_param: gerrit_branch }
596 __cloud_env__: { get_param: cloud_env }
597 __robot_repo__: { get_param: robot_repo }
601 # Create configuration files
603 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
604 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
605 echo "__nexus_username__" > /opt/config/nexus_username.txt
606 echo "__nexus_password__" > /opt/config/nexus_password.txt
607 echo "__network_name__" > /opt/config/network.txt
608 echo "__openstack_username__" > /opt/config/openstack_username.txt
609 echo "__openstack_password__" > /opt/config/openstack_password.txt
610 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
611 echo "__openstack_region__" > /opt/config/region.txt
612 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
613 echo "__docker_version__" > /opt/config/docker_version.txt
614 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
615 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
616 echo "https://identity.api.rackspacecloud.com/v2.0" > /opt/config/keystone.txt
617 echo "10.0.1.1" > /opt/config/aai1_ip_addr.txt
618 echo "10.0.1.2" > /opt/config/aai2_ip_addr.txt
619 echo "10.0.2.1" > /opt/config/appc_ip_addr.txt
620 echo "10.0.4.1" > /opt/config/dcae_ip_addr.txt
621 echo "10.0.5.1" > /opt/config/mso_ip_addr.txt
622 echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
623 echo "10.0.6.1" > /opt/config/policy_ip_addr.txt
624 echo "10.0.9.1" > /opt/config/portal_ip_addr.txt
625 echo "10.0.3.1" > /opt/config/sdc_ip_addr.txt
626 echo "10.0.7.1" > /opt/config/sdnc_ip_addr.txt
627 echo "10.0.8.1" > /opt/config/vid_ip_addr.txt
628 echo "Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)" > /opt/config/vm_image_name.txt
629 echo "4 GB General Purpose v1" > /opt/config/vm_flavor.txt
630 echo "__cloud_env__" > /opt/config/cloud_env.txt
631 echo "__robot_repo__" > /opt/config/remote_repo.txt
633 # Download and run install script
634 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
636 chmod +x robot_install.sh
642 type: OS::Neutron::Port
644 network: { get_resource: oam_onap }
645 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.8.1}]
648 type: OS::Nova::Server
650 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
651 flavor: 2 GB General Purpose v1
656 base: { get_param: vm_base_name }
657 key_name: { get_resource: vm_key }
659 - network: { get_param: public_net_id }
660 - port: { get_resource: vid_private_port }
661 user_data_format: RAW
665 __nexus_repo__: { get_param: nexus_repo }
666 __nexus_docker_repo__: { get_param: nexus_docker_repo }
667 __nexus_username__: { get_param: nexus_username }
668 __nexus_password__: { get_param: nexus_password }
669 __artifacts_version__: { get_param: artifacts_version }
670 __docker_version__: { get_param: docker_version }
671 __gerrit_branch__: { get_param: gerrit_branch }
672 __cloud_env__: { get_param: cloud_env }
673 __vid_repo__: { get_param: vid_repo }
677 # Create configuration files
679 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
680 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
681 echo "__nexus_username__" > /opt/config/nexus_username.txt
682 echo "__nexus_password__" > /opt/config/nexus_password.txt
683 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
684 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
685 echo "__docker_version__" > /opt/config/docker_version.txt
686 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
687 echo "__cloud_env__" > /opt/config/cloud_env.txt
688 echo "__vid_repo__" > /opt/config/remote_repo.txt
690 # Download and run install script
691 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
693 chmod +x vid_install.sh
697 # SDN-C instantiation
699 type: OS::Neutron::Port
701 network: { get_resource: oam_onap }
702 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.7.1}]
705 type: OS::Nova::Server
707 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
708 flavor: 4 GB General Purpose v1
713 base: { get_param: vm_base_name }
714 key_name: { get_resource: vm_key }
716 - network: { get_param: public_net_id }
717 - port: { get_resource: sdnc_private_port }
718 user_data_format: RAW
722 __nexus_repo__: { get_param: nexus_repo }
723 __nexus_docker_repo__: { get_param: nexus_docker_repo }
724 __nexus_username__: { get_param: nexus_username }
725 __nexus_password__: { get_param: nexus_password }
726 __artifacts_version__: { get_param: artifacts_version }
727 __docker_version__: { get_param: docker_version }
728 __gerrit_branch__: { get_param: gerrit_branch }
729 __cloud_env__: { get_param: cloud_env }
730 __sdnc_repo__: { get_param: sdnc_repo }
734 # Create configuration files
736 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
737 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
738 echo "__nexus_username__" > /opt/config/nexus_username.txt
739 echo "__nexus_password__" > /opt/config/nexus_password.txt
740 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
741 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
742 echo "__docker_version__" > /opt/config/docker_version.txt
743 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
744 echo "__cloud_env__" > /opt/config/cloud_env.txt
745 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
747 # Download and run install script
748 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
750 chmod +x sdnc_install.sh
756 type: OS::Neutron::Port
758 network: { get_resource: oam_onap }
759 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.3.1}]
762 type: OS::Cinder::Volume
767 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
770 type: OS::Cinder::Volume
776 sdc_volume_attachment:
777 type: OS::Cinder::VolumeAttachment
779 volume_id: { get_resource: sdc_volume_data }
780 instance_uuid: { get_resource: sdc_vm }
781 mountpoint: /dev/xvdb
784 type: OS::Nova::Server
786 flavor: 15 GB Compute v1
791 base: { get_param: vm_base_name }
792 key_name: { get_resource: vm_key }
793 block_device_mapping:
794 - volume_id: { get_resource: sdc_volume_local }
797 - network: { get_param: public_net_id }
798 - port: { get_resource: sdc_private_port }
799 user_data_format: RAW
803 __nexus_repo__: { get_param: nexus_repo }
804 __nexus_docker_repo__: { get_param: nexus_docker_repo }
805 __nexus_username__: { get_param: nexus_username }
806 __nexus_password__: { get_param: nexus_password }
807 __env_name__: { get_param: dmaap_topic }
808 __artifacts_version__: { get_param: artifacts_version }
809 __docker_version__: { get_param: docker_version }
810 __gerrit_branch__: { get_param: gerrit_branch }
811 __cloud_env__: { get_param: cloud_env }
812 __sdc_repo__: { get_param: sdc_repo }
816 # Create configuration files
818 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
819 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
820 echo "__nexus_username__" > /opt/config/nexus_username.txt
821 echo "__nexus_password__" > /opt/config/nexus_password.txt
822 echo "__env_name__" > /opt/config/env_name.txt
823 echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
824 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
825 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
826 echo "__docker_version__" > /opt/config/docker_version.txt
827 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
828 echo "__cloud_env__" > /opt/config/cloud_env.txt
829 echo "__sdc_repo__" > /opt/config/remote_repo.txt
831 # Download and run install script
832 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
834 chmod +x sdc_install.sh
838 # PORTAL instantiation
840 type: OS::Neutron::Port
842 network: { get_resource: oam_onap }
843 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.9.1}]
846 type: OS::Cinder::Volume
851 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
854 type: OS::Nova::Server
856 flavor: 15 GB Memory v1
859 template: base-portal
861 base: { get_param: vm_base_name }
862 key_name: { get_resource: vm_key }
863 block_device_mapping:
864 - volume_id: { get_resource: portal_volume }
867 - network: { get_param: public_net_id }
868 - port: { get_resource: portal_private_port }
869 user_data_format: RAW
873 __nexus_repo__: { get_param: nexus_repo }
874 __nexus_docker_repo__: { get_param: nexus_docker_repo }
875 __nexus_username__: { get_param: nexus_username }
876 __nexus_password__: { get_param: nexus_password }
877 __artifacts_version__: { get_param: artifacts_version }
878 __docker_version__: { get_param: docker_version }
879 __gerrit_branch__: { get_param: gerrit_branch }
880 __cloud_env__: { get_param: cloud_env }
881 __portal_repo__: { get_param: portal_repo }
885 # Create configuration files
887 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
888 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
889 echo "__nexus_username__" > /opt/config/nexus_username.txt
890 echo "__nexus_password__" > /opt/config/nexus_password.txt
891 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
892 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
893 echo "__docker_version__" > /opt/config/docker_version.txt
894 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
895 echo "__cloud_env__" > /opt/config/cloud_env.txt
896 echo "__portal_repo__" > /opt/config/remote_repo.txt
898 # Download and run install script
899 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
901 chmod +x portal_install.sh
905 # DCAE Controller instantiation
907 type: OS::Neutron::Port
909 network: { get_resource: oam_onap }
910 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.4.1}]
912 type: OS::Nova::Server
914 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
915 flavor: 8 GB General Purpose v1
918 template: base-dcae-controller
920 base: { get_param: vm_base_name }
921 key_name: { get_resource: vm_key }
923 - network: { get_param: public_net_id }
924 - port: { get_resource: dcae_c_private_port }
925 user_data_format: RAW
929 __nexus_repo__: { get_param: nexus_repo }
930 __nexus_docker_repo__: { get_param: nexus_docker_repo }
931 __nexus_username__: { get_param: nexus_username }
932 __nexus_password__: { get_param: nexus_password }
933 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
934 __gitlab_branch__: { get_param: gitlab_branch }
935 __dcae_zone__: { get_param: dcae_zone }
936 __dcae_state__: { get_param: dcae_state }
937 __artifacts_version__: { get_param: artifacts_version }
938 __tenant_id__: { get_param: openstack_tenant_id }
939 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
940 __openstack_user__: { get_param: openstack_username }
941 __openstack_password__: { get_param: openstack_api_key }
942 __openstack_auth_method__: { get_param: openstack_auth_method }
943 __key_name__: { get_param: key_name }
944 __rand_str__: { get_resource: random-str }
945 __pub_key__: { get_param: pub_key }
946 __nexus_repo_root__: { get_param: nexus_repo_root }
947 __openstack_region__: { get_param: openstack_region }
948 __docker_version__: { get_param: docker_version }
949 __gerrit_branch__: { get_param: gerrit_branch }
950 __cloud_env__: { get_param: cloud_env }
951 __dcae_code_version__: { get_param: dcae_code_version }
952 __public_net_id__: { get_param: public_net_id }
953 __dcae_base_environment__: { get_param: dcae_base_environment }
954 __dcae_ip_addr__: { get_param: dcae_ip_addr }
955 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
956 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
957 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
958 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
959 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
960 __dcae_repo__: { get_param: dcae_repo }
961 __mr_repo__: { get_param: mr_repo }
965 # Create configuration files
967 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
968 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
969 echo "__nexus_username__" > /opt/config/nexus_username.txt
970 echo "__nexus_password__" > /opt/config/nexus_password.txt
971 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
972 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
973 echo "__docker_version__" > /opt/config/docker_version.txt
974 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
975 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
976 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
977 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
978 echo "__dcae_state__" > /opt/config/dcae_state.txt
979 echo "__tenant_id__" > /opt/config/tenant_id.txt
980 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
981 echo "__openstack_user__" > /opt/config/openstack_user.txt
982 echo "__openstack_password__" > /opt/config/openstack_password.txt
983 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
984 echo "__key_name__" > /opt/config/key_name.txt
985 echo "__rand_str__" > /opt/config/rand_str.txt
986 echo "__pub_key__" > /opt/config/pub_key.txt
987 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
988 echo "__openstack_region__" > /opt/config/openstack_region.txt
989 echo "https://mycloud.rackspace.com/cloud" > /opt/config/horizon_url.txt
990 echo "https://identity.api.rackspacecloud.com/v2.0" > /opt/config/keystone_url.txt
991 echo "__cloud_env__" > /opt/config/cloud_env.txt
992 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
993 echo "__public_net_id__" > /opt/config/public_net_id.txt
994 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
995 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
996 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
997 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
998 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
999 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1000 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1001 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1002 echo "__mr_repo__" > /opt/config/mr_repo.txt
1004 # Download and run install script
1005 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1007 chmod +x dcae_install.sh
1011 # Policy engine instantiation
1012 policy_private_port:
1013 type: OS::Neutron::Port
1015 network: { get_resource: oam_onap }
1016 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.6.1}]
1019 type: OS::Cinder::Volume
1024 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
1027 type: OS::Nova::Server
1029 flavor: 15 GB Compute v1
1032 template: base-policy
1034 base: { get_param: vm_base_name }
1035 key_name: { get_resource: vm_key }
1036 block_device_mapping:
1037 - volume_id: { get_resource: policy_volume }
1040 - network: { get_param: public_net_id }
1041 - port: { get_resource: policy_private_port }
1042 user_data_format: RAW
1046 __nexus_repo__: { get_param: nexus_repo }
1047 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1048 __nexus_username__: { get_param: nexus_username }
1049 __nexus_password__: { get_param: nexus_password }
1050 __artifacts_version__: { get_param: artifacts_version }
1051 __docker_version__: { get_param: docker_version }
1052 __gerrit_branch__: { get_param: gerrit_branch }
1053 __cloud_env__: { get_param: cloud_env }
1054 __policy_repo__: { get_param: policy_repo }
1058 # Create configuration files
1059 mkdir -p /opt/config
1060 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1061 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1062 echo "__nexus_username__" > /opt/config/nexus_username.txt
1063 echo "__nexus_password__" > /opt/config/nexus_password.txt
1064 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1065 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1066 echo "__docker_version__" > /opt/config/docker_version.txt
1067 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1068 echo "__cloud_env__" > /opt/config/cloud_env.txt
1069 echo "__policy_repo__" > /opt/config/remote_repo.txt
1071 # Download and run install script
1072 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1074 chmod +x policy_install.sh
1078 # APP-C instantiation
1080 type: OS::Neutron::Port
1082 network: { get_resource: oam_onap }
1083 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.2.1}]
1086 type: OS::Nova::Server
1088 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
1089 flavor: 4 GB General Purpose v1
1094 base: { get_param: vm_base_name }
1095 key_name: { get_resource: vm_key }
1097 - network: { get_param: public_net_id }
1098 - port: { get_resource: appc_private_port }
1099 user_data_format: RAW
1103 __nexus_repo__: { get_param: nexus_repo }
1104 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1105 __nexus_username__: { get_param: nexus_username }
1106 __nexus_password__: { get_param: nexus_password }
1107 __dmaap_topic__: { get_param: dmaap_topic }
1108 __artifacts_version__: { get_param: artifacts_version }
1109 __docker_version__: { get_param: docker_version }
1110 __gerrit_branch__: { get_param: gerrit_branch }
1111 __cloud_env__: { get_param: cloud_env }
1112 __appc_repo__: { get_param: appc_repo }
1116 # Create configuration files
1117 mkdir -p /opt/config
1118 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1119 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1120 echo "__nexus_username__" > /opt/config/nexus_username.txt
1121 echo "__nexus_password__" > /opt/config/nexus_password.txt
1122 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1123 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1124 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1125 echo "__docker_version__" > /opt/config/docker_version.txt
1126 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1127 echo "__cloud_env__" > /opt/config/cloud_env.txt
1128 echo "__appc_repo__" > /opt/config/remote_repo.txt
1130 # Download and run install script
1131 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1133 chmod +x appc_install.sh
1137 # CLAMP instantiation
1139 type: OS::Neutron::Port
1141 network: { get_resource: oam_onap }
1142 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.12.1}]
1145 type: OS::Nova::Server
1147 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
1148 flavor: 4 GB General Purpose v1
1151 template: base-clamp
1153 base: { get_param: vm_base_name }
1154 key_name: { get_resource: vm_key }
1156 - network: { get_param: public_net_id }
1157 - port: { get_resource: clamp_private_port }
1158 user_data_format: RAW
1162 __nexus_repo__: { get_param: nexus_repo }
1163 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1164 __nexus_username__: { get_param: nexus_username }
1165 __nexus_password__: { get_param: nexus_password }
1166 __openstack_username__: { get_param: openstack_username }
1167 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1168 __openstack_api_key__: { get_param: openstack_api_key }
1169 __dmaap_topic__: { get_param: dmaap_topic }
1170 __artifacts_version__: { get_param: artifacts_version }
1171 __docker_version__: { get_param: docker_version }
1172 __gerrit_branch__: { get_param: gerrit_branch }
1173 __cloud_env__: { get_param: cloud_env }
1174 __mso_repo__: { get_param: clamp_repo }
1178 # Create configuration files
1179 mkdir -p /opt/config
1180 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1181 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1182 echo "__nexus_username__" > /opt/config/nexus_username.txt
1183 echo "__nexus_password__" > /opt/config/nexus_password.txt
1184 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1185 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1186 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1187 echo "__openstack_username__" > /opt/config/openstack_username.txt
1188 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1189 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1190 echo "__docker_version__" > /opt/config/docker_version.txt
1191 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1192 echo "__cloud_env__" > /opt/config/cloud_env.txt
1193 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1195 # Download and run install script
1196 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1198 chmod +x clamp_install.sh