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 (RACKSPACE/2-NIC/...)
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
165 type: OS::Heat::RandomString
169 # Public key used to access ONAP components
171 type: OS::Nova::KeyPair
177 base: { get_param: key_name }
178 rand: { get_resource: random-str }
179 public_key: { get_param: pub_key }
180 save_private_key: false
183 # ONAP management private network
185 type: OS::Neutron::Net
189 template: oam_ecomp_rand
191 rand: { get_resource: random-str }
194 type: OS::Neutron::Subnet
198 template: oam_ecomp_rand
200 rand: { get_resource: random-str }
201 network_id: { get_resource: oam_ecomp }
205 # DNS Server instantiation
207 type: OS::Neutron::Port
209 network: { get_resource: oam_ecomp }
210 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.0.1}]
213 type: OS::Nova::Server
215 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
216 flavor: 4 GB General Purpose v1
219 template: base-dns-server
221 base: { get_param: vm_base_name }
222 key_name: { get_resource: vm_key }
224 - network: { get_param: public_net_id }
225 - port: { get_resource: dns_private_port }
226 user_data_format: RAW
230 __nexus_repo__: { get_param: nexus_repo }
231 __artifacts_version__: { get_param: artifacts_version }
232 __cloud_env__: { get_param: cloud_env }
236 # Create configuration files
238 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
239 echo "__cloud_env__" > /opt/config/cloud_env.txt
240 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
242 # Download and run install script
243 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
245 chmod +x dns_install.sh
249 # A&AI instantiation (2 VMs)
251 type: OS::Neutron::Port
253 network: { get_resource: oam_ecomp }
254 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.1.1}]
257 type: OS::Cinder::Volume
262 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
265 type: OS::Nova::Server
268 flavor: 15 GB Compute v1
271 template: base-aai-inst1
273 base: { get_param: vm_base_name }
274 key_name: { get_resource: vm_key }
275 block_device_mapping:
276 - volume_id: { get_resource: aai1_volume }
279 - network: { get_param: public_net_id }
280 - port: { get_resource: aai1_private_port }
281 user_data_format: RAW
285 __nexus_repo__: { get_param: nexus_repo }
286 __nexus_docker_repo__: { get_param: nexus_docker_repo }
287 __nexus_username__: { get_param: nexus_username }
288 __nexus_password__: { get_param: nexus_password }
289 __dmaap_topic__: { get_param: dmaap_topic }
290 __artifacts_version__: { get_param: artifacts_version }
291 __docker_version__: { get_param: docker_version }
292 __gerrit_branch__: { get_param: gerrit_branch }
293 __cloud_env__: { get_param: cloud_env }
297 # Create configuration files
299 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
300 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
301 echo "__nexus_username__" > /opt/config/nexus_username.txt
302 echo "__nexus_password__" > /opt/config/nexus_password.txt
303 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
304 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
305 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
306 echo "__docker_version__" > /opt/config/docker_version.txt
307 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
308 echo "aai_instance_1" > /opt/config/aai_instance.txt
309 echo "__cloud_env__" > /opt/config/cloud_env.txt
311 # Download and run install script
312 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai2_install.sh -o /opt/aai2_install.sh
314 chmod +x aai2_install.sh
319 type: OS::Neutron::Port
321 network: { get_resource: oam_ecomp }
322 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.1.2}]
325 type: OS::Cinder::Volume
330 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
333 type: OS::Nova::Server
335 flavor: 15 GB Compute v1
338 template: base-aai-inst2
340 base: { get_param: vm_base_name }
341 key_name: { get_resource: vm_key }
342 block_device_mapping:
343 - volume_id: { get_resource: aai2_volume }
346 - network: { get_param: public_net_id }
347 - port: { get_resource: aai2_private_port }
348 user_data_format: RAW
352 __nexus_repo__: { get_param: nexus_repo }
353 __nexus_docker_repo__: { get_param: nexus_docker_repo }
354 __nexus_username__: { get_param: nexus_username }
355 __nexus_password__: { get_param: nexus_password }
356 __dmaap_topic__: { get_param: dmaap_topic }
357 __artifacts_version__: { get_param: artifacts_version }
358 __docker_version__: { get_param: docker_version }
359 __gerrit_branch__: { get_param: gerrit_branch }
360 __cloud_env__: { get_param: cloud_env }
364 # Create configuration files
366 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
367 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
368 echo "__nexus_username__" > /opt/config/nexus_username.txt
369 echo "__nexus_password__" > /opt/config/nexus_password.txt
370 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
371 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
372 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
373 echo "__docker_version__" > /opt/config/docker_version.txt
374 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
375 echo "aai_instance_2" > /opt/config/aai_instance.txt
376 echo "__cloud_env__" > /opt/config/cloud_env.txt
378 # Download and run install script
379 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai2_install.sh -o /opt/aai2_install.sh
381 chmod +x aai2_install.sh
387 type: OS::Neutron::Port
389 network: { get_resource: oam_ecomp }
390 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.5.1}]
393 type: OS::Nova::Server
395 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
396 flavor: 4 GB General Purpose v1
401 base: { get_param: vm_base_name }
402 key_name: { get_resource: vm_key }
404 - network: { get_param: public_net_id }
405 - port: { get_resource: mso_private_port }
406 user_data_format: RAW
410 __nexus_repo__: { get_param: nexus_repo }
411 __nexus_docker_repo__: { get_param: nexus_docker_repo }
412 __nexus_username__: { get_param: nexus_username }
413 __nexus_password__: { get_param: nexus_password }
414 __openstack_username__: { get_param: openstack_username }
415 __openstack_tenant_id__: { get_param: openstack_tenant_id }
416 __openstack_api_key__: { get_param: openstack_api_key }
417 __dmaap_topic__: { get_param: dmaap_topic }
418 __artifacts_version__: { get_param: artifacts_version }
419 __docker_version__: { get_param: docker_version }
420 __gerrit_branch__: { get_param: gerrit_branch }
421 __cloud_env__: { get_param: cloud_env }
425 # Create configuration files
427 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
428 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
429 echo "__nexus_username__" > /opt/config/nexus_username.txt
430 echo "__nexus_password__" > /opt/config/nexus_password.txt
431 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
432 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
433 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
434 echo "__openstack_username__" > /opt/config/openstack_username.txt
435 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
436 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
437 echo "__docker_version__" > /opt/config/docker_version.txt
438 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
439 echo "__cloud_env__" > /opt/config/cloud_env.txt
441 # Download and run install script
442 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
444 chmod +x mso_install.sh
448 # Message Router instantiation
449 mrouter_private_port:
450 type: OS::Neutron::Port
452 network: { get_resource: oam_ecomp }
453 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.11.1}]
456 type: OS::Nova::Server
458 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
462 template: base-message-router
464 base: { get_param: vm_base_name }
465 key_name: { get_resource: vm_key }
467 - network: { get_param: public_net_id }
468 - port: { get_resource: mrouter_private_port }
469 user_data_format: RAW
473 __nexus_repo__: { get_param: nexus_repo }
474 __nexus_docker_repo__: { get_param: nexus_docker_repo }
475 __nexus_username__: { get_param: nexus_username }
476 __nexus_password__: { get_param: nexus_password }
477 __artifacts_version__: { get_param: artifacts_version }
478 __gerrit_branch__: { get_param: gerrit_branch }
479 __cloud_env__: { get_param: cloud_env }
483 # Create configuration files
485 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
486 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
487 echo "__nexus_username__" > /opt/config/nexus_username.txt
488 echo "__nexus_password__" > /opt/config/nexus_password.txt
489 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
490 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
491 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
492 echo "__cloud_env__" > /opt/config/cloud_env.txt
494 # Download and run install script
495 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
497 chmod +x mr_install.sh
501 # RobotE2E instantiation
503 type: OS::Neutron::Port
505 network: { get_resource: oam_ecomp }
506 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.10.1}]
509 type: OS::Nova::Server
511 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
512 flavor: 2 GB General Purpose v1
517 base: { get_param: vm_base_name }
518 key_name: { get_resource: vm_key }
520 - network: { get_param: public_net_id }
521 - port: { get_resource: robot_private_port }
522 user_data_format: RAW
526 __nexus_repo__: { get_param: nexus_repo }
527 __nexus_docker_repo__: { get_param: nexus_docker_repo }
528 __nexus_username__: { get_param: nexus_username }
529 __nexus_password__: { get_param: nexus_password }
530 __network_name__: { get_attr: [oam_ecomp, name] }
531 __openstack_username__: { get_param: openstack_username }
532 __openstack_api_key__: { get_param : openstack_api_key }
533 __openstack_password__: { get_param: openstack_password }
534 __artifacts_version__: { get_param: artifacts_version }
535 __openstack_region__: { get_param: openstack_region }
536 __docker_version__: { get_param: docker_version }
537 __gerrit_branch__: { get_param: gerrit_branch }
538 __cloud_env__: { get_param: cloud_env }
542 # Create configuration files
544 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
545 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
546 echo "__nexus_username__" > /opt/config/nexus_username.txt
547 echo "__nexus_password__" > /opt/config/nexus_password.txt
548 echo "__network_name__" > /opt/config/network.txt
549 echo "__openstack_username__" > /opt/config/openstack_username.txt
550 echo "__openstack_password__" > /opt/config/openstack_password.txt
551 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
552 echo "__openstack_region__" > /opt/config/region.txt
553 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
554 echo "__docker_version__" > /opt/config/docker_version.txt
555 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
556 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
557 echo "__cloud_env__" > /opt/config/cloud_env.txt
559 # Download and run install script
560 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
562 chmod +x robot_install.sh
568 type: OS::Neutron::Port
570 network: { get_resource: oam_ecomp }
571 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.8.1}]
574 type: OS::Nova::Server
576 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
577 flavor: 2 GB General Purpose v1
582 base: { get_param: vm_base_name }
583 key_name: { get_resource: vm_key }
585 - network: { get_param: public_net_id }
586 - port: { get_resource: vid_private_port }
587 user_data_format: RAW
591 __nexus_repo__: { get_param: nexus_repo }
592 __nexus_docker_repo__: { get_param: nexus_docker_repo }
593 __nexus_username__: { get_param: nexus_username }
594 __nexus_password__: { get_param: nexus_password }
595 __artifacts_version__: { get_param: artifacts_version }
596 __docker_version__: { get_param: docker_version }
597 __gerrit_branch__: { get_param: gerrit_branch }
598 __cloud_env__: { get_param: cloud_env }
602 # Create configuration files
604 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
605 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
606 echo "__nexus_username__" > /opt/config/nexus_username.txt
607 echo "__nexus_password__" > /opt/config/nexus_password.txt
608 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
609 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
610 echo "__docker_version__" > /opt/config/docker_version.txt
611 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
612 echo "__cloud_env__" > /opt/config/cloud_env.txt
614 # Download and run install script
615 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
617 chmod +x vid_install.sh
621 # SDN-C instantiation
623 type: OS::Neutron::Port
625 network: { get_resource: oam_ecomp }
626 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.7.1}]
629 type: OS::Nova::Server
631 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
632 flavor: 4 GB General Purpose v1
637 base: { get_param: vm_base_name }
638 key_name: { get_resource: vm_key }
640 - network: { get_param: public_net_id }
641 - port: { get_resource: sdnc_private_port }
642 user_data_format: RAW
646 __nexus_repo__: { get_param: nexus_repo }
647 __nexus_docker_repo__: { get_param: nexus_docker_repo }
648 __nexus_username__: { get_param: nexus_username }
649 __nexus_password__: { get_param: nexus_password }
650 __artifacts_version__: { get_param: artifacts_version }
651 __docker_version__: { get_param: docker_version }
652 __gerrit_branch__: { get_param: gerrit_branch }
653 __cloud_env__: { get_param: cloud_env }
657 # Create configuration files
659 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
660 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
661 echo "__nexus_username__" > /opt/config/nexus_username.txt
662 echo "__nexus_password__" > /opt/config/nexus_password.txt
663 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
664 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
665 echo "__docker_version__" > /opt/config/docker_version.txt
666 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
667 echo "__cloud_env__" > /opt/config/cloud_env.txt
669 # Download and run install script
670 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
672 chmod +x sdnc_install.sh
678 type: OS::Neutron::Port
680 network: { get_resource: oam_ecomp }
681 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.3.1}]
684 type: OS::Cinder::Volume
689 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
692 type: OS::Cinder::Volume
698 sdc_volume_attachment:
699 type: OS::Cinder::VolumeAttachment
701 volume_id: { get_resource: sdc_volume_data }
702 instance_uuid: { get_resource: sdc_vm }
703 mountpoint: /dev/xvdb
706 type: OS::Nova::Server
708 flavor: 15 GB Compute v1
713 base: { get_param: vm_base_name }
714 key_name: { get_resource: vm_key }
715 block_device_mapping:
716 - volume_id: { get_resource: sdc_volume_local }
719 - network: { get_param: public_net_id }
720 - port: { get_resource: sdc_private_port }
721 user_data_format: RAW
725 __nexus_repo__: { get_param: nexus_repo }
726 __nexus_docker_repo__: { get_param: nexus_docker_repo }
727 __nexus_username__: { get_param: nexus_username }
728 __nexus_password__: { get_param: nexus_password }
729 __env_name__: { get_param: dmaap_topic }
730 __artifacts_version__: { get_param: artifacts_version }
731 __docker_version__: { get_param: docker_version }
732 __gerrit_branch__: { get_param: gerrit_branch }
733 __cloud_env__: { get_param: cloud_env }
737 # Create configuration files
739 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
740 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
741 echo "__nexus_username__" > /opt/config/nexus_username.txt
742 echo "__nexus_password__" > /opt/config/nexus_password.txt
743 echo "__env_name__" > /opt/config/env_name.txt
744 echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
745 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
746 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
747 echo "__docker_version__" > /opt/config/docker_version.txt
748 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
749 echo "__cloud_env__" > /opt/config/cloud_env.txt
751 # Download and run install script
752 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
754 chmod +x asdc_install.sh
758 # PORTAL instantiation
760 type: OS::Neutron::Port
762 network: { get_resource: oam_ecomp }
763 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.9.1}]
766 type: OS::Cinder::Volume
771 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
774 type: OS::Nova::Server
776 flavor: 15 GB Memory v1
779 template: base-portal
781 base: { get_param: vm_base_name }
782 key_name: { get_resource: vm_key }
783 block_device_mapping:
784 - volume_id: { get_resource: portal_volume }
787 - network: { get_param: public_net_id }
788 - port: { get_resource: portal_private_port }
789 user_data_format: RAW
793 __nexus_repo__: { get_param: nexus_repo }
794 __nexus_docker_repo__: { get_param: nexus_docker_repo }
795 __nexus_username__: { get_param: nexus_username }
796 __nexus_password__: { get_param: nexus_password }
797 __artifacts_version__: { get_param: artifacts_version }
798 __docker_version__: { get_param: docker_version }
799 __gerrit_branch__: { get_param: gerrit_branch }
800 __cloud_env__: { get_param: cloud_env }
804 # Create configuration files
806 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
807 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
808 echo "__nexus_username__" > /opt/config/nexus_username.txt
809 echo "__nexus_password__" > /opt/config/nexus_password.txt
810 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
811 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
812 echo "__docker_version__" > /opt/config/docker_version.txt
813 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
814 echo "__cloud_env__" > /opt/config/cloud_env.txt
816 # Download and run install script
817 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
819 chmod +x portal_install.sh
823 # DCAE Controller instantiation
825 type: OS::Neutron::Port
827 network: { get_resource: oam_ecomp }
828 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.4.1}]
830 type: OS::Nova::Server
832 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
833 flavor: 8 GB General Purpose v1
836 template: base-dcae-controller
838 base: { get_param: vm_base_name }
839 key_name: { get_resource: vm_key }
841 - network: { get_param: public_net_id }
842 - port: { get_resource: dcae_c_private_port }
843 user_data_format: RAW
847 __nexus_repo__: { get_param: nexus_repo }
848 __nexus_docker_repo__: { get_param: nexus_docker_repo }
849 __nexus_username__: { get_param: nexus_username }
850 __nexus_password__: { get_param: nexus_password }
851 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
852 __gitlab_branch__: { get_param: gitlab_branch }
853 __dcae_zone__: { get_param: dcae_zone }
854 __dcae_state__: { get_param: dcae_state }
855 __artifacts_version__: { get_param: artifacts_version }
856 __tenant_id__: { get_param: openstack_tenant_id }
857 __openstack_private_network_name__: { get_attr: [oam_ecomp, name] }
858 __openstack_user__: { get_param: openstack_username }
859 __openstack_password__: { get_param: openstack_api_key }
860 __openstack_auth_method__: { get_param: openstack_auth_method }
861 __key_name__: { get_param: key_name }
862 __rand_str__: { get_resource: random-str }
863 __pub_key__: { get_param: pub_key }
864 __nexus_repo_root__: { get_param: nexus_repo_root }
865 __openstack_region__: { get_param: openstack_region }
866 __docker_version__: { get_param: docker_version }
867 __gerrit_branch__: { get_param: gerrit_branch }
868 __cloud_env__: { get_param: cloud_env }
869 __dcae_code_version__: { get_param: dcae_code_version }
870 __public_net_id__: { get_param: public_net_id }
871 __dcae_base_environment__: { get_param: dcae_base_environment }
872 __dcae_ip_addr__: { get_param: dcae_ip_addr }
873 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
874 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
875 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
876 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
877 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
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 "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
888 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
889 echo "__docker_version__" > /opt/config/docker_version.txt
890 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
891 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
892 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
893 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
894 echo "__dcae_state__" > /opt/config/dcae_state.txt
895 echo "__tenant_id__" > /opt/config/tenant_id.txt
896 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
897 echo "__openstack_user__" > /opt/config/openstack_user.txt
898 echo "__openstack_password__" > /opt/config/openstack_password.txt
899 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
900 echo "__key_name__" > /opt/config/key_name.txt
901 echo "__rand_str__" > /opt/config/rand_str.txt
902 echo "__pub_key__" > /opt/config/pub_key.txt
903 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
904 echo "__openstack_region__" > /opt/config/openstack_region.txt
905 echo "https://mycloud.rackspace.com/cloud" > /opt/config/horizon_url.txt
906 echo "https://identity.api.rackspacecloud.com/v2.0" > /opt/config/keystone_url.txt
907 echo "__cloud_env__" > /opt/config/cloud_env.txt
908 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
909 echo "__public_net_id__" > /opt/config/public_net_id.txt
910 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
911 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
912 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
913 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
914 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
915 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
916 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
918 # Download and run install script
919 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
921 chmod +x dcae_install.sh
925 # Policy engine instantiation
927 type: OS::Neutron::Port
929 network: { get_resource: oam_ecomp }
930 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.6.1}]
933 type: OS::Cinder::Volume
938 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
941 type: OS::Nova::Server
943 flavor: 15 GB Compute v1
946 template: base-policy
948 base: { get_param: vm_base_name }
949 key_name: { get_resource: vm_key }
950 block_device_mapping:
951 - volume_id: { get_resource: policy_volume }
954 - network: { get_param: public_net_id }
955 - port: { get_resource: policy_private_port }
956 user_data_format: RAW
960 __nexus_repo__: { get_param: nexus_repo }
961 __nexus_docker_repo__: { get_param: nexus_docker_repo }
962 __nexus_username__: { get_param: nexus_username }
963 __nexus_password__: { get_param: nexus_password }
964 __artifacts_version__: { get_param: artifacts_version }
965 __docker_version__: { get_param: docker_version }
966 __gerrit_branch__: { get_param: gerrit_branch }
967 __cloud_env__: { get_param: cloud_env }
971 # Create configuration files
973 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
974 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
975 echo "__nexus_username__" > /opt/config/nexus_username.txt
976 echo "__nexus_password__" > /opt/config/nexus_password.txt
977 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
978 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
979 echo "__docker_version__" > /opt/config/docker_version.txt
980 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
981 echo "__cloud_env__" > /opt/config/cloud_env.txt
983 # Download and run install script
984 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
986 chmod +x policy_install.sh
990 # APP-C instantiation
992 type: OS::Neutron::Port
994 network: { get_resource: oam_ecomp }
995 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.2.1}]
998 type: OS::Nova::Server
1000 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
1001 flavor: 4 GB General Purpose v1
1006 base: { get_param: vm_base_name }
1007 key_name: { get_resource: vm_key }
1009 - network: { get_param: public_net_id }
1010 - port: { get_resource: appc_private_port }
1011 user_data_format: RAW
1015 __nexus_repo__: { get_param: nexus_repo }
1016 __nexus_docker_repo__: { get_param: nexus_docker_repo }
1017 __nexus_username__: { get_param: nexus_username }
1018 __nexus_password__: { get_param: nexus_password }
1019 __dmaap_topic__: { get_param: dmaap_topic }
1020 __artifacts_version__: { get_param: artifacts_version }
1021 __docker_version__: { get_param: docker_version }
1022 __gerrit_branch__: { get_param: gerrit_branch }
1023 __cloud_env__: { get_param: cloud_env }
1027 # Create configuration files
1028 mkdir -p /opt/config
1029 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1030 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1031 echo "__nexus_username__" > /opt/config/nexus_username.txt
1032 echo "__nexus_password__" > /opt/config/nexus_password.txt
1033 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1034 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1035 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1036 echo "__docker_version__" > /opt/config/docker_version.txt
1037 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1038 echo "__cloud_env__" > /opt/config/cloud_env.txt
1040 # Download and run install script
1041 curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1043 chmod +x appc_install.sh