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