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: 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
235 type: OS::Heat::RandomString
239 # Public key used to access ONAP components
241 type: OS::Nova::KeyPair
247 base: { get_param: key_name }
248 rand: { get_resource: random-str }
249 public_key: { get_param: pub_key }
250 save_private_key: false
253 # ONAP management private network
255 type: OS::Neutron::Net
259 template: oam_onap_rand
261 rand: { get_resource: random-str }
264 type: OS::Neutron::Subnet
268 template: oam_onap_rand
270 rand: { get_resource: random-str }
271 network_id: { get_resource: oam_onap }
275 # DNS Server instantiation
277 type: OS::Neutron::Port
279 network: { get_resource: oam_onap }
280 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.0.1}]
283 type: OS::Nova::Server
285 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
286 flavor: 4 GB General Purpose v1
289 template: base-dns-server
291 base: { get_param: vm_base_name }
292 key_name: { get_resource: vm_key }
294 - network: { get_param: public_net_id }
295 - port: { get_resource: dns_private_port }
296 user_data_format: RAW
300 __nexus_repo__: { get_param: nexus_repo }
301 __artifacts_version__: { get_param: artifacts_version }
302 __cloud_env__: { get_param: cloud_env }
306 # Create configuration files
308 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
309 echo "__cloud_env__" > /opt/config/cloud_env.txt
310 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
312 # Download and run install script
313 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
315 chmod +x dns_install.sh
319 # A&AI instantiation (2 VMs)
321 type: OS::Neutron::Port
323 network: { get_resource: oam_onap }
324 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.1.1}]
327 type: OS::Cinder::Volume
332 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
335 type: OS::Nova::Server
338 flavor: 15 GB Compute v1
341 template: base-aai-inst1
343 base: { get_param: vm_base_name }
344 key_name: { get_resource: vm_key }
345 block_device_mapping:
346 - volume_id: { get_resource: aai1_volume }
349 - network: { get_param: public_net_id }
350 - port: { get_resource: aai1_private_port }
351 user_data_format: RAW
355 __nexus_repo__: { get_param: nexus_repo }
356 __nexus_docker_repo__: { get_param: nexus_docker_repo }
357 __nexus_username__: { get_param: nexus_username }
358 __nexus_password__: { get_param: nexus_password }
359 __dmaap_topic__: { get_param: dmaap_topic }
360 __artifacts_version__: { get_param: artifacts_version }
361 __docker_version__: { get_param: aai_docker }
362 __gerrit_branch__: { get_param: aai_branch }
363 __cloud_env__: { get_param: cloud_env }
364 __aai_repo__: { get_param: aai_repo }
368 # Create configuration files
370 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
371 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
372 echo "__nexus_username__" > /opt/config/nexus_username.txt
373 echo "__nexus_password__" > /opt/config/nexus_password.txt
374 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
375 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
376 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
377 echo "__docker_version__" > /opt/config/docker_version.txt
378 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
379 echo "aai_instance_1" > /opt/config/aai_instance.txt
380 echo "__cloud_env__" > /opt/config/cloud_env.txt
381 echo "__aai_repo__" > /opt/config/remote_repo.txt
383 # Download and run install script
384 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
386 chmod +x aai_install.sh
391 type: OS::Neutron::Port
393 network: { get_resource: oam_onap }
394 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.1.2}]
397 type: OS::Cinder::Volume
402 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
405 type: OS::Nova::Server
407 flavor: 15 GB Compute v1
410 template: base-aai-inst2
412 base: { get_param: vm_base_name }
413 key_name: { get_resource: vm_key }
414 block_device_mapping:
415 - volume_id: { get_resource: aai2_volume }
418 - network: { get_param: public_net_id }
419 - port: { get_resource: aai2_private_port }
420 user_data_format: RAW
424 __nexus_repo__: { get_param: nexus_repo }
425 __nexus_docker_repo__: { get_param: nexus_docker_repo }
426 __nexus_username__: { get_param: nexus_username }
427 __nexus_password__: { get_param: nexus_password }
428 __dmaap_topic__: { get_param: dmaap_topic }
429 __artifacts_version__: { get_param: artifacts_version }
430 __docker_version__: { get_param: aai_docker }
431 __gerrit_branch__: { get_param: aai_branch }
432 __cloud_env__: { get_param: cloud_env }
433 __aai_repo__: { get_param: aai_repo }
437 # Create configuration files
439 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
440 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
441 echo "__nexus_username__" > /opt/config/nexus_username.txt
442 echo "__nexus_password__" > /opt/config/nexus_password.txt
443 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
444 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
445 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
446 echo "__docker_version__" > /opt/config/docker_version.txt
447 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
448 echo "aai_instance_2" > /opt/config/aai_instance.txt
449 echo "__cloud_env__" > /opt/config/cloud_env.txt
450 echo "__aai_repo__" > /opt/config/remote_repo.txt
452 # Download and run install script
453 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
455 chmod +x aai_install.sh
461 type: OS::Neutron::Port
463 network: { get_resource: oam_onap }
464 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.5.1}]
467 type: OS::Nova::Server
469 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
470 flavor: 4 GB General Purpose v1
475 base: { get_param: vm_base_name }
476 key_name: { get_resource: vm_key }
478 - network: { get_param: public_net_id }
479 - port: { get_resource: so_private_port }
480 user_data_format: RAW
484 __nexus_repo__: { get_param: nexus_repo }
485 __nexus_docker_repo__: { get_param: nexus_docker_repo }
486 __nexus_username__: { get_param: nexus_username }
487 __nexus_password__: { get_param: nexus_password }
488 __openstack_username__: { get_param: openstack_username }
489 __openstack_tenant_id__: { get_param: openstack_tenant_id }
490 __openstack_api_key__: { get_param: openstack_api_key }
491 __dmaap_topic__: { get_param: dmaap_topic }
492 __artifacts_version__: { get_param: artifacts_version }
493 __docker_version__: { get_param: so_docker }
494 __gerrit_branch__: { get_param: so_branch }
495 __cloud_env__: { get_param: cloud_env }
496 __so_repo__: { get_param: so_repo }
500 # Create configuration files
502 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
503 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
504 echo "__nexus_username__" > /opt/config/nexus_username.txt
505 echo "__nexus_password__" > /opt/config/nexus_password.txt
506 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
507 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
508 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
509 echo "__openstack_username__" > /opt/config/openstack_username.txt
510 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
511 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
512 echo "__docker_version__" > /opt/config/docker_version.txt
513 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
514 echo "__cloud_env__" > /opt/config/cloud_env.txt
515 echo "__so_repo__" > /opt/config/remote_repo.txt
517 # Download and run install script
518 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
520 chmod +x so_install.sh
524 # Message Router instantiation
525 mrouter_private_port:
526 type: OS::Neutron::Port
528 network: { get_resource: oam_onap }
529 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.11.1}]
532 type: OS::Nova::Server
534 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
538 template: base-message-router
540 base: { get_param: vm_base_name }
541 key_name: { get_resource: vm_key }
543 - network: { get_param: public_net_id }
544 - port: { get_resource: mrouter_private_port }
545 user_data_format: RAW
549 __nexus_repo__: { get_param: nexus_repo }
550 __nexus_docker_repo__: { get_param: nexus_docker_repo }
551 __nexus_username__: { get_param: nexus_username }
552 __nexus_password__: { get_param: nexus_password }
553 __artifacts_version__: { get_param: artifacts_version }
554 __gerrit_branch__: { get_param: mr_branch }
555 __cloud_env__: { get_param: cloud_env }
556 __mr_repo__: { get_param: mr_repo }
560 # Create configuration files
562 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
563 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
564 echo "__nexus_username__" > /opt/config/nexus_username.txt
565 echo "__nexus_password__" > /opt/config/nexus_password.txt
566 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
567 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
568 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
569 echo "__cloud_env__" > /opt/config/cloud_env.txt
570 echo "__mr_repo__" > /opt/config/remote_repo.txt
572 # Download and run install script
573 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
575 chmod +x mr_install.sh
579 # RobotE2E instantiation
581 type: OS::Neutron::Port
583 network: { get_resource: oam_onap }
584 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.10.1}]
587 type: OS::Nova::Server
589 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
590 flavor: 2 GB General Purpose v1
595 base: { get_param: vm_base_name }
596 key_name: { get_resource: vm_key }
598 - network: { get_param: public_net_id }
599 - port: { get_resource: robot_private_port }
600 user_data_format: RAW
604 __nexus_repo__: { get_param: nexus_repo }
605 __nexus_docker_repo__: { get_param: nexus_docker_repo }
606 __nexus_username__: { get_param: nexus_username }
607 __nexus_password__: { get_param: nexus_password }
608 __network_name__: { get_attr: [oam_onap, name] }
609 __openstack_username__: { get_param: openstack_username }
610 __openstack_api_key__: { get_param : openstack_api_key }
611 __openstack_password__: { get_param: openstack_password }
612 __openstack_tenant_id__: { get_param: openstack_tenant_id }
613 __artifacts_version__: { get_param: artifacts_version }
614 __openstack_region__: { get_param: openstack_region }
615 __docker_version__: { get_param: robot_docker }
616 __gerrit_branch__: { get_param: robot_branch }
617 __cloud_env__: { get_param: cloud_env }
618 __robot_repo__: { get_param: robot_repo }
622 # Create configuration files
624 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
625 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
626 echo "__nexus_username__" > /opt/config/nexus_username.txt
627 echo "__nexus_password__" > /opt/config/nexus_password.txt
628 echo "__network_name__" > /opt/config/network.txt
629 echo "__openstack_username__" > /opt/config/openstack_username.txt
630 echo "__openstack_password__" > /opt/config/openstack_password.txt
631 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
632 echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
633 echo "__openstack_region__" > /opt/config/region.txt
634 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
635 echo "__docker_version__" > /opt/config/docker_version.txt
636 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
637 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
638 echo "https://identity.api.rackspacecloud.com/v2.0" > /opt/config/keystone.txt
639 echo "10.0.1.1" > /opt/config/aai1_ip_addr.txt
640 echo "10.0.1.2" > /opt/config/aai2_ip_addr.txt
641 echo "10.0.2.1" > /opt/config/appc_ip_addr.txt
642 echo "10.0.4.1" > /opt/config/dcae_ip_addr.txt
643 echo "10.0.5.1" > /opt/config/so_ip_addr.txt
644 echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
645 echo "10.0.6.1" > /opt/config/policy_ip_addr.txt
646 echo "10.0.9.1" > /opt/config/portal_ip_addr.txt
647 echo "10.0.3.1" > /opt/config/sdc_ip_addr.txt
648 echo "10.0.7.1" > /opt/config/sdnc_ip_addr.txt
649 echo "10.0.8.1" > /opt/config/vid_ip_addr.txt
650 echo "10.0.12.1" > /opt/config/clamp_ip_addr.txt
651 echo "Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)" > /opt/config/vm_image_name.txt
652 echo "4 GB General Purpose v1" > /opt/config/vm_flavor.txt
653 echo "__cloud_env__" > /opt/config/cloud_env.txt
654 echo "__robot_repo__" > /opt/config/remote_repo.txt
656 # Download and run install script
657 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
659 chmod +x robot_install.sh
665 type: OS::Neutron::Port
667 network: { get_resource: oam_onap }
668 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.8.1}]
671 type: OS::Nova::Server
673 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
674 flavor: 2 GB General Purpose v1
679 base: { get_param: vm_base_name }
680 key_name: { get_resource: vm_key }
682 - network: { get_param: public_net_id }
683 - port: { get_resource: vid_private_port }
684 user_data_format: RAW
688 __nexus_repo__: { get_param: nexus_repo }
689 __nexus_docker_repo__: { get_param: nexus_docker_repo }
690 __nexus_username__: { get_param: nexus_username }
691 __nexus_password__: { get_param: nexus_password }
692 __artifacts_version__: { get_param: artifacts_version }
693 __docker_version__: { get_param: vid_docker }
694 __gerrit_branch__: { get_param: vid_branch }
695 __cloud_env__: { get_param: cloud_env }
696 __vid_repo__: { get_param: vid_repo }
700 # Create configuration files
702 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
703 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
704 echo "__nexus_username__" > /opt/config/nexus_username.txt
705 echo "__nexus_password__" > /opt/config/nexus_password.txt
706 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
707 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
708 echo "__docker_version__" > /opt/config/docker_version.txt
709 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
710 echo "__cloud_env__" > /opt/config/cloud_env.txt
711 echo "__vid_repo__" > /opt/config/remote_repo.txt
713 # Download and run install script
714 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
716 chmod +x vid_install.sh
720 # SDN-C instantiation
722 type: OS::Neutron::Port
724 network: { get_resource: oam_onap }
725 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.7.1}]
728 type: OS::Nova::Server
730 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
731 flavor: 4 GB General Purpose v1
736 base: { get_param: vm_base_name }
737 key_name: { get_resource: vm_key }
739 - network: { get_param: public_net_id }
740 - port: { get_resource: sdnc_private_port }
741 user_data_format: RAW
745 __nexus_repo__: { get_param: nexus_repo }
746 __nexus_docker_repo__: { get_param: nexus_docker_repo }
747 __nexus_username__: { get_param: nexus_username }
748 __nexus_password__: { get_param: nexus_password }
749 __artifacts_version__: { get_param: artifacts_version }
750 __docker_version__: { get_param: sdnc_docker }
751 __gerrit_branch__: { get_param: sdnc_branch }
752 __dgbuilder_docker__: { get_param: dgbuilder_docker }
753 __cloud_env__: { get_param: cloud_env }
754 __sdnc_repo__: { get_param: sdnc_repo }
758 # Create configuration files
760 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
761 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
762 echo "__nexus_username__" > /opt/config/nexus_username.txt
763 echo "__nexus_password__" > /opt/config/nexus_password.txt
764 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
765 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
766 echo "__docker_version__" > /opt/config/docker_version.txt
767 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
768 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
769 echo "__cloud_env__" > /opt/config/cloud_env.txt
770 echo "__sdnc_repo__" > /opt/config/remote_repo.txt
772 # Download and run install script
773 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
775 chmod +x sdnc_install.sh
781 type: OS::Neutron::Port
783 network: { get_resource: oam_onap }
784 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.3.1}]
787 type: OS::Cinder::Volume
792 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
795 type: OS::Cinder::Volume
801 sdc_volume_attachment:
802 type: OS::Cinder::VolumeAttachment
804 volume_id: { get_resource: sdc_volume_data }
805 instance_uuid: { get_resource: sdc_vm }
806 mountpoint: /dev/xvdb
809 type: OS::Nova::Server
811 flavor: 15 GB Compute v1
816 base: { get_param: vm_base_name }
817 key_name: { get_resource: vm_key }
818 block_device_mapping:
819 - volume_id: { get_resource: sdc_volume_local }
822 - network: { get_param: public_net_id }
823 - port: { get_resource: sdc_private_port }
824 user_data_format: RAW
828 __nexus_repo__: { get_param: nexus_repo }
829 __nexus_docker_repo__: { get_param: nexus_docker_repo }
830 __nexus_username__: { get_param: nexus_username }
831 __nexus_password__: { get_param: nexus_password }
832 __env_name__: { get_param: dmaap_topic }
833 __artifacts_version__: { get_param: artifacts_version }
834 __docker_version__: { get_param: sdc_docker }
835 __gerrit_branch__: { get_param: sdc_branch }
836 __cloud_env__: { get_param: cloud_env }
837 __sdc_repo__: { get_param: sdc_repo }
841 # Create configuration files
843 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
844 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
845 echo "__nexus_username__" > /opt/config/nexus_username.txt
846 echo "__nexus_password__" > /opt/config/nexus_password.txt
847 echo "__env_name__" > /opt/config/env_name.txt
848 echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
849 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
850 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
851 echo "__docker_version__" > /opt/config/docker_version.txt
852 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
853 echo "__cloud_env__" > /opt/config/cloud_env.txt
854 echo "__sdc_repo__" > /opt/config/remote_repo.txt
856 # Download and run install script
857 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
859 chmod +x sdc_install.sh
863 # PORTAL instantiation
865 type: OS::Neutron::Port
867 network: { get_resource: oam_onap }
868 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.9.1}]
871 type: OS::Cinder::Volume
876 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
879 type: OS::Nova::Server
881 flavor: 15 GB Memory v1
884 template: base-portal
886 base: { get_param: vm_base_name }
887 key_name: { get_resource: vm_key }
888 block_device_mapping:
889 - volume_id: { get_resource: portal_volume }
892 - network: { get_param: public_net_id }
893 - port: { get_resource: portal_private_port }
894 user_data_format: RAW
898 __nexus_repo__: { get_param: nexus_repo }
899 __nexus_docker_repo__: { get_param: nexus_docker_repo }
900 __nexus_username__: { get_param: nexus_username }
901 __nexus_password__: { get_param: nexus_password }
902 __artifacts_version__: { get_param: artifacts_version }
903 __docker_version__: { get_param: portal_docker }
904 __gerrit_branch__: { get_param: portal_branch }
905 __cloud_env__: { get_param: cloud_env }
906 __portal_repo__: { get_param: portal_repo }
910 # Create configuration files
912 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
913 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
914 echo "__nexus_username__" > /opt/config/nexus_username.txt
915 echo "__nexus_password__" > /opt/config/nexus_password.txt
916 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
917 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
918 echo "__docker_version__" > /opt/config/docker_version.txt
919 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
920 echo "__cloud_env__" > /opt/config/cloud_env.txt
921 echo "__portal_repo__" > /opt/config/remote_repo.txt
923 # Download and run install script
924 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
926 chmod +x portal_install.sh
930 # DCAE Controller instantiation
932 type: OS::Neutron::Port
934 network: { get_resource: oam_onap }
935 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.4.1}]
937 type: OS::Nova::Server
939 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
940 flavor: 8 GB General Purpose v1
943 template: base-dcae-controller
945 base: { get_param: vm_base_name }
946 key_name: { get_resource: vm_key }
948 - network: { get_param: public_net_id }
949 - port: { get_resource: dcae_c_private_port }
950 user_data_format: RAW
954 __nexus_repo__: { get_param: nexus_repo }
955 __nexus_docker_repo__: { get_param: nexus_docker_repo }
956 __nexus_username__: { get_param: nexus_username }
957 __nexus_password__: { get_param: nexus_password }
958 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
959 __gitlab_branch__: { get_param: gitlab_branch }
960 __dcae_zone__: { get_param: dcae_zone }
961 __dcae_state__: { get_param: dcae_state }
962 __artifacts_version__: { get_param: artifacts_version }
963 __tenant_id__: { get_param: openstack_tenant_id }
964 __openstack_private_network_name__: { get_attr: [oam_onap, name] }
965 __openstack_user__: { get_param: openstack_username }
966 __openstack_password__: { get_param: openstack_api_key }
967 __openstack_auth_method__: { get_param: openstack_auth_method }
968 __key_name__: { get_param: key_name }
969 __rand_str__: { get_resource: random-str }
970 __pub_key__: { get_param: pub_key }
971 __nexus_repo_root__: { get_param: nexus_repo_root }
972 __openstack_region__: { get_param: openstack_region }
973 __docker_version__: { get_param: dcae_docker }
974 __gerrit_branch__: { get_param: dcae_branch }
975 __cloud_env__: { get_param: cloud_env }
976 __dcae_code_version__: { get_param: dcae_code_version }
977 __public_net_id__: { get_param: public_net_id }
978 __dcae_base_environment__: { get_param: dcae_base_environment }
979 __dcae_ip_addr__: { get_param: dcae_ip_addr }
980 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
981 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
982 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
983 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
984 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
985 __dcae_repo__: { get_param: dcae_repo }
986 __mr_repo__: { get_param: mr_repo }
990 # Create configuration files
992 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
993 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
994 echo "__nexus_username__" > /opt/config/nexus_username.txt
995 echo "__nexus_password__" > /opt/config/nexus_password.txt
996 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
997 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
998 echo "__docker_version__" > /opt/config/docker_version.txt
999 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1000 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1001 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1002 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1003 echo "__dcae_state__" > /opt/config/dcae_state.txt
1004 echo "__tenant_id__" > /opt/config/tenant_id.txt
1005 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1006 echo "__openstack_user__" > /opt/config/openstack_user.txt
1007 echo "__openstack_password__" > /opt/config/openstack_password.txt
1008 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1009 echo "__key_name__" > /opt/config/key_name.txt
1010 echo "__rand_str__" > /opt/config/rand_str.txt
1011 echo "__pub_key__" > /opt/config/pub_key.txt
1012 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1013 echo "__openstack_region__" > /opt/config/openstack_region.txt
1014 echo "https://mycloud.rackspace.com/cloud" > /opt/config/horizon_url.txt
1015 echo "https://identity.api.rackspacecloud.com/v2.0" > /opt/config/keystone_url.txt
1016 echo "__cloud_env__" > /opt/config/cloud_env.txt
1017 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1018 echo "__public_net_id__" > /opt/config/public_net_id.txt
1019 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1020 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1021 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1022 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1023 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1024 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1025 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1026 echo "__dcae_repo__" > /opt/config/remote_repo.txt
1027 echo "__mr_repo__" > /opt/config/mr_repo.txt
1029 # Download and run install script
1030 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1032 chmod +x dcae_install.sh
1036 # Policy engine instantiation
1037 policy_private_port:
1038 type: OS::Neutron::Port
1040 network: { get_resource: oam_onap }
1041 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.6.1}]
1044 type: OS::Cinder::Volume
1049 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
1052 type: OS::Nova::Server
1054 flavor: 15 GB Compute v1
1057 template: base-policy
1059 base: { get_param: vm_base_name }
1060 key_name: { get_resource: vm_key }
1061 block_device_mapping:
1062 - volume_id: { get_resource: policy_volume }
1065 - network: { get_param: public_net_id }
1066 - port: { get_resource: policy_private_port }
1067 user_data_format: RAW
1071 __nexus_repo__: { get_param: nexus_repo }
1072 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1073 __nexus_username__: { get_param: nexus_username }
1074 __nexus_password__: { get_param: nexus_password }
1075 __artifacts_version__: { get_param: artifacts_version }
1076 __docker_version__: { get_param: policy_docker }
1077 __gerrit_branch__: { get_param: policy_branch }
1078 __cloud_env__: { get_param: cloud_env }
1079 __policy_repo__: { get_param: policy_repo }
1083 # Create configuration files
1084 mkdir -p /opt/config
1085 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1086 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1087 echo "__nexus_username__" > /opt/config/nexus_username.txt
1088 echo "__nexus_password__" > /opt/config/nexus_password.txt
1089 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1090 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1091 echo "__docker_version__" > /opt/config/docker_version.txt
1092 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1093 echo "__cloud_env__" > /opt/config/cloud_env.txt
1094 echo "__policy_repo__" > /opt/config/remote_repo.txt
1096 # Download and run install script
1097 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1099 chmod +x policy_install.sh
1103 # APP-C instantiation
1105 type: OS::Neutron::Port
1107 network: { get_resource: oam_onap }
1108 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.2.1}]
1111 type: OS::Nova::Server
1113 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
1114 flavor: 4 GB General Purpose v1
1119 base: { get_param: vm_base_name }
1120 key_name: { get_resource: vm_key }
1122 - network: { get_param: public_net_id }
1123 - port: { get_resource: appc_private_port }
1124 user_data_format: RAW
1128 __nexus_repo__: { get_param: nexus_repo }
1129 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1130 __nexus_username__: { get_param: nexus_username }
1131 __nexus_password__: { get_param: nexus_password }
1132 __dmaap_topic__: { get_param: dmaap_topic }
1133 __artifacts_version__: { get_param: artifacts_version }
1134 __docker_version__: { get_param: appc_docker }
1135 __gerrit_branch__: { get_param: appc_branch }
1136 __dgbuilder_docker__: { get_param: dgbuilder_docker }
1137 __cloud_env__: { get_param: cloud_env }
1138 __appc_repo__: { get_param: appc_repo }
1142 # Create configuration files
1143 mkdir -p /opt/config
1144 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1145 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1146 echo "__nexus_username__" > /opt/config/nexus_username.txt
1147 echo "__nexus_password__" > /opt/config/nexus_password.txt
1148 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1149 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1150 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1151 echo "__docker_version__" > /opt/config/docker_version.txt
1152 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1153 echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1154 echo "__cloud_env__" > /opt/config/cloud_env.txt
1155 echo "__appc_repo__" > /opt/config/remote_repo.txt
1157 # Download and run install script
1158 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1160 chmod +x appc_install.sh
1164 # CLAMP instantiation
1166 type: OS::Neutron::Port
1168 network: { get_resource: oam_onap }
1169 fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.12.1}]
1172 type: OS::Nova::Server
1174 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
1175 flavor: 4 GB General Purpose v1
1178 template: base-clamp
1180 base: { get_param: vm_base_name }
1181 key_name: { get_resource: vm_key }
1183 - network: { get_param: public_net_id }
1184 - port: { get_resource: clamp_private_port }
1185 user_data_format: RAW
1189 __nexus_repo__: { get_param: nexus_repo }
1190 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1191 __nexus_username__: { get_param: nexus_username }
1192 __nexus_password__: { get_param: nexus_password }
1193 __openstack_username__: { get_param: openstack_username }
1194 __openstack_tenant_id__: { get_param: openstack_tenant_id }
1195 __openstack_api_key__: { get_param: openstack_api_key }
1196 __dmaap_topic__: { get_param: dmaap_topic }
1197 __artifacts_version__: { get_param: artifacts_version }
1198 __docker_version__: { get_param: clamp_docker }
1199 __gerrit_branch__: { get_param: clamp_branch }
1200 __cloud_env__: { get_param: cloud_env }
1201 __clamp_repo__: { get_param: clamp_repo }
1205 # Create configuration files
1206 mkdir -p /opt/config
1207 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1208 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1209 echo "__nexus_username__" > /opt/config/nexus_username.txt
1210 echo "__nexus_password__" > /opt/config/nexus_password.txt
1211 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1212 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1213 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1214 echo "__openstack_username__" > /opt/config/openstack_username.txt
1215 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1216 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1217 echo "__docker_version__" > /opt/config/docker_version.txt
1218 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1219 echo "__cloud_env__" > /opt/config/cloud_env.txt
1220 echo "__clamp_repo__" > /opt/config/remote_repo.txt
1222 # Download and run install script
1223 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1225 chmod +x clamp_install.sh