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