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