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.openecomp.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
245 chmod +x dns_install.sh
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
267 flavor: 15 GB Compute v1
272 base: { get_param: vm_base_name }
273 key_name: { get_resource: vm_key }
274 block_device_mapping:
275 - volume_id: { get_resource: aai_volume }
278 - network: { get_param: public_net_id }
279 - port: { get_resource: aai_private_port }
280 user_data_format: RAW
284 __nexus_repo__: { get_param: nexus_repo }
285 __nexus_docker_repo__: { get_param: nexus_docker_repo }
286 __nexus_username__: { get_param: nexus_username }
287 __nexus_password__: { get_param: nexus_password }
288 __dmaap_topic__: { get_param: dmaap_topic }
289 __artifacts_version__: { get_param: artifacts_version }
290 __docker_version__: { get_param: docker_version }
291 __cloud_env__: { get_param: cloud_env }
295 # Create configuration files
297 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
298 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
299 echo "__nexus_username__" > /opt/config/nexus_username.txt
300 echo "__nexus_password__" > /opt/config/nexus_password.txt
301 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
302 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
303 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
304 echo "__docker_version__" > /opt/config/docker_version.txt
305 echo "__cloud_env__" > /opt/config/cloud_env.txt
307 # Download and run install script
308 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
310 chmod +x aai_install.sh
316 type: OS::Neutron::Port
318 network: { get_resource: oam_ecomp }
319 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.5.1}]
322 type: OS::Nova::Server
324 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
325 flavor: 4 GB General Purpose v1
330 base: { get_param: vm_base_name }
331 key_name: { get_resource: vm_key }
333 - network: { get_param: public_net_id }
334 - port: { get_resource: mso_private_port }
335 user_data_format: RAW
339 __nexus_repo__: { get_param: nexus_repo }
340 __nexus_docker_repo__: { get_param: nexus_docker_repo }
341 __nexus_username__: { get_param: nexus_username }
342 __nexus_password__: { get_param: nexus_password }
343 __openstack_username__: { get_param: openstack_username }
344 __openstack_tenant_id__: { get_param: openstack_tenant_id }
345 __openstack_api_key__: { get_param: openstack_api_key }
346 __dmaap_topic__: { get_param: dmaap_topic }
347 __artifacts_version__: { get_param: artifacts_version }
348 __docker_version__: { get_param: docker_version }
349 __gerrit_branch__: { get_param: gerrit_branch }
350 __cloud_env__: { get_param: cloud_env }
354 # Create configuration files
356 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
357 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
358 echo "__nexus_username__" > /opt/config/nexus_username.txt
359 echo "__nexus_password__" > /opt/config/nexus_password.txt
360 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
361 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
362 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
363 echo "__openstack_username__" > /opt/config/openstack_username.txt
364 echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
365 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
366 echo "__docker_version__" > /opt/config/docker_version.txt
367 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
368 echo "__cloud_env__" > /opt/config/cloud_env.txt
370 # Download and run install script
371 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mso_install.sh -o /opt/mso_install.sh
373 chmod +x mso_install.sh
377 # Message Router instantiation
378 mrouter_private_port:
379 type: OS::Neutron::Port
381 network: { get_resource: oam_ecomp }
382 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.11.1}]
385 type: OS::Nova::Server
387 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
391 template: base-message-router
393 base: { get_param: vm_base_name }
394 key_name: { get_resource: vm_key }
396 - network: { get_param: public_net_id }
397 - port: { get_resource: mrouter_private_port }
398 user_data_format: RAW
402 __nexus_repo__: { get_param: nexus_repo }
403 __nexus_docker_repo__: { get_param: nexus_docker_repo }
404 __nexus_username__: { get_param: nexus_username }
405 __nexus_password__: { get_param: nexus_password }
406 __artifacts_version__: { get_param: artifacts_version }
407 __gerrit_branch__: { get_param: gerrit_branch }
408 __cloud_env__: { get_param: cloud_env }
412 # Create configuration files
414 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
415 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
416 echo "__nexus_username__" > /opt/config/nexus_username.txt
417 echo "__nexus_password__" > /opt/config/nexus_password.txt
418 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
419 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
420 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
421 echo "__cloud_env__" > /opt/config/cloud_env.txt
423 # Download and run install script
424 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
426 chmod +x mr_install.sh
430 # RobotE2E instantiation
432 type: OS::Neutron::Port
434 network: { get_resource: oam_ecomp }
435 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.10.1}]
438 type: OS::Nova::Server
440 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
441 flavor: 2 GB General Purpose v1
446 base: { get_param: vm_base_name }
447 key_name: { get_resource: vm_key }
449 - network: { get_param: public_net_id }
450 - port: { get_resource: robot_private_port }
451 user_data_format: RAW
455 __nexus_repo__: { get_param: nexus_repo }
456 __nexus_docker_repo__: { get_param: nexus_docker_repo }
457 __nexus_username__: { get_param: nexus_username }
458 __nexus_password__: { get_param: nexus_password }
459 __network_name__: { get_attr: [oam_ecomp, name] }
460 __openstack_username__: { get_param: openstack_username }
461 __openstack_api_key__: { get_param : openstack_api_key }
462 __openstack_password__: { get_param: openstack_password }
463 __artifacts_version__: { get_param: artifacts_version }
464 __openstack_region__: { get_param: openstack_region }
465 __docker_version__: { get_param: docker_version }
466 __gerrit_branch__: { get_param: gerrit_branch }
467 __cloud_env__: { get_param: cloud_env }
471 # Create configuration files
473 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
474 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
475 echo "__nexus_username__" > /opt/config/nexus_username.txt
476 echo "__nexus_password__" > /opt/config/nexus_password.txt
477 echo "__network_name__" > /opt/config/network.txt
478 echo "__openstack_username__" > /opt/config/openstack_username.txt
479 echo "__openstack_password__" > /opt/config/openstack_password.txt
480 echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
481 echo "__openstack_region__" > /opt/config/region.txt
482 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
483 echo "__docker_version__" > /opt/config/docker_version.txt
484 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
485 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
486 echo "__cloud_env__" > /opt/config/cloud_env.txt
488 # Download and run install script
489 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
491 chmod +x robot_install.sh
497 type: OS::Neutron::Port
499 network: { get_resource: oam_ecomp }
500 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.8.1}]
503 type: OS::Nova::Server
505 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
506 flavor: 2 GB General Purpose v1
511 base: { get_param: vm_base_name }
512 key_name: { get_resource: vm_key }
514 - network: { get_param: public_net_id }
515 - port: { get_resource: vid_private_port }
516 user_data_format: RAW
520 __nexus_repo__: { get_param: nexus_repo }
521 __nexus_docker_repo__: { get_param: nexus_docker_repo }
522 __nexus_username__: { get_param: nexus_username }
523 __nexus_password__: { get_param: nexus_password }
524 __artifacts_version__: { get_param: artifacts_version }
525 __docker_version__: { get_param: docker_version }
526 __gerrit_branch__: { get_param: gerrit_branch }
527 __cloud_env__: { get_param: cloud_env }
531 # Create configuration files
533 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
534 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
535 echo "__nexus_username__" > /opt/config/nexus_username.txt
536 echo "__nexus_password__" > /opt/config/nexus_password.txt
537 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
538 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
539 echo "__docker_version__" > /opt/config/docker_version.txt
540 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
541 echo "__cloud_env__" > /opt/config/cloud_env.txt
543 # Download and run install script
544 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
546 chmod +x vid_install.sh
550 # SDN-C instantiation
552 type: OS::Neutron::Port
554 network: { get_resource: oam_ecomp }
555 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.7.1}]
558 type: OS::Nova::Server
560 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
561 flavor: 4 GB General Purpose v1
566 base: { get_param: vm_base_name }
567 key_name: { get_resource: vm_key }
569 - network: { get_param: public_net_id }
570 - port: { get_resource: sdnc_private_port }
571 user_data_format: RAW
575 __nexus_repo__: { get_param: nexus_repo }
576 __nexus_docker_repo__: { get_param: nexus_docker_repo }
577 __nexus_username__: { get_param: nexus_username }
578 __nexus_password__: { get_param: nexus_password }
579 __artifacts_version__: { get_param: artifacts_version }
580 __docker_version__: { get_param: docker_version }
581 __gerrit_branch__: { get_param: gerrit_branch }
582 __cloud_env__: { get_param: cloud_env }
586 # Create configuration files
588 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
589 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
590 echo "__nexus_username__" > /opt/config/nexus_username.txt
591 echo "__nexus_password__" > /opt/config/nexus_password.txt
592 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
593 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
594 echo "__docker_version__" > /opt/config/docker_version.txt
595 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
596 echo "__cloud_env__" > /opt/config/cloud_env.txt
598 # Download and run install script
599 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
601 chmod +x sdnc_install.sh
607 type: OS::Neutron::Port
609 network: { get_resource: oam_ecomp }
610 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.3.1}]
613 type: OS::Cinder::Volume
618 image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
621 type: OS::Cinder::Volume
627 sdc_volume_attachment:
628 type: OS::Cinder::VolumeAttachment
630 volume_id: { get_resource: sdc_volume_data }
631 instance_uuid: { get_resource: sdc_vm }
632 mountpoint: /dev/xvdb
635 type: OS::Nova::Server
637 flavor: 15 GB Compute v1
642 base: { get_param: vm_base_name }
643 key_name: { get_resource: vm_key }
644 block_device_mapping:
645 - volume_id: { get_resource: sdc_volume_local }
648 - network: { get_param: public_net_id }
649 - port: { get_resource: sdc_private_port }
650 user_data_format: RAW
654 __nexus_repo__: { get_param: nexus_repo }
655 __nexus_docker_repo__: { get_param: nexus_docker_repo }
656 __nexus_username__: { get_param: nexus_username }
657 __nexus_password__: { get_param: nexus_password }
658 __env_name__: { get_param: dmaap_topic }
659 __artifacts_version__: { get_param: artifacts_version }
660 __docker_version__: { get_param: docker_version }
661 __gerrit_branch__: { get_param: gerrit_branch }
662 __cloud_env__: { get_param: cloud_env }
666 # Create configuration files
668 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
669 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
670 echo "__nexus_username__" > /opt/config/nexus_username.txt
671 echo "__nexus_password__" > /opt/config/nexus_password.txt
672 echo "__env_name__" > /opt/config/env_name.txt
673 echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
674 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
675 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
676 echo "__docker_version__" > /opt/config/docker_version.txt
677 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
678 echo "__cloud_env__" > /opt/config/cloud_env.txt
680 # Download and run install script
681 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/asdc_install.sh -o /opt/asdc_install.sh
683 chmod +x asdc_install.sh
687 # PORTAL instantiation
689 type: OS::Neutron::Port
691 network: { get_resource: oam_ecomp }
692 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.9.1}]
695 type: OS::Cinder::Volume
700 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
703 type: OS::Nova::Server
705 flavor: 15 GB Memory v1
708 template: base-portal
710 base: { get_param: vm_base_name }
711 key_name: { get_resource: vm_key }
712 block_device_mapping:
713 - volume_id: { get_resource: portal_volume }
716 - network: { get_param: public_net_id }
717 - port: { get_resource: portal_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 }
733 # Create configuration files
735 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
736 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
737 echo "__nexus_username__" > /opt/config/nexus_username.txt
738 echo "__nexus_password__" > /opt/config/nexus_password.txt
739 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
740 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
741 echo "__docker_version__" > /opt/config/docker_version.txt
742 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
743 echo "__cloud_env__" > /opt/config/cloud_env.txt
745 # Download and run install script
746 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
748 chmod +x portal_install.sh
752 # DCAE Controller instantiation
754 type: OS::Neutron::Port
756 network: { get_resource: oam_ecomp }
757 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.4.1}]
759 type: OS::Nova::Server
761 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
762 flavor: 8 GB General Purpose v1
765 template: base-dcae-controller
767 base: { get_param: vm_base_name }
768 key_name: { get_resource: vm_key }
770 - network: { get_param: public_net_id }
771 - port: { get_resource: dcae_c_private_port }
772 user_data_format: RAW
776 __nexus_repo__: { get_param: nexus_repo }
777 __nexus_docker_repo__: { get_param: nexus_docker_repo }
778 __nexus_username__: { get_param: nexus_username }
779 __nexus_password__: { get_param: nexus_password }
780 __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
781 __gitlab_branch__: { get_param: gitlab_branch }
782 __dcae_zone__: { get_param: dcae_zone }
783 __dcae_state__: { get_param: dcae_state }
784 __artifacts_version__: { get_param: artifacts_version }
785 __tenant_id__: { get_param: openstack_tenant_id }
786 __openstack_private_network_name__: { get_attr: [oam_ecomp, name] }
787 __openstack_user__: { get_param: openstack_username }
788 __openstack_password__: { get_param: openstack_api_key }
789 __openstack_auth_method__: { get_param: openstack_auth_method }
790 __key_name__: { get_param: key_name }
791 __rand_str__: { get_resource: random-str }
792 __pub_key__: { get_param: pub_key }
793 __nexus_repo_root__: { get_param: nexus_repo_root }
794 __openstack_region__: { get_param: openstack_region }
795 __docker_version__: { get_param: docker_version }
796 __gerrit_branch__: { get_param: gerrit_branch }
797 __cloud_env__: { get_param: cloud_env }
798 __dcae_code_version__: { get_param: dcae_code_version }
799 __public_net_id__: { get_param: public_net_id }
800 __dcae_base_environment__: { get_param: dcae_base_environment }
801 __dcae_ip_addr__: { get_param: dcae_ip_addr }
802 __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
803 __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
804 __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
805 __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
806 __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
810 # Create configuration files
812 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
813 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
814 echo "__nexus_username__" > /opt/config/nexus_username.txt
815 echo "__nexus_password__" > /opt/config/nexus_password.txt
816 echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
817 echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
818 echo "__docker_version__" > /opt/config/docker_version.txt
819 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
820 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
821 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
822 echo "__dcae_zone__" > /opt/config/dcae_zone.txt
823 echo "__dcae_state__" > /opt/config/dcae_state.txt
824 echo "__tenant_id__" > /opt/config/tenant_id.txt
825 echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
826 echo "__openstack_user__" > /opt/config/openstack_user.txt
827 echo "__openstack_password__" > /opt/config/openstack_password.txt
828 echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
829 echo "__key_name__" > /opt/config/key_name.txt
830 echo "__rand_str__" > /opt/config/rand_str.txt
831 echo "__pub_key__" > /opt/config/pub_key.txt
832 echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
833 echo "__openstack_region__" > /opt/config/openstack_region.txt
834 echo "https://mycloud.rackspace.com/cloud" > /opt/config/horizon_url.txt
835 echo "https://identity.api.rackspacecloud.com/v2.0" > /opt/config/keystone_url.txt
836 echo "__cloud_env__" > /opt/config/cloud_env.txt
837 echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
838 echo "__public_net_id__" > /opt/config/public_net_id.txt
839 echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
840 echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
841 echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
842 echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
843 echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
844 echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
845 echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
847 # Download and run install script
848 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
850 chmod +x dcae_install.sh
854 # Policy engine instantiation
856 type: OS::Neutron::Port
858 network: { get_resource: oam_ecomp }
859 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.6.1}]
862 type: OS::Cinder::Volume
867 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
870 type: OS::Nova::Server
872 flavor: 15 GB Compute v1
875 template: base-policy
877 base: { get_param: vm_base_name }
878 key_name: { get_resource: vm_key }
879 block_device_mapping:
880 - volume_id: { get_resource: policy_volume }
883 - network: { get_param: public_net_id }
884 - port: { get_resource: policy_private_port }
885 user_data_format: RAW
889 __nexus_repo__: { get_param: nexus_repo }
890 __nexus_docker_repo__: { get_param: nexus_docker_repo }
891 __nexus_username__: { get_param: nexus_username }
892 __nexus_password__: { get_param: nexus_password }
893 __artifacts_version__: { get_param: artifacts_version }
894 __docker_version__: { get_param: docker_version }
895 __gerrit_branch__: { get_param: gerrit_branch }
896 __cloud_env__: { get_param: cloud_env }
900 # Create configuration files
902 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
903 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
904 echo "__nexus_username__" > /opt/config/nexus_username.txt
905 echo "__nexus_password__" > /opt/config/nexus_password.txt
906 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
907 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
908 echo "__docker_version__" > /opt/config/docker_version.txt
909 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
910 echo "__cloud_env__" > /opt/config/cloud_env.txt
912 # Download and run install script
913 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
915 chmod +x policy_install.sh
919 # APP-C instantiation
921 type: OS::Neutron::Port
923 network: { get_resource: oam_ecomp }
924 fixed_ips: [{"subnet": { get_resource: oam_ecomp_subnet }, "ip_address": 10.0.2.1}]
927 type: OS::Nova::Server
929 image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
930 flavor: 4 GB General Purpose v1
935 base: { get_param: vm_base_name }
936 key_name: { get_resource: vm_key }
938 - network: { get_param: public_net_id }
939 - port: { get_resource: appc_private_port }
940 user_data_format: RAW
944 __nexus_repo__: { get_param: nexus_repo }
945 __nexus_docker_repo__: { get_param: nexus_docker_repo }
946 __nexus_username__: { get_param: nexus_username }
947 __nexus_password__: { get_param: nexus_password }
948 __dmaap_topic__: { get_param: dmaap_topic }
949 __artifacts_version__: { get_param: artifacts_version }
950 __docker_version__: { get_param: docker_version }
951 __gerrit_branch__: { get_param: gerrit_branch }
952 __cloud_env__: { get_param: cloud_env }
956 # Create configuration files
958 echo "__nexus_repo__" > /opt/config/nexus_repo.txt
959 echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
960 echo "__nexus_username__" > /opt/config/nexus_username.txt
961 echo "__nexus_password__" > /opt/config/nexus_password.txt
962 echo "__artifacts_version__" > /opt/config/artifacts_version.txt
963 echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
964 echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
965 echo "__docker_version__" > /opt/config/docker_version.txt
966 echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
967 echo "__cloud_env__" > /opt/config/cloud_env.txt
969 # Download and run install script
970 curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
972 chmod +x appc_install.sh