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