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