Install AAF with Heat (WIP)
[demo.git] / heat / ONAP / onap_openstack.yaml
1 ##########################################################################
2 #
3 #==================LICENSE_START==========================================
4 #
5 #
6 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
7 #
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #        http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19 #==================LICENSE_END============================================
20 #
21 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 #
23 ##########################################################################
24
25 heat_template_version: 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: The ID of the Public network for floating IP address allocation
46
47   public_net_name:
48     type: string
49     description: The name of the Public network referred by public_net_id
50
51   ubuntu_1404_image:
52     type: string
53     description: Name of the Ubuntu 14.04 image
54
55   ubuntu_1604_image:
56     type: string
57     description: Name of the Ubuntu 16.04 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   vm_base_name:
80     type: string
81     description: Base name of ONAP VMs
82
83   key_name:
84     type: string
85     description: Public/Private key pair name
86
87   pub_key:
88     type: string
89     description: Public key to be installed on the compute instance
90
91   nexus_repo:
92     type: string
93     description: Complete URL for the Nexus repository.
94
95   nexus_docker_repo:
96     type: string
97     description: Complete URL for the Nexus repository for docker images.
98
99   nexus_username:
100     type: string
101     description: Nexus Repository username
102
103   nexus_password:
104     type: string
105     description: Nexus Repository Password
106
107   artifacts_version:
108     type: string
109     description: Artifacts version of ONAP components
110
111   dmaap_topic:
112     type: string
113     description: DMaaP Topic name
114
115   openstack_tenant_id:
116     type: string
117     description: OpenStack tenant ID
118
119   openstack_tenant_name:
120     type: string
121     description: OpenStack tenant name (matching with the openstack_tenant_id)
122
123   openstack_username:
124     type: string
125     description: OpenStack username
126
127   openstack_auth_method:
128     type: string
129     description: OpenStack authentication method (password VS. api-key)
130
131   openstack_api_key:
132     type: string
133     description: OpenStack password or API Key
134
135   horizon_url:
136     type: string
137     description: URL of OpenStack Horizon
138
139   keystone_url:
140     type: string
141     description: URL of OpenStack Keystone
142
143   cloud_env:
144     type: string
145     description: Cloud Provider Name in lower case
146
147   openstack_region:
148     type: string
149     description: Region where the DCAE controller will spin the VMs
150
151   ######################
152   #                    #
153   # Network parameters #
154   #                    #
155   ######################
156
157   dns_list:
158     type: comma_delimited_list
159     description: List of External DNS for OAM ONAP network
160
161   external_dns:
162     type: string
163     description: Public IP of the external DNS for ONAP network
164
165   dns_forwarder:
166     type: string
167     description: the forwarder address for setting up ONAP's private DNS server
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   dns_ip_addr:
183     type: string
184   so_ip_addr:
185     type: string
186   mr_ip_addr:
187     type: string
188   policy_ip_addr:
189     type: string
190   portal_ip_addr:
191     type: string
192   robot_ip_addr:
193     type: string
194   sdc_ip_addr:
195     type: string
196   sdnc_ip_addr:
197     type: string
198   vid_ip_addr:
199     type: string
200   clamp_ip_addr:
201     type: string
202   openo_ip_addr:
203     type: string
204   music_ip_addr:
205     type: string
206   oof_ip_addr:
207     type: string
208   aaf_ip_addr:
209     type: string
210   nbi_ip_addr:
211     type: string
212
213   ###########################
214   #                         #
215   # Parameters used by DCAE #
216   #                         #
217   ###########################
218
219   dcae_deployment_profile:
220     type: string
221     description: DCAE deployment profile.  Currently supported profiles R1, R2MVP.
222
223   dnsaas_config_enabled:
224     type: string
225     description: whether the DNSaaS configuration section is enabled
226
227   dnsaas_region:
228     type: string
229     description: the region of the cloud instance providing the Designate DNS as a Service
230
231   dnsaas_keystone_url:
232     type: string
233     description: the keystone URL of the cloud instance providing the Designate DNS as a Service
234
235   dnsaas_username:
236     type: string
237     description: the username of the cloud instance providing the Designate DNS as a Service
238
239   dnsaas_password:
240     type: string
241     description: the password of the cloud instance providing the Designate DNS as a Service
242
243   dnsaas_tenant_name:
244     type: string
245     description: the name of the tenant in the cloud instance providing the Designate DNS as a Service
246
247   dcae_keystone_url:
248     type: string
249     description: the keystone URL for DCAE to use (via MultiCloud)
250
251   dcae_private_key:
252     type: string
253     description: the private key of the key-apir used between the DCAE bootstrap container and DCAE VMs
254
255   dcae_public_key:
256     type: string
257     description: the prublic key of the key-apir used between the DCAE bootstrap container and DCAE VMs
258
259   dcae_centos_7_image:
260     type: string
261     description: the id/name of the CentOS 7 VM imange
262
263   dcae_domain:
264     type: string
265     description: the top level domain to register DCAE VMs (the zone will be random-str.dcae_domain)
266
267   #####################
268   #                   #
269   # ONAP repositories #
270   #                   #
271   #####################
272
273   aai_repo:
274     type: string
275   appc_repo:
276     type: string
277   mr_repo:
278     type: string
279   so_repo:
280     type: string
281   policy_repo:
282     type: string
283   portal_repo:
284     type: string
285   robot_repo:
286     type: string
287   sdc_repo:
288     type: string
289   sdnc_repo:
290     type: string
291   vid_repo:
292     type: string
293   clamp_repo:
294     type: string
295   vnfsdk_repo:
296     type: string
297   music_repo:
298     type: string
299   nbi_repo:
300     type: string
301
302   ################################
303   #                              #
304   # Docker versions and branches #
305   #                              #
306   ################################
307
308   aai_docker:
309     type: string
310   aai_sparky_docker:
311     type: string
312   appc_docker:
313     type: string
314   so_docker:
315     type: string
316
317   dcae_docker:
318     type: string
319     default: latest
320   dcae_snmptrap_docker:
321     type: string
322     default: latest
323     description: Docker image version for onap/org.dcaegen2.collectors.snmptrap 
324   dcae_ves_docker:
325     type: string
326     default: latest
327     description: Docker image version for onap/org.dcaegen2.collectors.ves.vescollector
328   dcae_bootstrap_docker:
329     type: string
330     default: latest
331     description: Docker image version for onap/org.dcaegen2.deployments.bootstrap
332   dcae_cm_docker:
333     type: string
334     default: latest
335     description: Docker image version for onap/org.dcaegen2.deployments.cm-container
336   dcae_k8sbootstrap_docker:
337     type: string
338     default: latest
339     description: Docker image version for onap/org.dcaegen2.deployments.k8s-bootstrap-container
340   dcae_redisc_docker:
341     type: string
342     default: latest
343     description: Docker image version for onap/org.dcaegen2.deployments.redis-cluster-container
344   dcae_tca_docker:
345     type: string
346     default: latest
347     description: Docker image version for onap/org.dcaegen2.deployments.tca-cdap-container
348   dcae_cb_docker:
349     type: string
350     default: latest
351     description: Docker image version for onap/org.dcaegen2.platform.cdapbroker
352   dcae_cbs_docker:
353     type: string
354     default: latest
355     description: Docker image version for onap/org.dcaegen2.platform.configbinding
356   dcae_dh_docker:
357     type: string
358     default: latest
359     description: Docker image version for onap/org.dcaegen2.platform.deployment-handler
360   dcae_inv_docker:
361     type: string
362     default: latest
363     description: Docker image version for onap/org.dcaegen2.platform.inventory-api
364   dcae_ph_docker:
365     type: string
366     default: latest
367     description: Docker image version for onap/org.dcaegen2.platform.deployment-handler
368   dcae_sch_docker:
369     type: string
370     default: latest
371     description: Docker image version for onap/org.dcaegen2.platform.servicechange-handler
372   dcae_heartbeat_docker:
373     type: string
374     default: latest
375     description: Docker image version for onap/org.dcaegen2.services.heartbeat
376   dcae_prh_docker:
377     type: string
378     default: latest
379     description: Docker image version for onap/org.dcaegen2.services.prh.prh-app-server  
380   holmes_em_docker:
381     type: string
382     default: latest
383     description: Docker image version for onap/holmes/engine-management
384   holmes_rm_docker:
385     type: string
386     default: latest
387     description: Docker image version for onap/holmes/rule-management
388
389   policy_docker:
390     type: string
391   portal_docker:
392     type: string
393   robot_docker:
394     type: string
395   sdc_docker:
396     type: string
397   sdc_wfd_docker:
398     type: string
399   sdnc_docker:
400     type: string
401   vid_docker:
402     type: string
403   clamp_docker:
404     type: string
405   msb_docker:
406     type: string
407   mvim_docker:
408     type: string
409   uui_docker:
410     type: string
411   esr_docker:
412     type: string
413   dgbuilder_docker:
414     type: string
415   cli_docker:
416     type: string
417   music_docker:
418     type: string
419   oof_docker:
420     type: string
421   aaf_docker:
422     type: string
423   nbi_docker:
424     type: string
425
426   vfc_nokia_docker:
427     type: string
428   vfc_nokiav2_docker:
429     type: string
430   vfc_ztevnfmdriver_docker:
431     type: string
432   vfc_ztesdncdriver_docker:
433     type: string
434   vfc_vnfres_docker:
435     type: string
436   vfc_vnfmgr_docker:
437     type: string
438   vfc_vnflcm_docker:
439     type: string
440   vfc_resmanagement_docker:
441     type: string
442   vfc_nslcm_docker:
443     type: string
444   vfc_huawei_docker:
445     type: string
446   vfc_jujudriver_docker:
447     type: string
448   vfc_gvnfmdriver_docker:
449     type: string
450   vfc_emsdriver_docker:
451     type: string
452   vfc_catalog_docker:
453     type: string
454   vfc_wfengine_mgrservice_docker:
455     type: string
456   vfc_wfengine_activiti_docker:
457     type: string
458   vfc_multivimproxy_docker:
459     type: string
460
461   cbam_username:
462     type: string
463   cbam_password:
464     type: string
465   cbam_ip:
466     type: string
467
468   aai_branch:
469     type: string
470   appc_branch:
471     type: string
472   so_branch:
473     type: string
474   mr_branch:
475     type: string
476   policy_branch:
477     type: string
478   portal_branch:
479     type: string
480   robot_branch:
481     type: string
482   sdc_branch:
483     type: string
484   sdnc_branch:
485     type: string
486   vid_branch:
487     type: string
488   clamp_branch:
489     type: string
490   vnfsdk_branch:
491     type: string
492   music_branch:
493     type: string
494   nbi_branch:
495     type: string
496
497 #############
498 #           #
499 # RESOURCES #
500 #           #
501 #############
502
503 resources:
504   random-str:
505     type: OS::Heat::RandomString
506     properties:
507       length: 4
508
509   # Public key used to access ONAP components
510   vm_key:
511     type: OS::Nova::KeyPair
512     properties:
513       name:
514         str_replace:
515           template: base_rand
516           params:
517             base: { get_param: key_name }
518             rand: { get_resource: random-str }
519       public_key: { get_param: pub_key }
520       save_private_key: false
521
522
523   # ONAP security group
524   onap_sg:
525     type: OS::Neutron::SecurityGroup
526     properties:
527       name:
528         str_replace:
529           template: base_rand
530           params:
531             base: onap_sg
532             rand: { get_resource: random-str }
533       description: security group used by ONAP
534       rules:
535         # All egress traffic
536         - direction: egress
537           ethertype: IPv4
538         - direction: egress
539           ethertype: IPv6
540         # ingress traffic
541         # ICMP
542         - protocol: icmp
543         - protocol: udp
544           port_range_min: 1
545           port_range_max: 65535
546         - protocol: tcp
547           port_range_min: 1
548           port_range_max: 65535
549
550
551
552   # ONAP management private network
553   oam_onap:
554     type: OS::Neutron::Net
555     properties:
556       name:
557         str_replace:
558           template: oam_onap_rand
559           params:
560             rand: { get_resource: random-str }
561
562   oam_onap_subnet:
563     type: OS::Neutron::Subnet
564     properties:
565       name:
566         str_replace:
567           template: oam_onap_rand
568           params:
569             rand: { get_resource: random-str }
570       network_id: { get_resource: oam_onap }
571       cidr: { get_param: oam_network_cidr }
572       dns_nameservers: { get_param: dns_list }
573
574   router:
575     type: OS::Neutron::Router
576     properties:
577       external_gateway_info:
578         network: { get_param: public_net_id }
579
580   router_interface:
581     type: OS::Neutron::RouterInterface
582     properties:
583       router_id: { get_resource: router }
584       subnet_id: { get_resource: oam_onap_subnet }
585
586
587   # DNS Server instantiation
588   dns_private_port:
589     type: OS::Neutron::Port
590     properties:
591       network: { get_resource: oam_onap }
592       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
593       security_groups:
594       - { get_resource: onap_sg }
595
596   dns_floating_ip:
597     type: OS::Neutron::FloatingIP
598     properties:
599       floating_network_id: { get_param: public_net_id }
600       port_id: { get_resource: dns_private_port }
601
602   dns_vm:
603     type: OS::Nova::Server
604     properties:
605       image: { get_param: ubuntu_1404_image }
606       flavor: { get_param: flavor_small }
607       name:
608         str_replace:
609           template: base-dns-server
610           params:
611             base: { get_param: vm_base_name }
612       key_name: { get_resource: vm_key }
613       networks:
614         - port: { get_resource: dns_private_port }
615       user_data_format: RAW
616       user_data:
617         str_replace:
618           params:
619             __nexus_repo__: { get_param: nexus_repo }
620             __artifacts_version__: { get_param: artifacts_version }
621             __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
622             __dns_ip_addr__: { get_param: dns_ip_addr }
623             __aai1_ip_addr__: { get_param: aai1_ip_addr }
624             __aai2_ip_addr__: { get_param: aai2_ip_addr }
625             __appc_ip_addr__: { get_param: appc_ip_addr }
626             __dcae_ip_addr__: { get_param: dcae_ip_addr }
627             __so_ip_addr__: { get_param: so_ip_addr }
628             __mr_ip_addr__: { get_param: mr_ip_addr }
629             __policy_ip_addr__: { get_param: policy_ip_addr }
630             __portal_ip_addr__: { get_param: portal_ip_addr }
631             __robot_ip_addr__: { get_param: robot_ip_addr }
632             __sdc_ip_addr__: { get_param: sdc_ip_addr }
633             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
634             __vid_ip_addr__: { get_param: vid_ip_addr }
635             __clamp_ip_addr__: { get_param: clamp_ip_addr }
636             __openo_ip_addr__: { get_param: openo_ip_addr }
637             __music_ip_addr__: { get_param: music_ip_addr }
638             __oof_ip_addr__: { get_param: oof_ip_addr }
639             __aaf_ip_addr__: { get_param: aaf_ip_addr }
640             __nbi_ip_addr__: { get_param: nbi_ip_addr }
641             __cloud_env__: { get_param: cloud_env }
642             __external_dns__: { get_param: external_dns }
643             __dns_forwarder__: { get_param: dns_forwarder }
644           template: |
645             #!/bin/bash
646
647             # Create configuration files
648             mkdir -p /opt/config
649             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
650             echo "__cloud_env__" > /opt/config/cloud_env.txt
651             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
652             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
653             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
654             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
655             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
656             echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
657             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
658             echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
659             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
660             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
661             echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
662             echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
663             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
664             echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
665             echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
666             echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
667             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
668             echo "__music_ip_addr__" > /opt/config/music_ip_addr.txt
669             echo "__oof_ip_addr__" > /opt/config/oof_ip_addr.txt
670             echo "__aaf_ip_addr__" > /opt/config/aaf_ip_addr.txt
671             echo "__nbi_ip_addr__" > /opt/config/nbi_ip_addr.txt
672             echo "__external_dns__" > /opt/config/external_dns.txt
673             echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
674
675             # Download and run install script
676             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
677             cd /opt
678             chmod +x dns_install.sh
679             ./dns_install.sh
680
681
682   # A&AI instantiation (2 VMs)
683   aai1_private_port:
684     type: OS::Neutron::Port
685     properties:
686       network: { get_resource: oam_onap }
687       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
688       security_groups:
689       - { get_resource: onap_sg }
690
691   aai1_floating_ip:
692     type: OS::Neutron::FloatingIP
693     properties:
694       floating_network_id: { get_param: public_net_id }
695       port_id: { get_resource: aai1_private_port }
696
697   aai1_vm:
698     type: OS::Nova::Server
699     depends_on: aai2_vm
700     properties:
701       image: { get_param: ubuntu_1404_image }
702       flavor: { get_param: flavor_xlarge }
703       name:
704         str_replace:
705           template: base-aai-inst1
706           params:
707             base: { get_param: vm_base_name }
708       key_name: { get_resource: vm_key }
709       networks:
710         - port: { get_resource: aai1_private_port }
711       user_data_format: RAW
712       user_data:
713         str_replace:
714           params:
715             __nexus_repo__: { get_param: nexus_repo }
716             __nexus_docker_repo__: { get_param: nexus_docker_repo }
717             __nexus_username__: { get_param: nexus_username }
718             __nexus_password__: { get_param: nexus_password }
719             __dmaap_topic__: { get_param: dmaap_topic }
720             __artifacts_version__: { get_param: artifacts_version }
721             __dns_ip_addr__: { get_param: dns_ip_addr }
722             __docker_version__: { get_param: aai_docker }
723             __aai_sparky_docker__ : { get_param: aai_sparky_docker }
724             __gerrit_branch__: { get_param: aai_branch }
725             __cloud_env__: { get_param: cloud_env }
726             __external_dns__: { get_param: external_dns }
727             __aai_repo__: { get_param: aai_repo }
728           template: |
729             #!/bin/bash
730
731             # Create configuration files
732             mkdir -p /opt/config
733             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
734             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
735             echo "__nexus_username__" > /opt/config/nexus_username.txt
736             echo "__nexus_password__" > /opt/config/nexus_password.txt
737             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
738             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
739             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
740             echo "__docker_version__" > /opt/config/docker_version.txt
741             echo "__aai_sparky_docker__" > /opt/config/sparky_version.txt
742             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
743             echo "aai_instance_1" > /opt/config/aai_instance.txt
744             echo "__cloud_env__" > /opt/config/cloud_env.txt
745             echo "__external_dns__" > /opt/config/external_dns.txt
746             echo "__aai_repo__" > /opt/config/remote_repo.txt
747
748             # Download and run install script
749             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
750             cd /opt
751             chmod +x aai_install.sh
752             ./aai_install.sh
753
754
755   aai2_private_port:
756     type: OS::Neutron::Port
757     properties:
758       network: { get_resource: oam_onap }
759       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
760       security_groups:
761       - { get_resource: onap_sg }
762
763   aai2_floating_ip:
764     type: OS::Neutron::FloatingIP
765     properties:
766       floating_network_id: { get_param: public_net_id }
767       port_id: { get_resource: aai2_private_port }
768
769   aai2_vm:
770     type: OS::Nova::Server
771     properties:
772       image: { get_param: ubuntu_1404_image }
773       flavor: { get_param: flavor_xlarge }
774       name:
775         str_replace:
776           template: base-aai-inst2
777           params:
778             base: { get_param: vm_base_name }
779       key_name: { get_resource: vm_key }
780       networks:
781         - port: { get_resource: aai2_private_port }
782       user_data_format: RAW
783       user_data:
784         str_replace:
785           params:
786             __nexus_repo__: { get_param: nexus_repo }
787             __nexus_docker_repo__: { get_param: nexus_docker_repo }
788             __nexus_username__: { get_param: nexus_username }
789             __nexus_password__: { get_param: nexus_password }
790             __dmaap_topic__: { get_param: dmaap_topic }
791             __artifacts_version__: { get_param: artifacts_version }
792             __dns_ip_addr__: { get_param: dns_ip_addr }
793             __docker_version__: { get_param: aai_docker }
794             __gerrit_branch__: { get_param: aai_branch }
795             __cloud_env__: { get_param: cloud_env }
796             __external_dns__: { get_param: external_dns }
797             __aai_repo__: { get_param: aai_repo }
798           template: |
799             #!/bin/bash
800
801             # Create configuration files
802             mkdir -p /opt/config
803             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
804             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
805             echo "__nexus_username__" > /opt/config/nexus_username.txt
806             echo "__nexus_password__" > /opt/config/nexus_password.txt
807             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
808             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
809             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
810             echo "__docker_version__" > /opt/config/docker_version.txt
811             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
812             echo "aai_instance_2" > /opt/config/aai_instance.txt
813             echo "__cloud_env__" > /opt/config/cloud_env.txt
814             echo "__external_dns__" > /opt/config/external_dns.txt
815             echo "__aai_repo__" > /opt/config/remote_repo.txt
816
817             # Download and run install script
818             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
819             cd /opt
820             chmod +x aai_install.sh
821             ./aai_install.sh
822
823
824   # SO instantiation
825   so_private_port:
826     type: OS::Neutron::Port
827     properties:
828       network: { get_resource: oam_onap }
829       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
830       security_groups:
831       - { get_resource: onap_sg }
832
833   so_floating_ip:
834     type: OS::Neutron::FloatingIP
835     properties:
836       floating_network_id: { get_param: public_net_id }
837       port_id: { get_resource: so_private_port }
838
839   so_vm:
840     type: OS::Nova::Server
841     properties:
842       image: { get_param: ubuntu_1604_image }
843       flavor: { get_param: flavor_large }
844       name:
845         str_replace:
846           template: base-so
847           params:
848             base: { get_param: vm_base_name }
849       key_name: { get_resource: vm_key }
850       networks:
851         - port: { get_resource: so_private_port }
852       user_data_format: RAW
853       user_data:
854         str_replace:
855           params:
856             __nexus_repo__: { get_param: nexus_repo }
857             __nexus_docker_repo__: { get_param: nexus_docker_repo }
858             __nexus_username__: { get_param: nexus_username }
859             __nexus_password__: { get_param: nexus_password }
860             __openstack_username__: { get_param: openstack_username }
861             __openstack_tenant_id__: { get_param: openstack_tenant_id }
862             __openstack_api_key__: { get_param: openstack_api_key }
863             __openstack_region__: { get_param: openstack_region }
864             __keystone_url__: { get_param: keystone_url }
865             __dmaap_topic__: { get_param: dmaap_topic }
866             __artifacts_version__: { get_param: artifacts_version }
867             __dns_ip_addr__: { get_param: dns_ip_addr }
868             __openo_ip__: { get_param: openo_ip_addr }
869             __docker_version__: { get_param: so_docker }
870             __gerrit_branch__: { get_param: so_branch }
871             __cloud_env__: { get_param: cloud_env }
872             __external_dns__: { get_param: external_dns }
873             __so_repo__: { get_param: so_repo }
874           template: |
875             #!/bin/bash
876
877             # Create configuration files
878             mkdir -p /opt/config
879             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
880             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
881             echo "__nexus_username__" > /opt/config/nexus_username.txt
882             echo "__nexus_password__" > /opt/config/nexus_password.txt
883             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
884             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
885             echo "__openo_ip__" > /opt/config/openo_ip.txt
886             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
887             echo "__openstack_username__" > /opt/config/openstack_username.txt
888             echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
889             echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
890             echo "__openstack_region__" > /opt/config/openstack_region.txt
891             echo "__keystone_url__" > /opt/config/keystone.txt
892             echo "__docker_version__" > /opt/config/docker_version.txt
893             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
894             echo "__cloud_env__" > /opt/config/cloud_env.txt
895             echo "__external_dns__" > /opt/config/external_dns.txt
896             echo "__so_repo__" > /opt/config/remote_repo.txt
897
898             # Download and run install script
899             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
900             cd /opt
901             chmod +x so_install.sh
902             ./so_install.sh
903
904
905   # Message Router instantiation
906   mrouter_private_port:
907     type: OS::Neutron::Port
908     properties:
909       network: { get_resource: oam_onap }
910       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
911       security_groups:
912       - { get_resource: onap_sg }
913
914   mrouter_floating_ip:
915     type: OS::Neutron::FloatingIP
916     properties:
917       floating_network_id: { get_param: public_net_id }
918       port_id: { get_resource: mrouter_private_port }
919
920   mrouter_vm:
921     type: OS::Nova::Server
922     properties:
923       image: { get_param: ubuntu_1404_image }
924       flavor: { get_param: flavor_large }
925       name:
926         str_replace:
927           template: base-message-router
928           params:
929             base: { get_param: vm_base_name }
930       key_name: { get_resource: vm_key }
931       networks:
932         - port: { get_resource: mrouter_private_port }
933       user_data_format: RAW
934       user_data:
935         str_replace:
936           params:
937             __nexus_repo__: { get_param: nexus_repo }
938             __nexus_docker_repo__: { get_param: nexus_docker_repo }
939             __nexus_username__: { get_param: nexus_username }
940             __nexus_password__: { get_param: nexus_password }
941             __artifacts_version__: { get_param: artifacts_version }
942             __dns_ip_addr__: { get_param: dns_ip_addr }
943             __gerrit_branch__: { get_param: mr_branch }
944             __cloud_env__: { get_param: cloud_env }
945             __external_dns__: { get_param: external_dns }
946             __mr_repo__: { get_param: mr_repo }
947           template: |
948             #!/bin/bash
949
950             # Create configuration files
951             mkdir -p /opt/config
952             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
953             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
954             echo "__nexus_username__" > /opt/config/nexus_username.txt
955             echo "__nexus_password__" > /opt/config/nexus_password.txt
956             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
957             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
958             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
959             echo "__cloud_env__" > /opt/config/cloud_env.txt
960             echo "__external_dns__" > /opt/config/external_dns.txt
961             echo "__mr_repo__" > /opt/config/remote_repo.txt
962
963             # Download and run install script
964             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
965             cd /opt
966             chmod +x mr_install.sh
967             ./mr_install.sh
968
969
970   # Robot Framework instantiation
971   robot_private_port:
972     type: OS::Neutron::Port
973     properties:
974       network: { get_resource: oam_onap }
975       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
976       security_groups:
977       - { get_resource: onap_sg }
978
979   robot_floating_ip:
980     type: OS::Neutron::FloatingIP
981     properties:
982       floating_network_id: { get_param: public_net_id }
983       port_id: { get_resource: robot_private_port }
984
985   robot_vm:
986     type: OS::Nova::Server
987     properties:
988       image: { get_param: ubuntu_1604_image }
989       flavor: { get_param: flavor_medium }
990       name:
991         str_replace:
992           template: base-robot
993           params:
994             base: { get_param: vm_base_name }
995       key_name: { get_resource: vm_key }
996       networks:
997         - port: { get_resource: robot_private_port }
998       user_data_format: RAW
999       user_data:
1000         str_replace:
1001           params:
1002             __nexus_repo__: { get_param: nexus_repo }
1003             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1004             __nexus_username__: { get_param: nexus_username }
1005             __nexus_password__: { get_param: nexus_password }
1006             __network_name__: { get_attr: [oam_onap, name] }
1007             __openstack_username__: { get_param: openstack_username }
1008             __openstack_api_key__: { get_param : openstack_api_key }
1009             __openstack_tenant_id__: { get_param: openstack_tenant_id }
1010             __artifacts_version__: { get_param: artifacts_version }
1011             __openstack_region__: { get_param: openstack_region }
1012             __dns_ip_addr__: { get_param: dns_ip_addr }
1013             __gerrit_branch__: { get_param: robot_branch }
1014             __cloud_env__: { get_param: cloud_env }
1015             __keystone_url__: { get_param: keystone_url }
1016             __aai1_ip_addr__: { get_param: aai1_ip_addr }
1017             __aai2_ip_addr__: { get_param: aai2_ip_addr }
1018             __appc_ip_addr__: { get_param: appc_ip_addr }
1019             __dcae_ip_addr__: { get_param: dcae_ip_addr }
1020             __so_ip_addr__: { get_param: so_ip_addr }
1021             __mr_ip_addr__: { get_param: mr_ip_addr }
1022             __policy_ip_addr__: { get_param: policy_ip_addr }
1023             __portal_ip_addr__: { get_param: portal_ip_addr }
1024             __sdc_ip_addr__: { get_param: sdc_ip_addr }
1025             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1026             __vid_ip_addr__: { get_param: vid_ip_addr }
1027             __clamp_ip_addr__: { get_param: clamp_ip_addr }
1028             __openo_ip_addr__: { get_param: openo_ip_addr }
1029             __music_ip_addr__: { get_param: music_ip_addr }
1030             __oof_ip_addr__: { get_param: oof_ip_addr }
1031             __aaf_ip_addr__: { get_param: aaf_ip_addr }
1032             __external_dns__: { get_param: external_dns }
1033             __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1034             __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1035             __vm_flavor__: { get_param: flavor_medium }
1036             __public_net_id__: { get_param: public_net_id }
1037             __script_version__: { get_param: artifacts_version }
1038             __robot_repo__: { get_param: robot_repo }
1039             __docker_version__: { get_param: robot_docker }
1040           template: |
1041             #!/bin/bash
1042
1043             # Create configuration files
1044             mkdir -p /opt/config
1045             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1046             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1047             echo "__nexus_username__" > /opt/config/nexus_username.txt
1048             echo "__nexus_password__" > /opt/config/nexus_password.txt
1049             echo "__network_name__" > /opt/config/network.txt
1050             echo "__openstack_username__" > /opt/config/openstack_username.txt
1051             echo "__openstack_api_key__" > /opt/config/openstack_password.txt
1052             echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
1053             echo "__openstack_region__" > /opt/config/region.txt
1054             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1055             echo "__docker_version__" > /opt/config/docker_version.txt
1056             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1057             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1058             echo "__keystone_url__" > /opt/config/keystone.txt
1059             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
1060             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
1061             echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
1062             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1063             echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
1064             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1065             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
1066             echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
1067             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
1068             echo "__sdc_ip_addr__" > /opt/config/sdc_be_ip_addr.txt
1069             echo "__sdc_ip_addr__" > /opt/config/sdc_fe_ip_addr.txt
1070             echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
1071             echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
1072             echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
1073             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
1074             echo "__music_ip_addr__" > /opt/config/music_ip_addr.txt
1075             echo "__oof_ip_addr__" > /opt/config/oof_ip_addr.txt
1076             echo "__aaf_ip_addr__" > /opt/config/aaf_ip_addr.txt
1077             echo "__cloud_env__" > /opt/config/cloud_env.txt
1078             echo "__external_dns__" > /opt/config/external_dns.txt
1079             echo "__vm_flavor__" > /opt/config/vm_flavor.txt
1080             echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
1081             echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1082             echo "__script_version__" > /opt/config/script_version.txt
1083             echo "__public_net_id__" > /opt/config/public_net_id.txt
1084             echo "__robot_repo__" > /opt/config/remote_repo.txt
1085
1086             # Download and run install script
1087             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
1088             cd /opt
1089             chmod +x robot_install.sh
1090             ./robot_install.sh
1091
1092
1093   # VID instantiation
1094   vid_private_port:
1095     type: OS::Neutron::Port
1096     properties:
1097       network: { get_resource: oam_onap }
1098       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
1099       security_groups:
1100       - { get_resource: onap_sg }
1101
1102   vid_floating_ip:
1103     type: OS::Neutron::FloatingIP
1104     properties:
1105       floating_network_id: { get_param: public_net_id }
1106       port_id: { get_resource: vid_private_port }
1107
1108   vid_vm:
1109     type: OS::Nova::Server
1110     properties:
1111       image: { get_param: ubuntu_1404_image }
1112       flavor: { get_param: flavor_medium }
1113       name:
1114         str_replace:
1115           template: base-vid
1116           params:
1117             base: { get_param: vm_base_name }
1118       key_name: { get_resource: vm_key }
1119       networks:
1120         - port: { get_resource: vid_private_port }
1121       user_data_format: RAW
1122       user_data:
1123         str_replace:
1124           params:
1125             __nexus_repo__: { get_param: nexus_repo }
1126             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1127             __nexus_username__: { get_param: nexus_username }
1128             __nexus_password__: { get_param: nexus_password }
1129             __artifacts_version__: { get_param: artifacts_version }
1130             __dns_ip_addr__: { get_param: dns_ip_addr }
1131             __docker_version__: { get_param: vid_docker }
1132             __gerrit_branch__: { get_param: vid_branch }
1133             __cloud_env__: { get_param: cloud_env }
1134             __external_dns__: { get_param: external_dns }
1135             __vid_repo__: { get_param: vid_repo }
1136           template: |
1137             #!/bin/bash
1138
1139             # Create configuration files
1140             mkdir -p /opt/config
1141             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1142             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1143             echo "__nexus_username__" > /opt/config/nexus_username.txt
1144             echo "__nexus_password__" > /opt/config/nexus_password.txt
1145             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1146             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1147             echo "__docker_version__" > /opt/config/docker_version.txt
1148             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1149             echo "__cloud_env__" > /opt/config/cloud_env.txt
1150             echo "__external_dns__" > /opt/config/external_dns.txt
1151             echo "__vid_repo__" > /opt/config/remote_repo.txt
1152
1153             # Download and run install script
1154             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
1155             cd /opt
1156             chmod +x vid_install.sh
1157             ./vid_install.sh
1158
1159
1160   # SDN-C instantiation
1161   sdnc_private_port:
1162     type: OS::Neutron::Port
1163     properties:
1164       network: { get_resource: oam_onap }
1165       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
1166       security_groups:
1167       - { get_resource: onap_sg }
1168
1169   sdnc_floating_ip:
1170     type: OS::Neutron::FloatingIP
1171     properties:
1172       floating_network_id: { get_param: public_net_id }
1173       port_id: { get_resource: sdnc_private_port }
1174
1175   sdnc_vm:
1176     type: OS::Nova::Server
1177     properties:
1178       image: { get_param: ubuntu_1404_image }
1179       flavor: { get_param: flavor_large }
1180       name:
1181         str_replace:
1182           template: base-sdnc
1183           params:
1184             base: { get_param: vm_base_name }
1185       key_name: { get_resource: vm_key }
1186       networks:
1187         - port: { get_resource: sdnc_private_port }
1188       user_data_format: RAW
1189       user_data:
1190         str_replace:
1191           params:
1192             __nexus_repo__: { get_param: nexus_repo }
1193             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1194             __nexus_username__: { get_param: nexus_username }
1195             __nexus_password__: { get_param: nexus_password }
1196             __artifacts_version__: { get_param: artifacts_version }
1197             __dns_ip_addr__: { get_param: dns_ip_addr }
1198             __docker_version__: { get_param: sdnc_docker }
1199             __gerrit_branch__: { get_param: sdnc_branch }
1200             __dgbuilder_docker__: { get_param: dgbuilder_docker }
1201             __cloud_env__: { get_param: cloud_env }
1202             __external_dns__: { get_param: external_dns }
1203             __sdnc_repo__: { get_param: sdnc_repo }
1204           template: |
1205             #!/bin/bash
1206
1207             # Create configuration files
1208             mkdir -p /opt/config
1209             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1210             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1211             echo "__nexus_username__" > /opt/config/nexus_username.txt
1212             echo "__nexus_password__" > /opt/config/nexus_password.txt
1213             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1214             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1215             echo "__docker_version__" > /opt/config/docker_version.txt
1216             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1217             echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1218             echo "__cloud_env__" > /opt/config/cloud_env.txt
1219             echo "__external_dns__" > /opt/config/external_dns.txt
1220             echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1221
1222             # Download and run install script
1223             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1224             cd /opt
1225             chmod +x sdnc_install.sh
1226             ./sdnc_install.sh
1227
1228
1229   # SDC instantiation
1230   sdc_private_port:
1231     type: OS::Neutron::Port
1232     properties:
1233       network: { get_resource: oam_onap }
1234       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1235       security_groups:
1236       - { get_resource: onap_sg }
1237
1238   sdc_floating_ip:
1239     type: OS::Neutron::FloatingIP
1240     properties:
1241       floating_network_id: { get_param: public_net_id }
1242       port_id: { get_resource: sdc_private_port }
1243
1244   sdc_volume_data:
1245     type: OS::Cinder::Volume
1246     properties:
1247       name: vol1-sdc-data
1248       size: 100
1249
1250   sdc_vm:
1251     type: OS::Nova::Server
1252     properties:
1253       image: { get_param: ubuntu_1604_image }
1254       flavor: { get_param: flavor_xlarge }
1255       name:
1256         str_replace:
1257           template: base-sdc
1258           params:
1259             base: { get_param: vm_base_name }
1260       key_name: { get_resource: vm_key }
1261       networks:
1262         - port: { get_resource: sdc_private_port }
1263       block_device_mapping:
1264         - device_name: /dev/vdb
1265           volume_id: {get_resource: sdc_volume_data}
1266       user_data_format: RAW
1267       user_data:
1268         str_replace:
1269           params:
1270             __nexus_repo__: { get_param: nexus_repo }
1271             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1272             __nexus_username__: { get_param: nexus_username }
1273             __nexus_password__: { get_param: nexus_password }
1274             __env_name__: { get_param: dmaap_topic }
1275             __artifacts_version__: { get_param: artifacts_version }
1276             __dns_ip_addr__: { get_param: dns_ip_addr }
1277             __mr_ip_addr__: { get_param: mr_ip_addr }
1278             __private_ip__: { get_param: sdc_ip_addr }
1279             __docker_version__: { get_param: sdc_docker }
1280             __sdc_wfd_docker__: { get_param: sdc_wfd_docker }
1281             __gerrit_branch__: { get_param: sdc_branch }
1282             __cloud_env__: { get_param: cloud_env }
1283             __external_dns__: { get_param: external_dns }
1284             __sdc_repo__: { get_param: sdc_repo }
1285           template: |
1286             #!/bin/bash
1287
1288             # Create configuration files
1289             mkdir -p /opt/config
1290             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1291             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1292             echo "__nexus_username__" > /opt/config/nexus_username.txt
1293             echo "__nexus_password__" > /opt/config/nexus_password.txt
1294             echo "__env_name__" > /opt/config/env_name.txt
1295             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1296             echo "__private_ip__" > /opt/config/private_ip.txt
1297             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1298             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1299             echo "__docker_version__" > /opt/config/docker_version.txt
1300             echo "__sdc_wfd_docker__" > /opt/config/sdc_wfd_docker.txt
1301             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1302             echo "__cloud_env__" > /opt/config/cloud_env.txt
1303             echo "__external_dns__" > /opt/config/external_dns.txt
1304             echo "__sdc_repo__" > /opt/config/remote_repo.txt
1305
1306             # Download and run install script
1307             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1308             cd /opt
1309             chmod +x sdc_install.sh
1310             ./sdc_install.sh
1311
1312
1313   # PORTAL instantiation
1314   portal_private_port:
1315     type: OS::Neutron::Port
1316     properties:
1317       network: { get_resource: oam_onap }
1318       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1319       security_groups:
1320       - { get_resource: onap_sg }
1321
1322   portal_floating_ip:
1323     type: OS::Neutron::FloatingIP
1324     properties:
1325       floating_network_id: { get_param: public_net_id }
1326       port_id: { get_resource: portal_private_port }
1327
1328   portal_vm:
1329     type: OS::Nova::Server
1330     properties:
1331       image: { get_param: ubuntu_1404_image }
1332       flavor: { get_param: flavor_large }
1333       name:
1334         str_replace:
1335           template: base-portal
1336           params:
1337             base: { get_param: vm_base_name }
1338       key_name: { get_resource: vm_key }
1339       networks:
1340         - port: { get_resource: portal_private_port }
1341       user_data_format: RAW
1342       user_data:
1343         str_replace:
1344           params:
1345             __nexus_repo__: { get_param: nexus_repo }
1346             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1347             __nexus_username__: { get_param: nexus_username }
1348             __nexus_password__: { get_param: nexus_password }
1349             __artifacts_version__: { get_param: artifacts_version }
1350             __dns_ip_addr__: { get_param: dns_ip_addr }
1351             __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1352             __docker_version__: { get_param: portal_docker }
1353             __gerrit_branch__: { get_param: portal_branch }
1354             __cli_docker__: { get_param: cli_docker }
1355             __cloud_env__: { get_param: cloud_env }
1356             __external_dns__: { get_param: external_dns }
1357             __portal_repo__: { get_param: portal_repo }
1358           template: |
1359             #!/bin/bash
1360
1361             # Create configuration files
1362             mkdir -p /opt/config
1363             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1364             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1365             echo "__nexus_username__" > /opt/config/nexus_username.txt
1366             echo "__nexus_password__" > /opt/config/nexus_password.txt
1367             echo "__public_ip__" > /opt/config/public_ip.txt
1368             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1369             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1370             echo "__docker_version__" > /opt/config/docker_version.txt
1371             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1372             echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1373             echo "__cloud_env__" > /opt/config/cloud_env.txt
1374             echo "__external_dns__" > /opt/config/external_dns.txt
1375             echo "__portal_repo__" > /opt/config/remote_repo.txt
1376
1377             # Download and run install script
1378             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1379             cd /opt
1380             chmod +x portal_install.sh
1381             ./portal_install.sh
1382
1383
1384   # Policy Engine instantiation
1385   policy_private_port:
1386     type: OS::Neutron::Port
1387     properties:
1388       network: { get_resource: oam_onap }
1389       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1390       security_groups:
1391       - { get_resource: onap_sg }
1392
1393   policy_floating_ip:
1394     type: OS::Neutron::FloatingIP
1395     properties:
1396       floating_network_id: { get_param: public_net_id }
1397       port_id: { get_resource: policy_private_port }
1398
1399   policy_vm:
1400     type: OS::Nova::Server
1401     properties:
1402       image: { get_param: ubuntu_1404_image }
1403       flavor: { get_param: flavor_xlarge }
1404       name:
1405         str_replace:
1406           template: base-policy
1407           params:
1408             base: { get_param: vm_base_name }
1409       key_name: { get_resource: vm_key }
1410       networks:
1411         - port: { get_resource: policy_private_port }
1412       user_data_format: RAW
1413       user_data:
1414         str_replace:
1415           params:
1416             __nexus_repo__: { get_param: nexus_repo }
1417             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1418             __nexus_username__: { get_param: nexus_username }
1419             __nexus_password__: { get_param: nexus_password }
1420             __artifacts_version__: { get_param: artifacts_version }
1421             __dns_ip_addr__: { get_param: dns_ip_addr }
1422             __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1423             __docker_version__: { get_param: policy_docker }
1424             __gerrit_branch__: { get_param: policy_branch }
1425             __cloud_env__: { get_param: cloud_env }
1426             __external_dns__: { get_param: external_dns }
1427             __policy_repo__: { get_param: policy_repo }
1428           template: |
1429             #!/bin/bash
1430
1431             # Create configuration files
1432             mkdir -p /opt/config
1433             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1434             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1435             echo "__nexus_username__" > /opt/config/nexus_username.txt
1436             echo "__nexus_password__" > /opt/config/nexus_password.txt
1437             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1438             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1439             echo "__public_ip__" > /opt/config/public_ip.txt
1440             echo "__docker_version__" > /opt/config/docker_version.txt
1441             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1442             echo "__cloud_env__" > /opt/config/cloud_env.txt
1443             echo "__external_dns__" > /opt/config/external_dns.txt
1444             echo "__policy_repo__" > /opt/config/remote_repo.txt
1445
1446             # Download and run install script
1447             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1448             cd /opt
1449             chmod +x policy_install.sh
1450             ./policy_install.sh
1451
1452
1453   # APP-C instantiation
1454   appc_private_port:
1455     type: OS::Neutron::Port
1456     properties:
1457       network: { get_resource: oam_onap }
1458       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1459       security_groups:
1460       - { get_resource: onap_sg }
1461
1462   appc_floating_ip:
1463     type: OS::Neutron::FloatingIP
1464     properties:
1465       floating_network_id: { get_param: public_net_id }
1466       port_id: { get_resource: appc_private_port }
1467
1468   appc_vm:
1469     type: OS::Nova::Server
1470     properties:
1471       image: { get_param: ubuntu_1404_image }
1472       flavor: { get_param: flavor_large }
1473       name:
1474         str_replace:
1475           template: base-appc
1476           params:
1477             base: { get_param: vm_base_name }
1478       key_name: { get_resource: vm_key }
1479       networks:
1480         - port: { get_resource: appc_private_port }
1481       user_data_format: RAW
1482       user_data:
1483         str_replace:
1484           params:
1485             __nexus_repo__: { get_param: nexus_repo }
1486             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1487             __nexus_username__: { get_param: nexus_username }
1488             __nexus_password__: { get_param: nexus_password }
1489             __dmaap_topic__: { get_param: dmaap_topic }
1490             __artifacts_version__: { get_param: artifacts_version }
1491             __dns_ip_addr__: { get_param: dns_ip_addr }
1492             __docker_version__: { get_param: appc_docker }
1493             __gerrit_branch__: { get_param: appc_branch }
1494             __dgbuilder_docker__: { get_param: dgbuilder_docker }
1495             __cloud_env__: { get_param: cloud_env }
1496             __external_dns__: { get_param: external_dns }
1497             __appc_repo__: { get_param: appc_repo }
1498           template: |
1499             #!/bin/bash
1500
1501             # Create configuration files
1502             mkdir -p /opt/config
1503             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1504             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1505             echo "__nexus_username__" > /opt/config/nexus_username.txt
1506             echo "__nexus_password__" > /opt/config/nexus_password.txt
1507             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1508             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1509             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1510             echo "__docker_version__" > /opt/config/docker_version.txt
1511             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1512             echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1513             echo "__cloud_env__" > /opt/config/cloud_env.txt
1514             echo "__external_dns__" > /opt/config/external_dns.txt
1515             echo "__appc_repo__" > /opt/config/remote_repo.txt
1516
1517             # Download and run install script
1518             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1519             cd /opt
1520             chmod +x appc_install.sh
1521             ./appc_install.sh
1522
1523
1524   # CLAMP instantiation
1525   clamp_private_port:
1526     type: OS::Neutron::Port
1527     properties:
1528       network: { get_resource: oam_onap }
1529       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1530       security_groups:
1531       - { get_resource: onap_sg }
1532
1533   clamp_floating_ip:
1534     type: OS::Neutron::FloatingIP
1535     properties:
1536       floating_network_id: { get_param: public_net_id }
1537       port_id: { get_resource: clamp_private_port }
1538
1539   clamp_vm:
1540     type: OS::Nova::Server
1541     properties:
1542       image: { get_param: ubuntu_1604_image }
1543       flavor: { get_param: flavor_medium }
1544       name:
1545         str_replace:
1546           template: base-clamp
1547           params:
1548             base: { get_param: vm_base_name }
1549       key_name: { get_resource: vm_key }
1550       networks:
1551         - port: { get_resource: clamp_private_port }
1552       user_data_format: RAW
1553       user_data:
1554         str_replace:
1555           params:
1556             __nexus_repo__: { get_param: nexus_repo }
1557             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1558             __nexus_username__: { get_param: nexus_username }
1559             __nexus_password__: { get_param: nexus_password }
1560             __openstack_username__: { get_param: openstack_username }
1561             __openstack_tenant_id__: { get_param: openstack_tenant_id }
1562             __openstack_api_key__: { get_param: openstack_api_key }
1563             __openstack_region__: { get_param: openstack_region }
1564             __keystone_url__: { get_param: keystone_url }
1565             __dmaap_topic__: { get_param: dmaap_topic }
1566             __artifacts_version__: { get_param: artifacts_version }
1567             __dns_ip_addr__: { get_param: dns_ip_addr }
1568             __docker_version__: { get_param: clamp_docker }
1569             __gerrit_branch__: { get_param: clamp_branch }
1570             __cloud_env__: { get_param: cloud_env }
1571             __external_dns__: { get_param: external_dns }
1572             __clamp_repo__: { get_param: clamp_repo }
1573           template: |
1574             #!/bin/bash
1575
1576             # Create configuration files
1577             mkdir -p /opt/config
1578             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1579             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1580             echo "__nexus_username__" > /opt/config/nexus_username.txt
1581             echo "__nexus_password__" > /opt/config/nexus_password.txt
1582             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1583             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1584             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1585             echo "__openstack_username__" > /opt/config/openstack_username.txt
1586             echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1587             echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1588             echo "__openstack_region__" > /opt/config/openstack_region.txt
1589             echo "__keystone_url__" > /opt/config/keystone.txt
1590             echo "__docker_version__" > /opt/config/docker_version.txt
1591             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1592             echo "__cloud_env__" > /opt/config/cloud_env.txt
1593             echo "__external_dns__" > /opt/config/external_dns.txt
1594             echo "__clamp_repo__" > /opt/config/remote_repo.txt
1595
1596             # Download and run install script
1597             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1598             cd /opt
1599             chmod +x clamp_install.sh
1600             ./clamp_install.sh
1601
1602
1603   # OPEN-O VM instantiation
1604   openo_private_port:
1605     type: OS::Neutron::Port
1606     properties:
1607       network: { get_resource: oam_onap }
1608       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1609       security_groups:
1610       - { get_resource: onap_sg }
1611
1612   openo_floating_ip:
1613     type: OS::Neutron::FloatingIP
1614     properties:
1615       floating_network_id: { get_param: public_net_id }
1616       port_id: { get_resource: openo_private_port }
1617
1618   openo_vm:
1619     type: OS::Nova::Server
1620     properties:
1621       image: { get_param: ubuntu_1604_image }
1622       flavor: { get_param: flavor_xxlarge }
1623       name:
1624         str_replace:
1625           template: base-multi-service
1626           params:
1627             base: { get_param: vm_base_name }
1628       key_name: { get_resource: vm_key }
1629       networks:
1630         - port: { get_resource: openo_private_port }
1631       user_data_format: RAW
1632       user_data:
1633         str_replace:
1634           params:
1635             __nexus_repo__: { get_param: nexus_repo }
1636             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1637             __nexus_username__: { get_param: nexus_username }
1638             __nexus_password__: { get_param: nexus_password }
1639             __artifacts_version__: { get_param: artifacts_version }
1640             __dns_ip_addr__: { get_param: dns_ip_addr }
1641             __oam_network_cidr__: { get_param: oam_network_cidr }
1642             __aai1_ip_addr__: { get_param: aai1_ip_addr }
1643             __aai2_ip_addr__: { get_param: aai2_ip_addr }
1644             __appc_ip_addr__: { get_param: appc_ip_addr }
1645             __dcae_ip_addr__: { get_param: dcae_ip_addr }
1646             __so_ip_addr__: { get_param: so_ip_addr }
1647             __mr_ip_addr__: { get_param: mr_ip_addr }
1648             __policy_ip_addr__: { get_param: policy_ip_addr }
1649             __portal_ip_addr__: { get_param: portal_ip_addr }
1650             __robot_ip_addr__: { get_param: robot_ip_addr }
1651             __sdc_ip_addr__: { get_param: sdc_ip_addr }
1652             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1653             __vid_ip_addr__: { get_param: vid_ip_addr }
1654             __clamp_ip_addr__: { get_param: clamp_ip_addr }
1655             __openo_ip_addr__: { get_param: openo_ip_addr }
1656             __cloud_env__: { get_param: cloud_env }
1657             __external_dns__: { get_param: external_dns }
1658             __vnfsdk_branch__: { get_param: vnfsdk_branch }
1659             __msb_docker__: { get_param: msb_docker }
1660             __mvim_docker__: { get_param: mvim_docker }
1661             __uui_docker__: { get_param: uui_docker }
1662             __esr_docker__: { get_param: esr_docker }
1663             __vnfsdk_repo__: { get_param: vnfsdk_repo }
1664             __vfc_nokia_docker__: { get_param: vfc_nokia_docker }
1665             __vfc_nokiav2_docker__: { get_param: vfc_nokiav2_docker }
1666             __cbam_ip__: { get_param: cbam_ip }
1667             __cbam_username__: { get_param: cbam_username }
1668             __cbam_password__: { get_param: cbam_password }
1669             __vfc_ztevnfmdriver_docker__: { get_param: vfc_ztevnfmdriver_docker }
1670             __vfc_multivimproxy_docker__: { get_param: vfc_multivimproxy_docker }
1671             __vfc_ztesdncdriver_docker__: { get_param: vfc_ztesdncdriver_docker }
1672             __vfc_vnfres_docker__: { get_param: vfc_vnfres_docker }
1673             __vfc_vnfmgr_docker__: { get_param: vfc_vnfmgr_docker }
1674             __vfc_vnflcm_docker__: { get_param: vfc_vnflcm_docker }
1675             __vfc_resmanagement_docker__: { get_param: vfc_resmanagement_docker }
1676             __vfc_nslcm_docker__: { get_param: vfc_nslcm_docker }
1677             __vfc_huawei_docker__: { get_param: vfc_huawei_docker }
1678             __vfc_jujudriver_docker__: { get_param: vfc_jujudriver_docker }
1679             __vfc_gvnfmdriver_docker__: { get_param: vfc_gvnfmdriver_docker }
1680             __vfc_emsdriver_docker__: { get_param: vfc_emsdriver_docker }
1681             __vfc_catalog_docker__: { get_param: vfc_catalog_docker }
1682             __vfc_wfengine_mgrservice_docker__: { get_param: vfc_wfengine_mgrservice_docker }
1683             __vfc_wfengine_activiti_docker__: { get_param: vfc_wfengine_activiti_docker }
1684           template: |
1685             #!/bin/bash
1686
1687             # Create configuration files
1688             mkdir -p /opt/config
1689             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1690             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1691             echo "__nexus_username__" > /opt/config/nexus_username.txt
1692             echo "__nexus_password__" > /opt/config/nexus_password.txt
1693             echo "__cloud_env__" > /opt/config/cloud_env.txt
1694             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1695             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1696             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1697             echo "__external_dns__" > /opt/config/external_dns.txt
1698             echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1699             echo "__msb_docker__" > /opt/config/msb_docker.txt
1700             echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1701             echo "__uui_docker__" > /opt/config/uui_docker.txt
1702             echo "__esr_docker__" > /opt/config/esr_docker.txt
1703             echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1704             echo "__cbam_ip__" > /opt/config/cbam_ip.txt
1705             echo "__cbam_username__" > /opt/config/cbam_username.txt
1706             echo "__cbam_password__" > /opt/config/cbam_password.txt
1707
1708             echo "export NOKIA_DOCKER_VER=__vfc_nokia_docker__" >> /opt/config/vfc_docker.txt
1709             echo "export NOKIAV2_DOCKER_VER=__vfc_nokiav2_docker__" >> /opt/config/vfc_docker.txt
1710             echo "export MULTIVIMPROXY_DOCKER_VER=__vfc_multivimproxy_docker__" >> /opt/config/vfc_docker.txt
1711             echo "export ZTEVNFMDRIVER_DOCKER_VER=__vfc_ztevnfmdriver_docker__" >> /opt/config/vfc_docker.txt
1712             echo "export ZTESDNCDRIVER_DOCKER_VER=__vfc_ztesdncdriver_docker__" >> /opt/config/vfc_docker.txt
1713             echo "export VNFRES_DOCKER_VER=__vfc_vnfres_docker__" >> /opt/config/vfc_docker.txt
1714             echo "export VNFMGR_DOCKER_VER=__vfc_vnfmgr_docker__" >> /opt/config/vfc_docker.txt
1715             echo "export VNFLCM_DOCKER_VER=__vfc_vnflcm_docker__" >> /opt/config/vfc_docker.txt
1716             echo "export RESMANAGEMENT_DOCKER_VER=__vfc_resmanagement_docker__" >> /opt/config/vfc_docker.txt
1717             echo "export NSLCM_DOCKER_VER=__vfc_nslcm_docker__" >> /opt/config/vfc_docker.txt
1718             echo "export HUAWEI_DOCKER_VER=__vfc_huawei_docker__" >> /opt/config/vfc_docker.txt
1719             echo "export JUJUDRIVER_DOCKER_VER=__vfc_jujudriver_docker__" >> /opt/config/vfc_docker.txt
1720             echo "export GVNFMDRIVER_DOCKER_VER=__vfc_gvnfmdriver_docker__" >> /opt/config/vfc_docker.txt
1721             echo "export EMSDRIVER_DOCKER_VER=__vfc_emsdriver_docker__" >> /opt/config/vfc_docker.txt
1722             echo "export CATALOG_DOCKER_VER=__vfc_catalog_docker__" >> /opt/config/vfc_docker.txt
1723             echo "export MGRSERVICE_DOCKER_VER=__vfc_wfengine_mgrservice_docker__" >> /opt/config/vfc_docker.txt
1724             echo "export ACTIVITI_DOCKER_VER=__vfc_wfengine_activiti_docker__" >> /opt/config/vfc_docker.txt
1725
1726             # Create env file with the IP address of all ONAP components
1727             echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1728             echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1729             echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1730             echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1731             echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1732             echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1733             echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1734             echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1735             echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1736             echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1737             echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1738             echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1739             echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1740             echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1741
1742             # Download and run install script
1743             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1744             cd /opt
1745             chmod +x openo_install.sh
1746             ./openo_install.sh
1747
1748
1749   # DCAE GEN 2 Controller instantiation
1750   dcae_c_private_port:
1751     type: OS::Neutron::Port
1752     properties:
1753       network: { get_resource: oam_onap }
1754       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1755       security_groups:
1756       - { get_resource: onap_sg }
1757
1758   dcae_c_floating_ip:
1759     type: OS::Neutron::FloatingIP
1760     properties:
1761       floating_network_id: { get_param: public_net_id }
1762       port_id: { get_resource: dcae_c_private_port }
1763
1764   dcae_c_vm:
1765     type: OS::Nova::Server
1766     properties:
1767       image: { get_param: ubuntu_1604_image }
1768       flavor: { get_param: flavor_large }
1769       name:
1770         str_replace:
1771           template: base-dcae
1772           params:
1773             base: { get_param: vm_base_name }
1774       key_name: { get_resource: vm_key }
1775       networks:
1776         - port: { get_resource: dcae_c_private_port }
1777       #security_groups:
1778       #  - { get_resource: onap_sg }
1779       user_data_format: RAW
1780       user_data:
1781         str_replace:
1782           params:
1783             __rand_str__: { get_resource: random-str }
1784             # repo related
1785             __artifacts_version__: { get_param: artifacts_version }
1786             __docker_version__: { get_param: dcae_docker }
1787             __nexus_repo__: { get_param: nexus_repo }
1788             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1789             __nexus_username__: { get_param: nexus_username }
1790             __nexus_password__: { get_param: nexus_password }
1791             # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1792             __dcae_deployment_profile__: { get_param: dcae_deployment_profile }
1793             __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1794             __dcae_ip_addr__: { get_param: dcae_ip_addr }
1795             __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1796             __dns_ip_addr__: { get_param: dns_ip_addr }
1797             __external_dns__: { get_param: external_dns }
1798             __dns_forwarder__: { get_param: dns_forwarder }
1799             __dcae_domain__: { get_param: dcae_domain }
1800             # conf for VMs DCAE is to bringup
1801             __openstack_keystone_url__: { get_param: keystone_url }
1802             __dcae_keystone_url__: { get_param: dcae_keystone_url }
1803             __dcaeos_cloud_env__: { get_param: cloud_env }
1804             __dcaeos_keystone_url__: { get_param: dcae_keystone_url }
1805             __dcaeos_region__: { get_param: openstack_region }
1806             __dcaeos_tenant_id__: { get_param: openstack_tenant_id }
1807             __dcaeos_tenant_name__: { get_param: openstack_tenant_name }
1808             __dcaeos_security_group__:
1809               str_replace:
1810                 template: 'onap_sg_rand'
1811                 params:
1812                   rand: { get_resource: random-str }
1813             #__dcaeos_security_group__: { get_attr: [onap_sg, name] }
1814             __dcaeos_username__: { get_param: openstack_username }
1815             __dcaeos_password__: { get_param: openstack_api_key }
1816             __dcaeos_key_name__: { get_resource: vm_key }
1817             __dcaeos_public_key__: { get_param: dcae_public_key }
1818             __dcaeos_private_key__: { get_param: dcae_private_key }
1819             __dcaeos_private_network_name__: { get_attr: [oam_onap, name] }
1820             __dcaeos_public_network_name__: { get_param: public_net_name }
1821             __dcaeos_ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1822             __dcaeos_centos_7_image__: { get_param: dcae_centos_7_image }
1823             __dcaeos_flavor_id__: { get_param: flavor_medium }
1824             __dcaeos_flavor_id_cdap__: { get_param: flavor_large }
1825             __dcaeos_dnsaas_config_enabled__: { get_param: dnsaas_config_enabled }
1826             __dcaeos_dnsaas_region__: { get_param: dnsaas_region }
1827             __dcaeos_dnsaas_keystone_url__: { get_param: dnsaas_keystone_url }
1828             __dnsaas_tenant_name__: { get_param: dnsaas_tenant_name }
1829             __dcaeos_dnsaas_username__: { get_param: dnsaas_username }
1830             __dcaeos_dnsaas_password__: { get_param: dnsaas_password }
1831             # fixed private IPs
1832             __mr_ip_addr__: { get_param: mr_ip_addr }
1833             __policy_ip_addr__: { get_param: policy_ip_addr }
1834             __sdc_ip_addr__: { get_param: sdc_ip_addr }
1835             __openo_ip_addr__: { get_param: openo_ip_addr }
1836             __aai1_ip_addr__: { get_param: aai1_ip_addr }
1837             __aai2_ip_addr__: { get_param: aai2_ip_addr }
1838             # floating IPs
1839             __dns_floating_ip_addr__: { get_attr: [dns_floating_ip, floating_ip_address] }
1840             __aai1_floating_ip_addr__: { get_attr: [aai1_floating_ip, floating_ip_address] }
1841             __aai2_floating_ip_addr__: { get_attr: [aai2_floating_ip, floating_ip_address] }
1842             __mrouter_floating_ip_addr__: { get_attr: [mrouter_floating_ip, floating_ip_address] }
1843             __sdc_floating_ip_addr__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1844             __policy_floating_ip_addr__: { get_attr: [policy_floating_ip, floating_ip_address] }
1845             __openo_floating_ip_addr__: { get_attr: [openo_floating_ip, floating_ip_address] }
1846             __dcae_c_floating_ip_addr__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1847             # container versions
1848             __dcae_docker__:  { get_param: dcae_docker }
1849             __dcae_snmptrap_docker__:  { get_param: dcae_snmptrap_docker }
1850             __dcae_ves_docker__:  { get_param: dcae_ves_docker }
1851             __dcae_bootstrap_docker__:  { get_param: dcae_bootstrap_docker }
1852             __dcae_cm_docker__:  { get_param: dcae_cm_docker }
1853             __dcae_k8sbootstrap_docker__:  { get_param: dcae_k8sbootstrap_docker }
1854             __dcae_redisc_docker__:  { get_param: dcae_redisc_docker }
1855             __dcae_tca_docker__:  { get_param: dcae_tca_docker }
1856             __dcae_cb_docker__:  { get_param: dcae_cb_docker }
1857             __dcae_cbs_docker__:  { get_param: dcae_cbs_docker }
1858             __dcae_dh_docker__:  { get_param: dcae_dh_docker }
1859             __dcae_inv_docker__:  { get_param: dcae_inv_docker }
1860             __dcae_ph_docker__:  { get_param: dcae_ph_docker }
1861             __dcae_sch_docker__:  { get_param: dcae_sch_docker }
1862             __dcae_heartbeat_docker__:  { get_param: dcae_heartbeat_docker }
1863             __dcae_prh_docker__:  { get_param: dcaeprh_docker }
1864             __holmes_em_docker__:  { get_param: holmes_em_docker }
1865             __holmes_rm_docker__:  { get_param: holmes_rm_docker }
1866
1867
1868           template: |
1869             #!/bin/bash
1870
1871             # Create configuration files
1872             mkdir -p /opt/config
1873             echo "__rand_str__" > /opt/config/dcae_zone.txt
1874             echo "__rand_str__" > /opt/config/rand_str.txt
1875             # repo related
1876             echo "__docker_version__" > /opt/config/docker_version.txt
1877             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1878             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1879             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1880             echo "__nexus_username__" > /opt/config/nexus_username.txt
1881             echo "__nexus_password__" > /opt/config/nexus_password.txt
1882             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1883             # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1884             echo "__dcae_deployment_profile__" > /opt/config/dcae_deployment_profile.txt
1885             echo "__mac_addr__" > /opt/config/mac_addr.txt
1886             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1887             echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1888             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1889             echo "__external_dns__" > /opt/config/external_dns.txt
1890             echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
1891             echo "__dcae_domain__" > /opt/config/dcae_domain.txt
1892             # conf for the OpenStack env where DCAE is deployed
1893             echo "__openstack_keystone_url__" > /opt/config/openstack_keystone_url.txt
1894             echo "__dcaeos_cloud_env__" > /opt/config/cloud_env.txt
1895             echo "__dcaeos_keystone_url__" > /opt/config/keystone_url.txt
1896             echo "__dcaeos_region__" > /opt/config/openstack_region.txt
1897             echo "__dcaeos_tenant_id__" > /opt/config/tenant_id.txt
1898             echo "__dcaeos_tenant_name__" > /opt/config/tenant_name.txt
1899             echo "__dcaeos_username__" > /opt/config/openstack_user.txt
1900             echo "__dcaeos_password__" > /opt/config/openstack_password.txt
1901             echo "__dcaeos_key_name__" > /opt/config/key_name.txt
1902             echo "__dcaeos_public_key__" > /opt/config/pub_key.txt
1903             echo "__dcaeos_private_key__" > /opt/config/priv_key
1904             echo "__dcaeos_private_network_name__" > /opt/config/openstack_private_network_name.txt
1905             echo "__dcaeos_public_network_name__" > /opt/config/public_net_name.txt
1906             echo "__dcaeos_public_network_name__" > /opt/config/public_net_id.txt
1907             echo "__dcaeos_ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1908             echo "__dcaeos_centos_7_image__" > /opt/config/centos_7_image.txt
1909             echo "__dcaeos_security_group__" > /opt/config/security_group.txt
1910             echo "__dcaeos_flavor_id__" > /opt/config/flavor_id.txt
1911             echo "__dcaeos_flavor_id_cdap__" > /opt/config/flavor_id_cdap.txt
1912             echo "__dcaeos_dnsaas_config_enabled__" > /opt/config/dnsaas_config_enabled.txt
1913             echo "__dcaeos_dnsaas_region__" > /opt/config/dnsaas_region.txt
1914             echo "__dcaeos_dnsaas_keystone_url__" > /opt/config/dnsaas_keystone_url.txt
1915             echo "__dnsaas_tenant_name__" > /opt/config/dnsaas_tenant_name.txt
1916             echo "__dcaeos_dnsaas_username__" > /opt/config/dnsaas_username.txt
1917             echo "__dcaeos_dnsaas_password__" > /opt/config/dnsaas_password.txt
1918             # fixed private IP addresses of other ONAP components
1919             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1920             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
1921             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
1922             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
1923             echo "__openo_ip_addr__" > /opt/config/msb_ip_addr.txt
1924             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
1925             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
1926             # floating IPs
1927             echo "__dns_floating_ip_addr__" > /opt/config/dns_floating_ip_addr.txt
1928             echo "__aai1_floating_ip_addr__" > /opt/config/aai1_floating_ip_addr.txt
1929             echo "__aai2_floating_ip_addr__" > /opt/config/aai2_floating_ip_addr.txt
1930             echo "__mrouter_floating_ip_addr__" > /opt/config/mrouter_floating_ip_addr.txt
1931             echo "__sdc_floating_ip_addr__" > /opt/config/sdc_floating_ip_addr.txt
1932             echo "__policy_floating_ip_addr__" > /opt/config/policy_floating_ip_addr.txt
1933             echo "__openo_floating_ip_addr__" > /opt/config/openo_floating_ip_addr.txt
1934             echo "__dcae_c_floating_ip_addr__" > /opt/config/dcae_c_floating_ip_addr.txt
1935             # container versions
1936             echo "__dcae_docker__" > /opt/config/dcae_docker.txt
1937             echo "__dcae_snmptrap_docker__" > /opt/config/dcae_docker_snmptrap.txt
1938             echo "__dcae_ves_docker__" > /opt/config/dcae_docker_ves.txt
1939             echo "__dcae_bootstrap_docker__" > /opt/config/dcae_docker_bootstrap.txt
1940             echo "__dcae_cm_docker__" > /opt/config/dcae_docker_cm.txt
1941             echo "__dcae_k8sbootstrap_docker__" > /opt/config/dcae_docker_k8sbootstrap.txt
1942             echo "__dcae_redisc_docker__" > /opt/config/dcae_docker_redisc.txt
1943             echo "__dcae_tca_docker__" > /opt/config/dcae_docker_tca.txt
1944             echo "__dcae_cb_docker__" > /opt/config/dcae_docker_cb.txt
1945             echo "__dcae_cbs_docker__" > /opt/config/dcae_docker_cbs.txt
1946             echo "__dcae_dh_docker__" > /opt/config/dcae_docker_dh.txt
1947             echo "__dcae_inv_docker__" > /opt/config/dcae_docker_inv.txt
1948             echo "__dcae_ph_docker__" > /opt/config/dcae_docker_ph.txt
1949             echo "__dcae_sch_docker__" > /opt/config/dcae_docker_sch.txt
1950             echo "__dcae_heartbeat_docker__" > /opt/config/dcae_docker_heartbeat.txt
1951             echo "__dcae_prh_docker__" > /opt/config/dcae_docker_prh.txt
1952             echo "__holmes_em_docker__" > /opt/config/holmes_docker_em.txt
1953             echo "__holmes_rm_docker__" > /opt/config/holmes_docker_rm.txt
1954
1955             # Download and run install script
1956             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1957             cd /opt
1958             chmod +x dcae2_install.sh
1959             ./dcae2_install.sh > /tmp/dcae2_install.log 2>&1
1960
1961
1962   # MUSIC instantiation
1963   music_private_port:
1964     type: OS::Neutron::Port
1965     properties:
1966       network: { get_resource: oam_onap }
1967       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: music_ip_addr }}]
1968       security_groups:
1969       - { get_resource: onap_sg }
1970
1971   music_floating_ip:
1972     type: OS::Neutron::FloatingIP
1973     properties:
1974       floating_network_id: { get_param: public_net_id }
1975       port_id: { get_resource: music_private_port }
1976
1977   music_vm:
1978     type: OS::Nova::Server
1979     properties:
1980       image: { get_param: ubuntu_1404_image }
1981       flavor: { get_param: flavor_large }
1982       name:
1983         str_replace:
1984           template: base-music
1985           params:
1986             base: { get_param: vm_base_name }
1987       key_name: { get_resource: vm_key }
1988       networks:
1989         - port: { get_resource: music_private_port }
1990       user_data_format: RAW
1991       user_data:
1992         str_replace:
1993           params:
1994             __nexus_repo__: { get_param: nexus_repo }
1995             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1996             __nexus_username__: { get_param: nexus_username }
1997             __nexus_password__: { get_param: nexus_password }
1998             __artifacts_version__: { get_param: artifacts_version }
1999             __dns_ip_addr__: { get_param: dns_ip_addr }
2000             __docker_version__: { get_param: music_docker }
2001             __music_repo__: { get_param: music_repo }
2002             __gerrit_branch__: { get_param: music_branch }
2003             __cloud_env__: { get_param: cloud_env }
2004             __external_dns__: { get_param: external_dns }
2005           template: |
2006             #!/bin/bash
2007
2008             # Create configuration files
2009             mkdir -p /opt/config
2010             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
2011             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
2012             echo "__nexus_username__" > /opt/config/nexus_username.txt
2013             echo "__nexus_password__" > /opt/config/nexus_password.txt
2014             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
2015             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
2016             echo "__docker_version__" > /opt/config/docker_version.txt
2017             echo "__music_repo__" > /opt/config/remote_repo.txt
2018             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
2019             echo "__cloud_env__" > /opt/config/cloud_env.txt
2020             echo "__external_dns__" > /opt/config/external_dns.txt
2021
2022             # Download and run install script
2023             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/music_install.sh -o /opt/music_install.sh
2024             cd /opt
2025             chmod +x music_install.sh
2026             ./music_install.sh
2027
2028
2029   # OOF instantiation
2030   oof_private_port:
2031     type: OS::Neutron::Port
2032     properties:
2033       network: { get_resource: oam_onap }
2034       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: oof_ip_addr }}]
2035       security_groups:
2036       - { get_resource: onap_sg }
2037
2038   oof_floating_ip:
2039     type: OS::Neutron::FloatingIP
2040     properties:
2041       floating_network_id: { get_param: public_net_id }
2042       port_id: { get_resource: oof_private_port }
2043
2044   oof_vm:
2045     type: OS::Nova::Server
2046     properties:
2047       image: { get_param: ubuntu_1604_image }
2048       flavor: { get_param: flavor_large }
2049       name:
2050         str_replace:
2051           template: base-oof
2052           params:
2053             base: { get_param: vm_base_name }
2054       key_name: { get_resource: vm_key }
2055       networks:
2056         - port: { get_resource: oof_private_port }
2057       user_data_format: RAW
2058       user_data:
2059         str_replace:
2060           params:
2061             __nexus_repo__: { get_param: nexus_repo }
2062             __nexus_docker_repo__: { get_param: nexus_docker_repo }
2063             __nexus_username__: { get_param: nexus_username }
2064             __nexus_password__: { get_param: nexus_password }
2065             __artifacts_version__: { get_param: artifacts_version }
2066             __dns_ip_addr__: { get_param: dns_ip_addr }
2067             __docker_version__: { get_param: oof_docker }
2068             __cloud_env__: { get_param: cloud_env }
2069             __external_dns__: { get_param: external_dns }
2070           template: |
2071             #!/bin/bash
2072
2073             # Create configuration files
2074             mkdir -p /opt/config
2075             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
2076             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
2077             echo "__nexus_username__" > /opt/config/nexus_username.txt
2078             echo "__nexus_password__" > /opt/config/nexus_password.txt
2079             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
2080             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
2081             echo "__docker_version__" > /opt/config/docker_version.txt
2082             echo "__cloud_env__" > /opt/config/cloud_env.txt
2083             echo "__external_dns__" > /opt/config/external_dns.txt
2084
2085             # Download and run install script
2086             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/oof_install.sh -o /opt/oof_install.sh
2087             cd /opt
2088             chmod +x oof_install.sh
2089             ./oof_install.sh
2090
2091
2092   # AAF instantiation
2093   aaf_private_port:
2094     type: OS::Neutron::Port
2095     properties:
2096       network: { get_resource: oam_onap }
2097       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aaf_ip_addr }}]
2098       security_groups:
2099       - { get_resource: onap_sg }
2100
2101   aaf_floating_ip:
2102     type: OS::Neutron::FloatingIP
2103     properties:
2104       floating_network_id: { get_param: public_net_id }
2105       port_id: { get_resource: aaf_private_port }
2106
2107   aaf_vm:
2108     type: OS::Nova::Server
2109     properties:
2110       image: { get_param: ubuntu_1404_image }
2111       flavor: { get_param: flavor_medium }
2112       name:
2113         str_replace:
2114           template: base-aaf
2115           params:
2116             base: { get_param: vm_base_name }
2117       key_name: { get_resource: vm_key }
2118       networks:
2119         - port: { get_resource: aaf_private_port }
2120       user_data_format: RAW
2121       user_data:
2122         str_replace:
2123           params:
2124             __nexus_repo__: { get_param: nexus_repo }
2125             __nexus_docker_repo__: { get_param: nexus_docker_repo }
2126             __nexus_username__: { get_param: nexus_username }
2127             __nexus_password__: { get_param: nexus_password }
2128             __artifacts_version__: { get_param: artifacts_version }
2129             __dns_ip_addr__: { get_param: dns_ip_addr }
2130             __docker_version__: { get_param: aaf_docker }
2131             __cloud_env__: { get_param: cloud_env }
2132             __external_dns__: { get_param: external_dns }
2133             __aaf_repo__: { get_param: aaf_repo }
2134             __gerrit_branch__: { get_param: aaf_branch }
2135           template: |
2136             #!/bin/bash
2137
2138             # Create configuration files
2139             mkdir -p /opt/config
2140             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
2141             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
2142             echo "__nexus_username__" > /opt/config/nexus_username.txt
2143             echo "__nexus_password__" > /opt/config/nexus_password.txt
2144             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
2145             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
2146             echo "__docker_version__" > /opt/config/docker_version.txt
2147             echo "__cloud_env__" > /opt/config/cloud_env.txt
2148             echo "__external_dns__" > /opt/config/external_dns.txt
2149             echo "__aaf_repo__" > /opt/config/remote_repo.txt
2150             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
2151
2152             # Download and run install script
2153             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aaf_install.sh -o /opt/aaf_install.sh
2154             cd /opt
2155             chmod +x aaf_install.sh
2156             ./aaf_install.sh
2157
2158   # NBI instantiation
2159   nbi_private_port:
2160     type: OS::Neutron::Port
2161     properties:
2162       network: { get_resource: oam_onap }
2163       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: nbi_ip_addr }}]
2164       security_groups:
2165       - { get_resource: onap_sg }
2166
2167   nbi_floating_ip:
2168     type: OS::Neutron::FloatingIP
2169     properties:
2170       floating_network_id: { get_param: public_net_id }
2171       port_id: { get_resource: nbi_private_port }
2172
2173   nbi_vm:
2174     type: OS::Nova::Server
2175     properties:
2176       image: { get_param: ubuntu_1604_image }
2177       flavor: { get_param: flavor_small }
2178       name:
2179         str_replace:
2180           template: base-nbi
2181           params:
2182             base: { get_param: vm_base_name }
2183       key_name: { get_resource: vm_key }
2184       networks:
2185         - port: { get_resource: nbi_private_port }
2186       user_data_format: RAW
2187       user_data:
2188         str_replace:
2189           params:
2190             __nexus_repo__: { get_param: nexus_repo }
2191             __nexus_docker_repo__: { get_param: nexus_docker_repo }
2192             __nexus_username__: { get_param: nexus_username }
2193             __nexus_password__: { get_param: nexus_password }
2194             __artifacts_version__: { get_param: artifacts_version }
2195             __dns_ip_addr__: { get_param: dns_ip_addr }
2196             __docker_version__: { get_param: nbi_docker }
2197             __nbi_repo__: { get_param: nbi_repo }
2198             __gerrit_branch__: { get_param: nbi_branch }
2199             __cloud_env__: { get_param: cloud_env }
2200             __external_dns__: { get_param: external_dns }
2201           template: |
2202             #!/bin/bash
2203
2204             # Create configuration files
2205             mkdir -p /opt/config
2206             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
2207             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
2208             echo "__nexus_username__" > /opt/config/nexus_username.txt
2209             echo "__nexus_password__" > /opt/config/nexus_password.txt
2210             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
2211             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
2212             echo "__docker_version__" > /opt/config/docker_version.txt
2213             echo "__nbi_repo__" > /opt/config/remote_repo.txt
2214             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
2215             echo "__cloud_env__" > /opt/config/cloud_env.txt
2216             echo "__external_dns__" > /opt/config/external_dns.txt
2217
2218             # Download and run install script
2219             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/nbi_install.sh -o /opt/nbi_install.sh
2220             cd /opt
2221             chmod +x nbi_install.sh
2222             ./nbi_install.sh