Merge "Docker images version v1.3.0 for Portal"
[demo.git] / heat / ONAP / onap_openstack_nofloat.yaml
1 ##########################################################################
2 #
3 #==================LICENSE_START==========================================
4
5 #
6 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
7 #
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
12 #
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.
18 #
19 #==================LICENSE_END============================================
20 #
21 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 #
23 ##########################################################################
24
25 heat_template_version: 2013-05-23
26
27 description: Heat template to install ONAP components
28
29 ##############
30 #            #
31 # PARAMETERS #
32 #            #
33 ##############
34
35 parameters:
36
37   ##############################################
38   #                                            #
39   # Parameters used across all ONAP components #
40   #                                            #
41   ##############################################
42   
43   public_net_id:
44     type: string
45     description: Public network for floating IP address allocation
46
47   ubuntu_1404_image:
48     type: string
49     description: Name of the Ubuntu 14.04 image
50
51   ubuntu_1604_image:
52     type: string
53     description: Name of the Ubuntu 16.04 image
54
55   centos_7_image:
56     type: string
57     description: Name of the CentOS 7 image
58
59   flavor_small:
60     type: string
61     description: Name of the Small Flavor supported by the cloud provider
62
63   flavor_medium:
64     type: string
65     description: Name of the Medium Flavor supported by the cloud provider
66
67   flavor_large:
68     type: string
69     description: Name of the Large Flavor supported by the cloud provider
70
71   flavor_xlarge:
72     type: string
73     description: Name of the Extra Large Flavor supported by the cloud provider
74
75   flavor_xxlarge:
76     type: string
77     description: Name of the Extra Extra Large Flavor supported by the cloud provider
78
79   security_group:
80     type: string
81     description: Security group used by DCAE GEN 2
82
83   vm_base_name:
84     type: string
85     description: Base name of ONAP VMs
86
87   key_name:
88     type: string
89     description: Public/Private key pair name
90
91   dcae_key_name:
92     type: string
93     description: Public/Private key pair name for DCAE GEN 2
94
95   pub_key:
96     type: string
97     description: Public key to be installed on the compute instance
98
99   dcae_pub_key:
100     type: string
101     description: Public key to be installed on the DCAE GEN 2 compute instance
102
103   nexus_repo:
104     type: string
105     description: Complete URL for the Nexus repository.
106
107   nexus_docker_repo:
108     type: string
109     description: Complete URL for the Nexus repository for docker images.
110
111   nexus_username:
112     type: string
113     description: Nexus Repository username
114
115   nexus_password:
116     type: string
117     description: Nexus Repository Password
118
119   artifacts_version:
120     type: string
121     description: Artifacts version of ONAP components
122
123   dmaap_topic:
124     type: string
125     description: DMaaP Topic name
126
127   openstack_tenant_id:
128     type: string
129     description: Openstack tenant ID
130
131   openstack_username:
132     type: string
133     description: Openstack username
134
135   openstack_auth_method:
136     type: string
137     description: Openstack authentication method (password VS. api-key)
138
139   openstack_api_key:
140     type: string
141     description: Openstack password or API Key
142
143   horizon_url:
144     type: string
145     description: URL of Openstack Horizon
146
147   keystone_url:
148     type: string
149     description: URL of Openstack Keystone
150
151   cloud_env:
152     type: string
153     description: Cloud Provider Name
154
155   ######################
156   #                    #
157   # Network parameters #
158   #                    #
159   ######################
160
161   external_dns:
162     type: string
163     description: External DNS for OAM ONAP network
164
165   oam_network_cidr:
166     type: string
167     description: CIDR of the OAM ONAP network
168
169   ### Private IP addresses ###
170
171   aai1_ip_addr:
172     type: string
173   aai2_ip_addr:
174     type: string
175   appc_ip_addr:
176     type: string
177   dcae_ip_addr:
178     type: string
179   dcae_coll_ip_addr:
180     type: string
181   dcae_db_ip_addr:
182     type: string
183   dcae_hdp1_ip_addr:
184     type: string
185   dcae_hdp2_ip_addr:
186     type: string
187   dcae_hdp3_ip_addr:
188     type: string
189   dns_ip_addr:
190     type: string
191   so_ip_addr:
192     type: string
193   mr_ip_addr:
194     type: string
195   policy_ip_addr:
196     type: string
197   portal_ip_addr:
198     type: string
199   robot_ip_addr:
200     type: string
201   sdc_ip_addr:
202     type: string
203   sdnc_ip_addr:
204     type: string
205   vid_ip_addr:
206     type: string
207   clamp_ip_addr:
208     type: string
209   openo_ip_addr:
210     type: string
211
212   ###########################
213   #                         #
214   # Parameters used by DCAE #
215   #                         #
216   ###########################
217
218   dcae_base_environment:
219     type: string
220     description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
221
222   dcae_zone:
223     type: string
224     description: DCAE Zone to use in VM names created by DCAE controller
225
226   dcae_state:
227     type: string
228     description: DCAE State to use in VM names created by DCAE controller
229
230   nexus_repo_root:
231     type: string
232     description: Root URL of Nexus repository
233
234   nexus_url_snapshot:
235     type: string
236     description: Snapshot of Maven repository for DCAE deployment
237
238   openstack_region:
239     type: string
240     description: Region where the DCAE controller will spin the VMs
241
242   gitlab_branch:
243     type: string
244     description: Branch of the Gitlab repository
245     
246   dcae_code_version:
247     type: string
248     description: DCAE Code Version Number
249
250   #####################
251   #                   #
252   # ONAP repositories #
253   #                   #
254   #####################
255
256   aai_repo:
257     type: string
258   appc_repo:
259     type: string
260   dcae_repo:
261     type: string
262   mr_repo:
263     type: string
264   so_repo:
265     type: string
266   policy_repo:
267     type: string
268   portal_repo:
269     type: string
270   robot_repo:
271     type: string
272   sdc_repo:
273     type: string
274   sdnc_repo:
275     type: string
276   vid_repo:
277     type: string
278   clamp_repo:
279     type: string
280   vnfsdk_repo:
281     type: string
282
283   ################################
284   #                              #
285   # Docker versions and branches #
286   #                              #
287   ################################
288
289   aai_docker:
290     type: string
291   appc_docker:
292     type: string
293   so_docker:
294     type: string
295   mr_docker:
296     type: string
297   dcae_docker:
298     type: string
299   policy_docker:
300     type: string
301   portal_docker:
302     type: string
303   robot_docker:
304     type: string
305   sdc_docker:
306     type: string
307   sdnc_docker:
308     type: string
309   vid_docker:
310     type: string
311   clamp_docker:
312     type: string
313   msb_docker:
314     type: string
315   mvim_docker:
316     type: string
317   vfc_docker:
318     type: string
319   uui_docker:
320     type: string
321   esr_docker:
322     type: string
323   dgbuilder_docker:
324     type: string
325   cli_docker:
326     type: string
327
328   aai_branch:
329     type: string
330   appc_branch:
331     type: string
332   so_branch:
333     type: string
334   mr_branch:
335     type: string
336   dcae_branch:
337     type: string
338   policy_branch:
339     type: string
340   portal_branch:
341     type: string
342   robot_branch:
343     type: string
344   sdc_branch:
345     type: string
346   sdnc_branch:
347     type: string
348   vid_branch:
349     type: string
350   clamp_branch:
351     type: string
352   vnfsdk_branch:
353     type: string
354
355
356 #############
357 #           #
358 # RESOURCES #
359 #           #
360 #############
361
362 resources:
363   random-str:
364     type: OS::Heat::RandomString
365     properties:
366       length: 4
367
368
369   # Public key used to access ONAP components
370   vm_key:
371     type: OS::Nova::KeyPair
372     properties:
373       name:
374         str_replace:
375           template: base_rand
376           params:
377             base: { get_param: key_name }
378             rand: { get_resource: random-str }
379       public_key: { get_param: pub_key }
380       save_private_key: false
381
382   # Public key used to access DCAE GEN 2
383   dcae_vm_key:
384     type: OS::Nova::KeyPair
385     properties:
386       name:
387         str_replace:
388           template: base_rand
389           params:
390             base: { get_param: dcae_key_name }
391             rand: { get_resource: random-str }
392       public_key: { get_param: dcae_pub_key }
393       save_private_key: true
394
395   # ONAP management private network
396   oam_onap:
397     type: OS::Neutron::Net
398     properties:
399       name:
400         str_replace:
401           template: oam_onap_rand
402           params:
403             rand: { get_resource: random-str }
404
405   oam_onap_subnet:
406     type: OS::Neutron::Subnet
407     properties:
408       name:
409         str_replace:
410           template: oam_onap_rand
411           params:
412             rand: { get_resource: random-str }
413       network_id: { get_resource: oam_onap }
414       cidr: { get_param: oam_network_cidr }
415
416
417   # DNS Server instantiation
418   dns_private_port:
419     type: OS::Neutron::Port
420     properties:
421       network: { get_resource: oam_onap }
422       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
423
424   dns_vm:
425     type: OS::Nova::Server
426     properties:
427       image: { get_param: ubuntu_1404_image }
428       flavor: { get_param: flavor_small }
429       name:
430         str_replace:
431           template: base-dns-server
432           params:
433             base: { get_param: vm_base_name }
434       key_name: { get_resource: vm_key }
435       networks:
436         - network: { get_param: public_net_id }
437         - port: { get_resource: dns_private_port }
438       user_data_format: RAW
439       user_data:
440         str_replace:
441           params:
442             __nexus_repo__: { get_param: nexus_repo }
443             __artifacts_version__: { get_param: artifacts_version }
444             __oam_network_cidr__: { get_param: oam_network_cidr }
445             __dns_ip_addr__: { get_param: dns_ip_addr }
446             __aai1_ip_addr__: { get_param: aai1_ip_addr }
447             __aai2_ip_addr__: { get_param: aai2_ip_addr }
448             __appc_ip_addr__: { get_param: appc_ip_addr }
449             __dcae_ip_addr__: { get_param: dcae_ip_addr }
450             __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
451             __so_ip_addr__: { get_param: so_ip_addr }
452             __mr_ip_addr__: { get_param: mr_ip_addr }
453             __policy_ip_addr__: { get_param: policy_ip_addr }
454             __portal_ip_addr__: { get_param: portal_ip_addr }
455             __robot_ip_addr__: { get_param: robot_ip_addr }
456             __sdc_ip_addr__: { get_param: sdc_ip_addr }
457             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
458             __vid_ip_addr__: { get_param: vid_ip_addr }
459             __clamp_ip_addr__: { get_param: clamp_ip_addr }
460             __openo_ip_addr__: { get_param: openo_ip_addr }
461             __cloud_env__: { get_param: cloud_env }
462             __external_dns__: { get_param: external_dns }
463           template: |
464             #!/bin/bash
465
466             # Create configuration files
467             mkdir -p /opt/config
468             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
469             echo "__cloud_env__" > /opt/config/cloud_env.txt
470             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
471             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
472             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
473             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
474             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
475             echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
476             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
477             echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
478             echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
479             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
480             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
481             echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
482             echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
483             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
484             echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
485             echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
486             echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
487             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
488             echo "__external_dns__" > /opt/config/external_dns.txt
489
490             # Download and run install script
491             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
492             cd /opt
493             chmod +x dns_install.sh
494             ./dns_install.sh
495
496
497   # A&AI instantiation (2 VMs)
498   aai1_private_port:
499     type: OS::Neutron::Port
500     properties:
501       network: { get_resource: oam_onap }
502       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
503
504   aai1_vm:
505     type: OS::Nova::Server
506     depends_on: aai2_vm
507     properties:
508       image: { get_param: ubuntu_1404_image }
509       flavor: { get_param: flavor_xlarge }
510       name:
511         str_replace:
512           template: base-aai-inst1
513           params:
514             base: { get_param: vm_base_name }      
515       key_name: { get_resource: vm_key }
516       networks:
517         - network: { get_param: public_net_id }
518         - port: { get_resource: aai1_private_port }
519       user_data_format: RAW
520       user_data:
521         str_replace:
522           params:
523             __nexus_repo__: { get_param: nexus_repo }
524             __nexus_docker_repo__: { get_param: nexus_docker_repo }
525             __nexus_username__: { get_param: nexus_username }
526             __nexus_password__: { get_param: nexus_password }
527             __dmaap_topic__: { get_param: dmaap_topic }
528             __artifacts_version__: { get_param: artifacts_version }
529             __dns_ip_addr__: { get_param: dns_ip_addr }
530             __aai_ip_addr__: { get_param: aai1_ip_addr }
531             __oam_network_cidr__: { get_param: oam_network_cidr }
532             __docker_version__: { get_param: aai_docker }
533             __gerrit_branch__: { get_param: aai_branch }
534             __cloud_env__: { get_param: cloud_env }
535             __external_dns__: { get_param: external_dns }
536             __aai_repo__: { get_param: aai_repo }
537           template: |
538             #!/bin/bash
539
540             # Create configuration files
541             mkdir -p /opt/config
542             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
543             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
544             echo "__nexus_username__" > /opt/config/nexus_username.txt
545             echo "__nexus_password__" > /opt/config/nexus_password.txt
546             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
547             echo "__aai_ip_addr__" > /opt/config/local_ip_addr.txt
548             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
549             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
550             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
551             echo "__docker_version__" > /opt/config/docker_version.txt
552             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
553             echo "aai_instance_1" > /opt/config/aai_instance.txt
554             echo "__cloud_env__" > /opt/config/cloud_env.txt
555             echo "__external_dns__" > /opt/config/external_dns.txt
556             echo "__aai_repo__" > /opt/config/remote_repo.txt
557
558             # Download and run install script
559             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
560             cd /opt
561             chmod +x aai_install.sh
562             ./aai_install.sh
563
564
565   aai2_private_port:
566     type: OS::Neutron::Port
567     properties:
568       network: { get_resource: oam_onap }
569       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
570
571   aai2_vm:
572     type: OS::Nova::Server
573     properties:
574       image: { get_param: ubuntu_1404_image }
575       flavor: { get_param: flavor_xlarge }
576       name:
577         str_replace:
578           template: base-aai-inst2
579           params:
580             base: { get_param: vm_base_name }      
581       key_name: { get_resource: vm_key }
582       networks:
583         - network: { get_param: public_net_id }
584         - port: { get_resource: aai2_private_port }
585       user_data_format: RAW
586       user_data:
587         str_replace:
588           params:
589             __nexus_repo__: { get_param: nexus_repo }
590             __nexus_docker_repo__: { get_param: nexus_docker_repo }
591             __nexus_username__: { get_param: nexus_username }
592             __nexus_password__: { get_param: nexus_password }
593             __dmaap_topic__: { get_param: dmaap_topic }
594             __artifacts_version__: { get_param: artifacts_version }
595             __dns_ip_addr__: { get_param: dns_ip_addr }
596             __aai_ip_addr__: { get_param: aai2_ip_addr }
597             __oam_network_cidr__: { get_param: oam_network_cidr }
598             __docker_version__: { get_param: aai_docker }
599             __gerrit_branch__: { get_param: aai_branch }
600             __cloud_env__: { get_param: cloud_env }
601             __external_dns__: { get_param: external_dns }
602             __aai_repo__: { get_param: aai_repo }
603           template: |
604             #!/bin/bash
605
606             # Create configuration files
607             mkdir -p /opt/config
608             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
609             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
610             echo "__nexus_username__" > /opt/config/nexus_username.txt
611             echo "__nexus_password__" > /opt/config/nexus_password.txt
612             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
613             echo "__aai_ip_addr__" > /opt/config/local_ip_addr.txt
614             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
615             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
616             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
617             echo "__docker_version__" > /opt/config/docker_version.txt
618             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
619             echo "aai_instance_2" > /opt/config/aai_instance.txt
620             echo "__cloud_env__" > /opt/config/cloud_env.txt
621             echo "__external_dns__" > /opt/config/external_dns.txt
622             echo "__aai_repo__" > /opt/config/remote_repo.txt
623
624             # Download and run install script
625             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
626             cd /opt
627             chmod +x aai_install.sh
628             ./aai_install.sh
629
630
631   # SO instantiation
632   so_private_port:
633     type: OS::Neutron::Port
634     properties:
635       network: { get_resource: oam_onap }
636       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
637
638   so_vm:
639     type: OS::Nova::Server
640     properties:
641       image: { get_param: ubuntu_1604_image }
642       flavor: { get_param: flavor_large }
643       name:
644         str_replace:
645           template: base-so
646           params:
647             base: { get_param: vm_base_name }      
648       key_name: { get_resource: vm_key }
649       networks:
650         - network: { get_param: public_net_id }
651         - port: { get_resource: so_private_port }
652       user_data_format: RAW
653       user_data:
654         str_replace:
655           params:
656             __nexus_repo__: { get_param: nexus_repo }
657             __nexus_docker_repo__: { get_param: nexus_docker_repo }
658             __nexus_username__: { get_param: nexus_username }
659             __nexus_password__: { get_param: nexus_password }
660             __openstack_username__: { get_param: openstack_username }
661             __openstack_tenant_id__: { get_param: openstack_tenant_id }
662             __openstack_api_key__: { get_param: openstack_api_key }
663             __openstack_region__: { get_param: openstack_region }
664             __keystone_url__: { get_param: keystone_url }
665             __dmaap_topic__: { get_param: dmaap_topic }
666             __artifacts_version__: { get_param: artifacts_version }
667             __dns_ip_addr__: { get_param: dns_ip_addr }
668             __so_ip_addr__: { get_param: so_ip_addr }
669             __oam_network_cidr__: { get_param: oam_network_cidr }
670             __docker_version__: { get_param: so_docker }
671             __gerrit_branch__: { get_param: so_branch }
672             __cloud_env__: { get_param: cloud_env }
673             __external_dns__: { get_param: external_dns }
674             __so_repo__: { get_param: so_repo }
675           template: |
676             #!/bin/bash
677
678             # Create configuration files
679             mkdir -p /opt/config
680             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
681             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
682             echo "__nexus_username__" > /opt/config/nexus_username.txt
683             echo "__nexus_password__" > /opt/config/nexus_password.txt
684             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
685             echo "__so_ip_addr__" > /opt/config/local_ip_addr.txt
686             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
687             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
688             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
689             echo "__openstack_username__" > /opt/config/openstack_username.txt
690             echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
691             echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
692             echo "__openstack_region__" > /opt/config/openstack_region.txt
693             echo "__keystone_url__" > /opt/config/keystone.txt
694             echo "__docker_version__" > /opt/config/docker_version.txt
695             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
696             echo "__cloud_env__" > /opt/config/cloud_env.txt
697             echo "__external_dns__" > /opt/config/external_dns.txt
698             echo "__so_repo__" > /opt/config/remote_repo.txt
699
700             # Download and run install script
701             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
702             cd /opt
703             chmod +x so_install.sh
704             ./so_install.sh
705
706
707   # Message Router instantiation
708   mrouter_private_port:
709     type: OS::Neutron::Port
710     properties:
711       network: { get_resource: oam_onap }
712       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
713
714   mrouter_vm:
715     type: OS::Nova::Server
716     properties:
717       image: { get_param: ubuntu_1404_image }
718       flavor: { get_param: flavor_large }
719       name:
720         str_replace: 
721           template: base-message-router
722           params:
723             base: { get_param: vm_base_name }
724       key_name: { get_resource: vm_key }
725       networks:
726         - network: { get_param: public_net_id }
727         - port: { get_resource: mrouter_private_port }
728       user_data_format: RAW
729       user_data:
730         str_replace:
731           params:
732             __nexus_repo__: { get_param: nexus_repo }
733             __nexus_docker_repo__: { get_param: nexus_docker_repo }
734             __nexus_username__: { get_param: nexus_username }
735             __nexus_password__: { get_param: nexus_password }
736             __artifacts_version__: { get_param: artifacts_version }
737             __mr_ip_addr__: { get_param: mr_ip_addr }
738             __dns_ip_addr__: { get_param: dns_ip_addr }
739             __oam_network_cidr__: { get_param: oam_network_cidr }
740             __gerrit_branch__: { get_param: mr_gerrit }
741             __cloud_env__: { get_param: cloud_env }
742             __external_dns__: { get_param: external_dns }
743             __mr_repo__: { get_param: mr_repo }
744           template: |
745             #!/bin/bash
746
747             # Create configuration files
748             mkdir -p /opt/config
749             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
750             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
751             echo "__nexus_username__" > /opt/config/nexus_username.txt
752             echo "__nexus_password__" > /opt/config/nexus_password.txt
753             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
754             echo "__mr_ip_addr__" > /opt/config/local_ip_addr.txt
755             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
756             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
757             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
758             echo "__cloud_env__" > /opt/config/cloud_env.txt
759             echo "__external_dns__" > /opt/config/external_dns.txt
760             echo "__mr_repo__" > /opt/config/remote_repo.txt
761
762             # Download and run install script
763             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
764             cd /opt
765             chmod +x mr_install.sh
766             ./mr_install.sh
767
768
769   # Robot Framework instantiation
770   robot_private_port:
771     type: OS::Neutron::Port
772     properties:
773       network: { get_resource: oam_onap }
774       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
775  
776   robot_vm:
777     type: OS::Nova::Server
778     properties:
779       image: { get_param: ubuntu_1604_image }
780       flavor: { get_param: flavor_medium }
781       name:
782         str_replace: 
783           template: base-robot
784           params:
785             base: { get_param: vm_base_name }
786       key_name: { get_resource: vm_key }
787       networks:
788         - network: { get_param: public_net_id }
789         - port: { get_resource: robot_private_port }
790       user_data_format: RAW
791       user_data:
792         str_replace:
793           params:
794             __nexus_repo__: { get_param: nexus_repo }
795             __nexus_docker_repo__: { get_param: nexus_docker_repo }
796             __nexus_username__: { get_param: nexus_username }
797             __nexus_password__: { get_param: nexus_password }
798             __network_name__: { get_attr: [oam_onap, name] }
799             __openstack_username__: { get_param: openstack_username }
800             __openstack_api_key__: { get_param : openstack_api_key }
801             __openstack_tenant_id__: { get_param: openstack_tenant_id }
802             __artifacts_version__: { get_param: artifacts_version }
803             __openstack_region__: { get_param: openstack_region }
804             __robot_ip_addr__: { get_param: robot_ip_addr }
805             __dns_ip_addr__: { get_param: dns_ip_addr }
806             __oam_network_cidr__: { get_param: oam_network_cidr }
807             __docker_version__: { get_param: robot_docker }
808             __gerrit_branch__: { get_param: robot_branch }
809             __keystone_url__: { get_param: keystone_url }
810             __aai1_ip_addr__: { get_param: aai1_ip_addr }
811             __aai2_ip_addr__: { get_param: aai2_ip_addr }
812             __appc_ip_addr__: { get_param: appc_ip_addr }
813             __dcae_ip_addr__: { get_param: dcae_ip_addr }
814             __so_ip_addr__: { get_param: so_ip_addr }
815             __mr_ip_addr__: { get_param: mr_ip_addr }
816             __policy_ip_addr__: { get_param: policy_ip_addr }
817             __portal_ip_addr__: { get_param: portal_ip_addr }
818             __sdc_ip_addr__: { get_param: sdc_ip_addr }
819             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
820             __vid_ip_addr__: { get_param: vid_ip_addr }
821             __clamp_ip_addr__: { get_param: clamp_ip_addr }
822             __openo_ip_addr__: { get_param: openo_ip_addr }
823             __cloud_env__: { get_param: cloud_env }
824             __external_dns__: { get_param: external_dns }
825             __vm_image_name__: { get_param: ubuntu_1404_image }
826             __vm_flavor__: { get_param: flavor_medium }
827             __robot_repo__: { get_param: robot_repo }
828           template: |
829             #!/bin/bash
830
831             # Create configuration files
832             mkdir -p /opt/config
833             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
834             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
835             echo "__nexus_username__" > /opt/config/nexus_username.txt
836             echo "__nexus_password__" > /opt/config/nexus_password.txt
837             echo "__network_name__" > /opt/config/network.txt
838             echo "__openstack_username__" > /opt/config/openstack_username.txt
839             echo "__openstack_api_key__" > /opt/config/openstack_password.txt
840             echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
841             echo "__openstack_region__" > /opt/config/region.txt
842             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
843             echo "__robot_ip_addr__" > /opt/config/local_ip_addr.txt
844             echo "__docker_version__" > /opt/config/docker_version.txt
845             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
846             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
847             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
848             echo "__keystone_url__" > /opt/config/keystone.txt
849             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
850             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
851             echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
852             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
853             echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
854             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
855             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
856             echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
857             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
858             echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
859             echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
860             echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
861             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
862             echo "__cloud_env__" > /opt/config/cloud_env.txt
863             echo "__external_dns__" > /opt/config/external_dns.txt
864             echo "__vm_image_name__" > /opt/config/vm_image_name.txt
865             echo "__vm_flavor__" > /opt/config/vm_flavor.txt
866             echo "__robot_repo__" > /opt/config/remote_repo.txt
867
868             # Download and run install script
869             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
870             cd /opt
871             chmod +x robot_install.sh
872             ./robot_install.sh
873
874
875   # VID instantiation
876   vid_private_port:
877     type: OS::Neutron::Port
878     properties:
879       network: { get_resource: oam_onap }
880       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
881
882   vid_vm:
883     type: OS::Nova::Server
884     properties:
885       image: { get_param: ubuntu_1404_image }
886       flavor: { get_param: flavor_medium }
887       name:
888         str_replace: 
889           template: base-vid
890           params:
891             base: { get_param: vm_base_name }
892       key_name: { get_resource: vm_key }
893       networks:
894         - network: { get_param: public_net_id }
895         - port: { get_resource: vid_private_port }
896       user_data_format: RAW
897       user_data:
898         str_replace:
899           params:
900             __nexus_repo__: { get_param: nexus_repo }
901             __nexus_docker_repo__: { get_param: nexus_docker_repo }
902             __nexus_username__: { get_param: nexus_username }
903             __nexus_password__: { get_param: nexus_password }
904             __artifacts_version__: { get_param: artifacts_version }
905             __vid_ip_addr__: { get_param: vid_ip_addr }
906             __dns_ip_addr__: { get_param: dns_ip_addr }
907             __oam_network_cidr__: { get_param: oam_network_cidr }
908             __docker_version__: { get_param: vid_docker }
909             __gerrit_branch__: { get_param: vid_branch }
910             __cloud_env__: { get_param: cloud_env }
911             __external_dns__: { get_param: external_dns }
912             __vid_repo__: { get_param: vid_repo }
913           template: |
914             #!/bin/bash
915
916             # Create configuration files
917             mkdir -p /opt/config
918             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
919             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
920             echo "__nexus_username__" > /opt/config/nexus_username.txt
921             echo "__nexus_password__" > /opt/config/nexus_password.txt
922             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
923             echo "__vid_ip_addr__" > /opt/config/local_ip_addr.txt
924             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
925             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
926             echo "__docker_version__" > /opt/config/docker_version.txt
927             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
928             echo "__cloud_env__" > /opt/config/cloud_env.txt
929             echo "__external_dns__" > /opt/config/external_dns.txt
930             echo "__vid_repo__" > /opt/config/remote_repo.txt
931
932             # Download and run install script
933             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
934             cd /opt
935             chmod +x vid_install.sh
936             ./vid_install.sh
937
938  
939   # SDN-C instantiation
940   sdnc_private_port:
941     type: OS::Neutron::Port
942     properties:
943       network: { get_resource: oam_onap }
944       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
945
946   sdnc_vm:
947     type: OS::Nova::Server
948     properties:
949       image: { get_param: ubuntu_1404_image }
950       flavor: { get_param: flavor_large }
951       name:
952         str_replace: 
953           template: base-sdnc
954           params:
955             base: { get_param: vm_base_name }
956       key_name: { get_resource: vm_key }
957       networks:
958         - network: { get_param: public_net_id }
959         - port: { get_resource: sdnc_private_port }
960       user_data_format: RAW
961       user_data:
962         str_replace:
963           params:
964             __nexus_repo__: { get_param: nexus_repo }
965             __nexus_docker_repo__: { get_param: nexus_docker_repo }
966             __nexus_username__: { get_param: nexus_username }
967             __nexus_password__: { get_param: nexus_password }
968             __artifacts_version__: { get_param: artifacts_version }
969             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
970             __dns_ip_addr__: { get_param: dns_ip_addr }
971             __oam_network_cidr__: { get_param: oam_network_cidr }
972             __docker_version__: { get_param: sdnc_docker }
973             __gerrit_branch__: { get_param: sdnc_branch }
974             __dgbuilder_docker__: { get_param: dgbuilder_docker }
975             __cloud_env__: { get_param: cloud_env }
976             __external_dns__: { get_param: external_dns }
977             __sdnc_repo__: { get_param: sdnc_repo }
978           template: |
979             #!/bin/bash
980
981             # Create configuration files
982             mkdir -p /opt/config
983             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
984             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
985             echo "__nexus_username__" > /opt/config/nexus_username.txt
986             echo "__nexus_password__" > /opt/config/nexus_password.txt
987             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
988             echo "__sdnc_ip_addr__" > /opt/config/local_ip_addr.txt
989             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
990             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
991             echo "__docker_version__" > /opt/config/docker_version.txt
992             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
993             echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
994             echo "__cloud_env__" > /opt/config/cloud_env.txt
995             echo "__external_dns__" > /opt/config/external_dns.txt
996             echo "__sdnc_repo__" > /opt/config/remote_repo.txt
997
998             # Download and run install script
999             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1000             cd /opt
1001             chmod +x sdnc_install.sh
1002             ./sdnc_install.sh
1003
1004
1005   # SDC instantiation
1006   sdc_private_port:
1007     type: OS::Neutron::Port
1008     properties:
1009       network: { get_resource: oam_onap }
1010       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1011
1012   sdc_volume_data:
1013     type: OS::Cinder::Volume
1014     properties:
1015       name: vol1-sdc-data
1016       size: 100
1017
1018   sdc_vm:
1019     type: OS::Nova::Server
1020     properties:
1021       image: { get_param: ubuntu_1604_image }
1022       flavor: { get_param: flavor_xlarge }
1023       name:
1024         str_replace:
1025           template: base-sdc
1026           params:
1027             base: { get_param: vm_base_name }
1028       key_name: { get_resource: vm_key }
1029       networks:
1030         - network: { get_param: public_net_id }
1031         - port: { get_resource: sdc_private_port }
1032       block_device_mapping:
1033         - device_name: /dev/vdb
1034           volume_id: { get_resource: sdc_volume_data }
1035       user_data_format: RAW
1036       user_data:
1037         str_replace:
1038           params:
1039             __nexus_repo__: { get_param: nexus_repo }
1040             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1041             __nexus_username__: { get_param: nexus_username }
1042             __nexus_password__: { get_param: nexus_password }
1043             __env_name__: { get_param: dmaap_topic }
1044             __artifacts_version__: { get_param: artifacts_version }
1045             __sdc_ip_addr__: { get_param: sdc_ip_addr }
1046             __dns_ip_addr__: { get_param: dns_ip_addr }
1047             __oam_network_cidr__: { get_param: oam_network_cidr }
1048             __mr_ip_addr__: { get_param: mr_ip_addr }
1049             __docker_version__: { get_param: sdc_docker }
1050             __gerrit_branch__: { get_param: sdc_branch }
1051             __cloud_env__: { get_param: cloud_env }
1052             __external_dns__: { get_param: external_dns }
1053             __sdc_repo__: { get_param: sdc_repo }
1054           template: |
1055             #!/bin/bash
1056
1057             # Create configuration files
1058             mkdir -p /opt/config
1059             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1060             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1061             echo "__nexus_username__" > /opt/config/nexus_username.txt
1062             echo "__nexus_password__" > /opt/config/nexus_password.txt
1063             echo "__env_name__" > /opt/config/env_name.txt
1064             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1065             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1066             echo "__sdc_ip_addr__" > /opt/config/local_ip_addr.txt
1067             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1068             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1069             echo "__docker_version__" > /opt/config/docker_version.txt
1070             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1071             echo "__cloud_env__" > /opt/config/cloud_env.txt
1072             echo "__external_dns__" > /opt/config/external_dns.txt
1073             echo "__sdc_repo__" > /opt/config/remote_repo.txt
1074
1075             # Download and run install script
1076             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1077             cd /opt
1078             chmod +x sdc_install.sh
1079             ./sdc_install.sh
1080
1081
1082   # PORTAL instantiation
1083   portal_private_port:
1084     type: OS::Neutron::Port
1085     properties:
1086       network: { get_resource: oam_onap }
1087       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1088
1089   portal_vm:
1090     type: OS::Nova::Server
1091     properties:
1092       image: { get_param: ubuntu_1404_image }
1093       flavor: { get_param: flavor_large }
1094       name:
1095         str_replace: 
1096           template: base-portal
1097           params:
1098             base: { get_param: vm_base_name }
1099       key_name: { get_resource: vm_key }
1100       networks:
1101         - network: { get_param: public_net_id }
1102         - port: { get_resource: portal_private_port }
1103       user_data_format: RAW
1104       user_data:
1105         str_replace:
1106           params:
1107             __nexus_repo__: { get_param: nexus_repo }
1108             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1109             __nexus_username__: { get_param: nexus_username }
1110             __nexus_password__: { get_param: nexus_password }
1111             __artifacts_version__: { get_param: artifacts_version }
1112             __portal_ip_addr__: { get_param: portal_ip_addr }
1113             __dns_ip_addr__: { get_param: dns_ip_addr }
1114             __oam_network_cidr__: { get_param: oam_network_cidr }
1115             __docker_version__: { get_param: portal_docker }
1116             __gerrit_branch__: { get_param: portal_branch }
1117             __cloud_env__: { get_param: cloud_env }
1118             __cli_docker__: { get_param: cli_docker }
1119             __external_dns__: { get_param: external_dns }
1120             __portal_repo__: { get_param: portal_repo }
1121           template: |
1122             #!/bin/bash
1123
1124             # Create configuration files
1125             mkdir -p /opt/config
1126             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1127             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1128             echo "__nexus_username__" > /opt/config/nexus_username.txt
1129             echo "__nexus_password__" > /opt/config/nexus_password.txt
1130             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1131             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1132             echo "__portal_ip_addr__" > /opt/config/local_ip_addr.txt
1133             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1134             echo "__docker_version__" > /opt/config/docker_version.txt
1135             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1136             echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1137             echo "__cloud_env__" > /opt/config/cloud_env.txt
1138             echo "__external_dns__" > /opt/config/external_dns.txt
1139             echo "__portal_repo__" > /opt/config/remote_repo.txt
1140
1141             # Download and run install script
1142             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1143             cd /opt
1144             chmod +x portal_install.sh
1145             ./portal_install.sh
1146
1147
1148   # DCAE Controller instantiation
1149 #  dcae_c_private_port:
1150 #    type: OS::Neutron::Port
1151 #    properties:
1152 #      network: { get_resource: oam_onap }
1153 #      fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1154
1155 #  dcae_c_vm:
1156 #    type: OS::Nova::Server
1157 #    properties:
1158 #      image: { get_param: ubuntu_1404_image }
1159 #      flavor: { get_param: flavor_medium }
1160 #      name:
1161 #        str_replace: 
1162 #          template: base-dcae-controller
1163 #          params:
1164 #            base: { get_param: vm_base_name }
1165 #      key_name: { get_resource: vm_key }
1166 #      networks:
1167 #        - network: { get_param: public_net_id }
1168 #        - port: { get_resource: dcae_c_private_port }
1169 #      user_data_format: RAW
1170 #      user_data:
1171 #        str_replace:
1172 #          params:
1173 #            __nexus_repo__: { get_param: nexus_repo }
1174 #            __nexus_docker_repo__: { get_param: nexus_docker_repo }
1175 #            __nexus_username__: { get_param: nexus_username }
1176 #            __nexus_password__: { get_param: nexus_password }
1177 #            __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
1178 #            __gitlab_branch__: { get_param: gitlab_branch }
1179 #            __dns_ip_addr__: { get_param: dns_ip_addr }
1180 #            __oam_network_cidr__: { get_param: oam_network_cidr }
1181 #            __dcae_zone__: { get_param: dcae_zone }
1182 #            __dcae_state__: { get_param: dcae_state }
1183 #            __artifacts_version__: { get_param: artifacts_version }
1184 #            __tenant_id__: { get_param: openstack_tenant_id }
1185 #            __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1186 #            __openstack_user__: { get_param: openstack_username }
1187 #            __openstack_password__: { get_param: openstack_api_key }
1188 #            __openstack_auth_method__: { get_param: openstack_auth_method }
1189 #            __key_name__: { get_param: key_name }
1190 #            __rand_str__: { get_resource: random-str }
1191 #            __pub_key__: { get_param: pub_key }
1192 #            __nexus_repo_root__: { get_param: nexus_repo_root }
1193 #            __openstack_region__: { get_param: openstack_region }
1194 #            __horizon_url__: { get_param: horizon_url }
1195 #            __keystone_url__: { get_param: keystone_url }
1196 #            __docker_version__: { get_param: dcae_docker }
1197 #            __gerrit_branch__: { get_param: dcae_branch }
1198 #            __dcae_code_version__: { get_param: dcae_code_version }
1199 #            __cloud_env__: { get_param: cloud_env }
1200 #            __public_net_id__: { get_param: public_net_id }
1201 #            __dcae_base_environment__: { get_param: dcae_base_environment }
1202 #            __dcae_ip_addr__: { get_param: dcae_ip_addr }
1203 #            __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1204 #            __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
1205 #            __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
1206 #            __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
1207 #            __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
1208 #            __external_dns__: { get_param: external_dns }
1209 #            __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1210 #            __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1211 #            __flavor_small__: { get_param: flavor_small }
1212 #            __flavor_medium__: { get_param: flavor_medium }
1213 #            __flavor_large__: { get_param: flavor_large }
1214 #            __flavor_xlarge__: { get_param: flavor_xlarge }
1215 #            __dcae_repo__: { get_param: dcae_repo }
1216 #            __mr_repo__: { get_param: mr_repo }
1217 #          template: |
1218             #!/bin/bash
1219
1220             # Create configuration files
1221 #            mkdir -p /opt/config
1222 #            echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1223 #            echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1224 #            echo "__nexus_username__" > /opt/config/nexus_username.txt
1225 #            echo "__nexus_password__" > /opt/config/nexus_password.txt
1226 #            echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1227 #            echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1228 #            echo "__docker_version__" > /opt/config/docker_version.txt
1229 #            echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1230 #            echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1231 #            echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1232 #            echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1233 #            echo "__dcae_state__" > /opt/config/dcae_state.txt
1234 #            echo "__tenant_id__" > /opt/config/tenant_id.txt
1235 #            echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1236 #            echo "__openstack_user__" > /opt/config/openstack_user.txt
1237 #            echo "__openstack_password__" > /opt/config/openstack_password.txt
1238 #            echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1239 #            echo "__key_name__" > /opt/config/key_name.txt
1240 #            echo "__rand_str__" > /opt/config/rand_str.txt
1241 #            echo "__pub_key__" > /opt/config/pub_key.txt
1242 #            echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1243 #            echo "__openstack_region__" > /opt/config/openstack_region.txt
1244 #            echo "__horizon_url__" > /opt/config/horizon_url.txt
1245 #            echo "__keystone_url__" > /opt/config/keystone_url.txt
1246 #            echo "__cloud_env__" > /opt/config/cloud_env.txt
1247 #            echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1248 #            echo "__public_net_id__" > /opt/config/public_net_id.txt
1249 #            echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1250 #            echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1251 #            echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1252 #            echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1253 #            echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1254 #            echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1255 #            echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1256 #            echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1257 #            echo "__external_dns__" > /opt/config/external_dns.txt
1258 #            echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1259 #            echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1260 #            echo "__flavor_small__" > /opt/config/flavor_small.txt
1261 #            echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1262 #            echo "__flavor_large__" > /opt/config/flavor_large.txt
1263 #            echo "__flavor_xlarge__" > /opt/config/flavor_xlarge.txt
1264 #            echo "__dcae_repo__" > /opt/config/remote_repo.txt
1265 #            echo "__mr_repo__" > /opt/config/mr_repo.txt
1266
1267             # Download and run install script
1268 #            curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1269 #            cd /opt
1270 #            chmod +x dcae_install.sh
1271 #            ./dcae_install.sh
1272
1273
1274   # Policy Engine instantiation
1275   policy_private_port:
1276     type: OS::Neutron::Port
1277     properties:
1278       network: { get_resource: oam_onap }
1279       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1280
1281   policy_vm:
1282     type: OS::Nova::Server
1283     properties:
1284       image: { get_param: ubuntu_1404_image }
1285       flavor: { get_param: flavor_xlarge }
1286       name:
1287         str_replace: 
1288           template: base-policy
1289           params:
1290             base: { get_param: vm_base_name }
1291       key_name: { get_resource: vm_key }
1292       networks:
1293         - network: { get_param: public_net_id }
1294         - port: { get_resource: policy_private_port }
1295       user_data_format: RAW
1296       user_data:
1297         str_replace:
1298           params:
1299             __nexus_repo__: { get_param: nexus_repo }
1300             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1301             __nexus_username__: { get_param: nexus_username }
1302             __nexus_password__: { get_param: nexus_password }
1303             __artifacts_version__: { get_param: artifacts_version }
1304             __policy_ip_addr__: { get_param: policy_ip_addr }
1305             __dns_ip_addr__: { get_param: dns_ip_addr }
1306             __oam_network_cidr__: { get_param: oam_network_cidr }
1307             __docker_version__: { get_param: policy_docker }
1308             __gerrit_branch__: { get_param: policy_branch }
1309             __cloud_env__: { get_param: cloud_env }
1310             __external_dns__: { get_param: external_dns }
1311             __policy_repo__: { get_param: policy_repo }
1312           template: |
1313             #!/bin/bash
1314
1315             # Create configuration files
1316             mkdir -p /opt/config
1317             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1318             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1319             echo "__nexus_username__" > /opt/config/nexus_username.txt
1320             echo "__nexus_password__" > /opt/config/nexus_password.txt
1321             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1322             echo "__policy_ip_addr__" > /opt/config/local_ip_addr.txt
1323             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1324             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1325             echo "__docker_version__" > /opt/config/docker_version.txt
1326             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1327             echo "__cloud_env__" > /opt/config/cloud_env.txt
1328             echo "__external_dns__" > /opt/config/external_dns.txt
1329             echo "__policy_repo__" > /opt/config/remote_repo.txt
1330
1331             # Download and run install script
1332             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1333             cd /opt
1334             chmod +x policy_install.sh
1335             ./policy_install.sh
1336
1337
1338   # APP-C instantiation
1339   appc_private_port:
1340     type: OS::Neutron::Port
1341     properties:
1342       network: { get_resource: oam_onap }
1343       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1344
1345   appc_vm:
1346     type: OS::Nova::Server
1347     properties:
1348       image: { get_param: ubuntu_1404_image }
1349       flavor: { get_param: flavor_large }
1350       name:
1351         str_replace: 
1352           template: base-appc
1353           params:
1354             base: { get_param: vm_base_name }
1355       key_name: { get_resource: vm_key }
1356       networks:
1357         - network: { get_param: public_net_id }
1358         - port: { get_resource: appc_private_port }
1359       user_data_format: RAW
1360       user_data:
1361         str_replace:
1362           params:
1363             __nexus_repo__: { get_param: nexus_repo }
1364             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1365             __nexus_username__: { get_param: nexus_username }
1366             __nexus_password__: { get_param: nexus_password }
1367             __dmaap_topic__: { get_param: dmaap_topic }
1368             __artifacts_version__: { get_param: artifacts_version }
1369             __appc_ip_addr__: { get_param: appc_ip_addr }
1370             __dns_ip_addr__: { get_param: dns_ip_addr }
1371             __oam_network_cidr__: { get_param: oam_network_cidr }
1372             __docker_version__: { get_param: appc_docker }
1373             __gerrit_branch__: { get_param: appc_branch }
1374             __dgbuilder_docker__: { get_param: dgbuilder_docker }
1375             __cloud_env__: { get_param: cloud_env }
1376             __external_dns__: { get_param: external_dns }
1377             __appc_repo__: { get_param: appc_repo }
1378           template: |
1379             #!/bin/bash
1380
1381             # Create configuration files
1382             mkdir -p /opt/config
1383             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1384             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1385             echo "__nexus_username__" > /opt/config/nexus_username.txt
1386             echo "__nexus_password__" > /opt/config/nexus_password.txt
1387             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1388             echo "__appc_ip_addr__" > /opt/config/local_ip_addr.txt
1389             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1390             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1391             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1392             echo "__docker_version__" > /opt/config/docker_version.txt
1393             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1394             echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1395             echo "__cloud_env__" > /opt/config/cloud_env.txt
1396             echo "__external_dns__" > /opt/config/external_dns.txt
1397             echo "__appc_repo__" > /opt/config/remote_repo.txt
1398
1399             # Download and run install script
1400             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1401             cd /opt
1402             chmod +x appc_install.sh
1403             ./appc_install.sh
1404
1405
1406   # CLAMP instantiation
1407   clamp_private_port:
1408     type: OS::Neutron::Port
1409     properties:
1410       network: { get_resource: oam_onap }
1411       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1412
1413   clamp_vm:
1414     type: OS::Nova::Server
1415     properties:
1416       image: { get_param: ubuntu_1604_image }
1417       flavor: { get_param: flavor_medium }
1418       name:
1419         str_replace:
1420           template: base-clamp
1421           params:
1422             base: { get_param: vm_base_name }      
1423       key_name: { get_resource: vm_key }
1424       networks:
1425         - network: { get_param: public_net_id }
1426         - port: { get_resource: clamp_private_port }
1427       user_data_format: RAW
1428       user_data:
1429         str_replace:
1430           params:
1431             __nexus_repo__: { get_param: nexus_repo }
1432             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1433             __nexus_username__: { get_param: nexus_username }
1434             __nexus_password__: { get_param: nexus_password }
1435             __openstack_username__: { get_param: openstack_username }
1436             __openstack_tenant_id__: { get_param: openstack_tenant_id }
1437             __openstack_api_key__: { get_param: openstack_api_key }
1438             __openstack_region__: { get_param: openstack_region }
1439             __keystone_url__: { get_param: keystone_url }
1440             __dmaap_topic__: { get_param: dmaap_topic }
1441             __artifacts_version__: { get_param: artifacts_version }
1442             __dns_ip_addr__: { get_param: dns_ip_addr }
1443             __clamp_ip_addr__: { get_param: clamp_ip_addr }
1444             __oam_network_cidr__: { get_param: oam_network_cidr }
1445             __docker_version__: { get_param: clamp_docker }
1446             __gerrit_branch__: { get_param: clamp_branch }
1447             __cloud_env__: { get_param: cloud_env }
1448             __external_dns__: { get_param: external_dns }
1449             __clamp_repo__: { get_param: clamp_repo }
1450           template: |
1451             #!/bin/bash
1452
1453             # Create configuration files
1454             mkdir -p /opt/config
1455             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1456             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1457             echo "__nexus_username__" > /opt/config/nexus_username.txt
1458             echo "__nexus_password__" > /opt/config/nexus_password.txt
1459             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1460             echo "__clamp_ip_addr__" > /opt/config/local_ip_addr.txt
1461             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1462             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1463             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1464             echo "__openstack_username__" > /opt/config/openstack_username.txt
1465             echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1466             echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1467             echo "__openstack_region__" > /opt/config/openstack_region.txt
1468             echo "__keystone_url__" > /opt/config/keystone.txt
1469             echo "__docker_version__" > /opt/config/docker_version.txt
1470             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1471             echo "__cloud_env__" > /opt/config/cloud_env.txt
1472             echo "__external_dns__" > /opt/config/external_dns.txt
1473             echo "__clamp_repo__" > /opt/config/remote_repo.txt
1474
1475             # Download and run install script
1476             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1477             cd /opt
1478             chmod +x clamp_install.sh
1479             ./clamp_install.sh
1480
1481
1482   # OPEN-O VM instantiation
1483   openo_private_port:
1484     type: OS::Neutron::Port
1485     properties:
1486       network: { get_resource: oam_onap }
1487       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1488
1489   openo_vm:
1490     type: OS::Nova::Server
1491     properties:
1492       image: { get_param: ubuntu_1604_image }
1493       flavor: { get_param: flavor_xxlarge }
1494       name:
1495         str_replace:
1496           template: base-openo-server
1497           params:
1498             base: { get_param: vm_base_name }
1499       key_name: { get_resource: vm_key }
1500       networks:
1501         - network: { get_param: public_net_id }
1502         - port: { get_resource: openo_private_port }
1503       user_data_format: RAW
1504       user_data:
1505         str_replace:
1506           params:
1507             __nexus_repo__: { get_param: nexus_repo }
1508             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1509             __nexus_username__: { get_param: nexus_username }
1510             __nexus_password__: { get_param: nexus_password }
1511             __artifacts_version__: { get_param: artifacts_version }
1512             __dns_ip_addr__: { get_param: dns_ip_addr }
1513             __oam_network_cidr__: { get_param: oam_network_cidr }
1514             __aai1_ip_addr__: { get_param: aai1_ip_addr }
1515             __aai2_ip_addr__: { get_param: aai2_ip_addr }
1516             __appc_ip_addr__: { get_param: appc_ip_addr }
1517             __dcae_ip_addr__: { get_param: dcae_ip_addr }
1518             __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
1519             __so_ip_addr__: { get_param: so_ip_addr }
1520             __mr_ip_addr__: { get_param: mr_ip_addr }
1521             __policy_ip_addr__: { get_param: policy_ip_addr }
1522             __portal_ip_addr__: { get_param: portal_ip_addr }
1523             __robot_ip_addr__: { get_param: robot_ip_addr }
1524             __sdc_ip_addr__: { get_param: sdc_ip_addr }
1525             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1526             __vid_ip_addr__: { get_param: vid_ip_addr }
1527             __clamp_ip_addr__: { get_param: clamp_ip_addr }
1528             __openo_ip_addr__: { get_param: openo_ip_addr }
1529             __cloud_env__: { get_param: cloud_env }
1530             __external_dns__: { get_param: external_dns }
1531             __vnfsdk_branch__: { get_param: vnfsdk_branch }
1532             __msb_docker__: { get_param: msb_docker }
1533             __mvim_docker__: { get_param: mvim_docker }
1534             __vfc_docker__: { get_param: vfc_docker }
1535             __uui_docker__: { get_param: uui_docker }
1536             __esr_docker__: { get_param: esr_docker }
1537             __vnfsdk_repo__: { get_param: vnfsdk_repo }
1538           template: |
1539             #!/bin/bash
1540
1541             # Create configuration files
1542             mkdir -p /opt/config
1543             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1544             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1545             echo "__nexus_username__" > /opt/config/nexus_username.txt
1546             echo "__nexus_password__" > /opt/config/nexus_password.txt
1547             echo "__cloud_env__" > /opt/config/cloud_env.txt
1548             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1549             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1550             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1551             echo "__external_dns__" > /opt/config/external_dns.txt
1552             echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1553             echo "__msb_docker__" > /opt/config/msb_docker.txt
1554             echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1555             echo "__vfc_docker__" > /opt/config/vfc_docker.txt
1556             echo "__uui_docker__" > /opt/config/uui_docker.txt
1557             echo "__esr_docker__" > /opt/config/esr_docker.txt
1558             echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1559
1560             # Create env file with the IP address of all ONAP components
1561             echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1562             echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1563             echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1564             echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1565             echo "export DCAE_COLL_IP=__dcae_coll_ip_addr__" >> /opt/config/onap_ips.txt
1566             echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1567             echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1568             echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1569             echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1570             echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1571             echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1572             echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1573             echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1574             echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1575             echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1576
1577             # Download and run install script
1578             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1579             cd /opt
1580             chmod +x openo_install.sh
1581             ./openo_install.sh
1582
1583
1584   # DCAE GEN 2 Controller instantiation
1585   dcae_c_private_port:
1586     type: OS::Neutron::Port
1587     properties:
1588       network: { get_resource: oam_onap }
1589       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1590
1591   dcae_c_vm:
1592     type: OS::Nova::Server
1593     properties:
1594       image: { get_param: ubuntu_1604_image }
1595       flavor: { get_param: flavor_medium }
1596       name:
1597         str_replace: 
1598           template: base-dcae-controller
1599           params:
1600             base: { get_param: vm_base_name }
1601       key_name: { get_resource: dcae_vm_key }
1602       networks:
1603         - network: { get_param: public_net_id }
1604         - port: { get_resource: dcae_c_private_port }
1605       user_data_format: RAW
1606       user_data:
1607         str_replace:
1608           params:
1609             __nexus_repo__: { get_param: nexus_repo }
1610             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1611             __nexus_username__: { get_param: nexus_username }
1612             __nexus_password__: { get_param: nexus_password }
1613             __dns_ip_addr__: { get_param: dns_ip_addr }
1614             __dcae_zone__: { get_param: dcae_zone }
1615             __artifacts_version__: { get_param: artifacts_version }
1616             __tenant_id__: { get_param: openstack_tenant_id }
1617             __openstack_private_network_name__: { get_attr: [oam_onap, name] }
1618             __openstack_user__: { get_param: openstack_username }
1619             __openstack_password__: { get_param: openstack_api_key }
1620             __key_name__: { get_param: dcae_key_name }
1621             __pub_key__: { get_param: dcae_pub_key }
1622             __private_key__: { get_attr: [ dcae_vm_key, private_key ] }
1623             __openstack_region__: { get_param: openstack_region }
1624             __keystone_url__: { get_param: keystone_url }
1625             __docker_version__: { get_param: dcae_docker }
1626             __dcae_repo__: { get_param: dcae_repo }
1627             __gerrit_branch__: { get_param: dcae_branch }
1628             __cloud_env__: { get_param: cloud_env }
1629             __public_net_id__: { get_param: public_net_id }
1630             __dcae_ip_addr__: { get_param: dcae_ip_addr }
1631             __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1632             __external_dns__: { get_param: external_dns }
1633             __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1634             __centos_7_image__: { get_param: centos_7_image }
1635             __security_group__ : { get_param: security_group }
1636             __flavor_medium__: { get_param: flavor_medium }
1637             __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1638             __rand_str__: { get_resource: random-str }
1639
1640           template: |
1641             #!/bin/bash
1642
1643             # Create configuration files
1644             mkdir -p /opt/config
1645             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1646             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1647             echo "__nexus_username__" > /opt/config/nexus_username.txt
1648             echo "__nexus_password__" > /opt/config/nexus_password.txt
1649             echo "__docker_version__" > /opt/config/docker_version.txt
1650             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1651             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1652             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1653             echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1654             echo "__tenant_id__" > /opt/config/tenant_id.txt
1655             echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1656             echo "__openstack_user__" > /opt/config/openstack_user.txt
1657             echo "__openstack_password__" > /opt/config/openstack_password.txt
1658             echo "__key_name__" > /opt/config/key_name.txt
1659             echo "__pub_key__" > /opt/config/pub_key.txt
1660             echo "__private_key__" > /opt/config/priv_key
1661             echo "__openstack_region__" > /opt/config/openstack_region.txt
1662             echo "__keystone_url__" > /opt/config/keystone_url.txt
1663             echo "__cloud_env__" > /opt/config/cloud_env.txt
1664             echo "__public_net_id__" > /opt/config/public_net_id.txt
1665             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1666             echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1667             echo "__external_dns__" > /opt/config/external_dns.txt
1668             echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1669             echo "__centos_7_image__" > /opt/config/centos_7_image.txt
1670             echo "__security_group__" > /opt/config/security_group.txt
1671             echo "__flavor_medium__" > /opt/config/flavor_medium.txt
1672             echo "__dcae_repo__" > /opt/config/remote_repo.txt
1673             echo "__mac_addr__" > /opt/config/mac_addr.txt
1674             echo "__rand_str__" > /opt/config/rand_str.txt
1675
1676             # Download and run install script
1677             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1678             cd /opt
1679             chmod +x dcae2_install.sh
1680             ./dcae2_install.sh