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