Remove dead configuration variables
[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   mvim_openstack_docker:
414     type: string
415   uui_docker:
416     type: string
417   esr_docker:
418     type: string
419   dgbuilder_docker:
420     type: string
421   cli_docker:
422     type: string
423   music_docker:
424     type: string
425   oof_docker:
426     type: string
427   aaf_docker:
428     type: string
429   nbi_docker:
430     type: string
431   dbcl_docker:
432     type: string
433
434   vfc_nokia_docker:
435     type: string
436   vfc_nokiav2_docker:
437     type: string
438   vfc_ztevnfmdriver_docker:
439     type: string
440   vfc_ztesdncdriver_docker:
441     type: string
442   vfc_vnfres_docker:
443     type: string
444   vfc_vnfmgr_docker:
445     type: string
446   vfc_vnflcm_docker:
447     type: string
448   vfc_resmanagement_docker:
449     type: string
450   vfc_nslcm_docker:
451     type: string
452   vfc_huawei_docker:
453     type: string
454   vfc_jujudriver_docker:
455     type: string
456   vfc_gvnfmdriver_docker:
457     type: string
458   vfc_emsdriver_docker:
459     type: string
460   vfc_catalog_docker:
461     type: string
462   vfc_wfengine_mgrservice_docker:
463     type: string
464   vfc_wfengine_activiti_docker:
465     type: string
466   vfc_multivimproxy_docker:
467     type: string
468
469   aai_branch:
470     type: string
471   appc_branch:
472     type: string
473   so_branch:
474     type: string
475   mr_branch:
476     type: string
477   policy_branch:
478     type: string
479   portal_branch:
480     type: string
481   robot_branch:
482     type: string
483   sdc_branch:
484     type: string
485   sdnc_branch:
486     type: string
487   vid_branch:
488     type: string
489   clamp_branch:
490     type: string
491   vnfsdk_branch:
492     type: string
493   music_branch:
494     type: string
495   nbi_branch:
496     type: string
497   aaf_branch:
498     type: string
499   oof_branch:
500     type: string
501
502 #############
503 #           #
504 # RESOURCES #
505 #           #
506 #############
507
508 resources:
509   random-str:
510     type: OS::Heat::RandomString
511     properties:
512       length: 4
513
514   # Public key used to access ONAP components
515   vm_key:
516     type: OS::Nova::KeyPair
517     properties:
518       name:
519         str_replace:
520           template: base_rand
521           params:
522             base: { get_param: key_name }
523             rand: { get_resource: random-str }
524       public_key: { get_param: pub_key }
525       save_private_key: false
526
527
528   # ONAP security group
529   onap_sg:
530     type: OS::Neutron::SecurityGroup
531     properties:
532       name:
533         str_replace:
534           template: base_rand
535           params:
536             base: onap_sg
537             rand: { get_resource: random-str }
538       description: security group used by ONAP
539       rules:
540         # All egress traffic
541         - direction: egress
542           ethertype: IPv4
543         - direction: egress
544           ethertype: IPv6
545         # ingress traffic
546         # ICMP
547         - protocol: icmp
548         - protocol: udp
549           port_range_min: 1
550           port_range_max: 65535
551         - protocol: tcp
552           port_range_min: 1
553           port_range_max: 65535
554
555
556
557   # ONAP management private network
558   oam_onap:
559     type: OS::Neutron::Net
560     properties:
561       name:
562         str_replace:
563           template: oam_onap_rand
564           params:
565             rand: { get_resource: random-str }
566
567   oam_onap_subnet:
568     type: OS::Neutron::Subnet
569     properties:
570       name:
571         str_replace:
572           template: oam_onap_rand
573           params:
574             rand: { get_resource: random-str }
575       network_id: { get_resource: oam_onap }
576       cidr: { get_param: oam_network_cidr }
577       dns_nameservers: { get_param: dns_list }
578
579   router:
580     type: OS::Neutron::Router
581     properties:
582       external_gateway_info:
583         network: { get_param: public_net_id }
584
585   router_interface:
586     type: OS::Neutron::RouterInterface
587     properties:
588       router_id: { get_resource: router }
589       subnet_id: { get_resource: oam_onap_subnet }
590
591
592   # DNS Server instantiation
593   dns_private_port:
594     type: OS::Neutron::Port
595     properties:
596       network: { get_resource: oam_onap }
597       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
598       security_groups:
599       - { get_resource: onap_sg }
600
601   dns_floating_ip:
602     type: OS::Neutron::FloatingIP
603     properties:
604       floating_network_id: { get_param: public_net_id }
605       port_id: { get_resource: dns_private_port }
606
607   dns_vm:
608     type: OS::Nova::Server
609     properties:
610       image: { get_param: ubuntu_1404_image }
611       flavor: { get_param: flavor_small }
612       name:
613         str_replace:
614           template: base-dns-server
615           params:
616             base: { get_param: vm_base_name }
617       key_name: { get_resource: vm_key }
618       networks:
619         - port: { get_resource: dns_private_port }
620       user_data_format: RAW
621       user_data:
622         str_replace:
623           params:
624             __nexus_repo__: { get_param: nexus_repo }
625             __artifacts_version__: { get_param: artifacts_version }
626             __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
627             __dns_ip_addr__: { get_param: dns_ip_addr }
628             __aai1_ip_addr__: { get_param: aai1_ip_addr }
629             __aai2_ip_addr__: { get_param: aai2_ip_addr }
630             __appc_ip_addr__: { get_param: appc_ip_addr }
631             __dcae_ip_addr__: { get_param: dcae_ip_addr }
632             __so_ip_addr__: { get_param: so_ip_addr }
633             __mr_ip_addr__: { get_param: mr_ip_addr }
634             __policy_ip_addr__: { get_param: policy_ip_addr }
635             __portal_ip_addr__: { get_param: portal_ip_addr }
636             __robot_ip_addr__: { get_param: robot_ip_addr }
637             __sdc_ip_addr__: { get_param: sdc_ip_addr }
638             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
639             __vid_ip_addr__: { get_param: vid_ip_addr }
640             __clamp_ip_addr__: { get_param: clamp_ip_addr }
641             __openo_ip_addr__: { get_param: openo_ip_addr }
642             __music_ip_addr__: { get_param: music_ip_addr }
643             __oof_ip_addr__: { get_param: oof_ip_addr }
644             __aaf_ip_addr__: { get_param: aaf_ip_addr }
645             __nbi_ip_addr__: { get_param: nbi_ip_addr }
646             __cloud_env__: { get_param: cloud_env }
647             __external_dns__: { get_param: external_dns }
648             __dns_forwarder__: { get_param: dns_forwarder }
649           template: |
650             #!/bin/bash
651
652             # Create configuration files
653             mkdir -p /opt/config
654             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
655             echo "__cloud_env__" > /opt/config/cloud_env.txt
656             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
657             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
658             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
659             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
660             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
661             echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
662             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
663             echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
664             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
665             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
666             echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
667             echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
668             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
669             echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
670             echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
671             echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
672             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
673             echo "__music_ip_addr__" > /opt/config/music_ip_addr.txt
674             echo "__oof_ip_addr__" > /opt/config/oof_ip_addr.txt
675             echo "__aaf_ip_addr__" > /opt/config/aaf_ip_addr.txt
676             echo "__nbi_ip_addr__" > /opt/config/nbi_ip_addr.txt
677             echo "__external_dns__" > /opt/config/external_dns.txt
678             echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
679
680             # Download and run install script
681             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
682             cd /opt
683             chmod +x dns_install.sh
684             ./dns_install.sh
685
686
687   # A&AI instantiation (2 VMs)
688   aai1_private_port:
689     type: OS::Neutron::Port
690     properties:
691       network: { get_resource: oam_onap }
692       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
693       security_groups:
694       - { get_resource: onap_sg }
695
696   aai1_floating_ip:
697     type: OS::Neutron::FloatingIP
698     properties:
699       floating_network_id: { get_param: public_net_id }
700       port_id: { get_resource: aai1_private_port }
701
702   aai1_vm:
703     type: OS::Nova::Server
704     depends_on: aai2_vm
705     properties:
706       image: { get_param: ubuntu_1404_image }
707       flavor: { get_param: flavor_xlarge }
708       name:
709         str_replace:
710           template: base-aai-inst1
711           params:
712             base: { get_param: vm_base_name }
713       key_name: { get_resource: vm_key }
714       networks:
715         - port: { get_resource: aai1_private_port }
716       user_data_format: RAW
717       user_data:
718         str_replace:
719           params:
720             __nexus_repo__: { get_param: nexus_repo }
721             __nexus_docker_repo__: { get_param: nexus_docker_repo }
722             __nexus_username__: { get_param: nexus_username }
723             __nexus_password__: { get_param: nexus_password }
724             __dmaap_topic__: { get_param: dmaap_topic }
725             __artifacts_version__: { get_param: artifacts_version }
726             __dns_ip_addr__: { get_param: dns_ip_addr }
727             __docker_version__: { get_param: aai_docker }
728             __aai_sparky_docker__ : { get_param: aai_sparky_docker }
729             __gerrit_branch__: { get_param: aai_branch }
730             __cloud_env__: { get_param: cloud_env }
731             __external_dns__: { get_param: external_dns }
732             __aai_repo__: { get_param: aai_repo }
733           template: |
734             #!/bin/bash
735
736             # Create configuration files
737             mkdir -p /opt/config
738             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
739             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
740             echo "__nexus_username__" > /opt/config/nexus_username.txt
741             echo "__nexus_password__" > /opt/config/nexus_password.txt
742             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
743             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
744             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
745             echo "__docker_version__" > /opt/config/docker_version.txt
746             echo "__aai_sparky_docker__" > /opt/config/sparky_version.txt
747             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
748             echo "aai_instance_1" > /opt/config/aai_instance.txt
749             echo "__cloud_env__" > /opt/config/cloud_env.txt
750             echo "__external_dns__" > /opt/config/external_dns.txt
751             echo "__aai_repo__" > /opt/config/remote_repo.txt
752
753             # Download and run install script
754             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
755             cd /opt
756             chmod +x aai_install.sh
757             ./aai_install.sh
758
759
760   aai2_private_port:
761     type: OS::Neutron::Port
762     properties:
763       network: { get_resource: oam_onap }
764       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
765       security_groups:
766       - { get_resource: onap_sg }
767
768   aai2_floating_ip:
769     type: OS::Neutron::FloatingIP
770     properties:
771       floating_network_id: { get_param: public_net_id }
772       port_id: { get_resource: aai2_private_port }
773
774   aai2_vm:
775     type: OS::Nova::Server
776     properties:
777       image: { get_param: ubuntu_1404_image }
778       flavor: { get_param: flavor_xlarge }
779       name:
780         str_replace:
781           template: base-aai-inst2
782           params:
783             base: { get_param: vm_base_name }
784       key_name: { get_resource: vm_key }
785       networks:
786         - port: { get_resource: aai2_private_port }
787       user_data_format: RAW
788       user_data:
789         str_replace:
790           params:
791             __nexus_repo__: { get_param: nexus_repo }
792             __nexus_docker_repo__: { get_param: nexus_docker_repo }
793             __nexus_username__: { get_param: nexus_username }
794             __nexus_password__: { get_param: nexus_password }
795             __dmaap_topic__: { get_param: dmaap_topic }
796             __artifacts_version__: { get_param: artifacts_version }
797             __dns_ip_addr__: { get_param: dns_ip_addr }
798             __docker_version__: { get_param: aai_docker }
799             __gerrit_branch__: { get_param: aai_branch }
800             __cloud_env__: { get_param: cloud_env }
801             __external_dns__: { get_param: external_dns }
802             __aai_repo__: { get_param: aai_repo }
803           template: |
804             #!/bin/bash
805
806             # Create configuration files
807             mkdir -p /opt/config
808             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
809             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
810             echo "__nexus_username__" > /opt/config/nexus_username.txt
811             echo "__nexus_password__" > /opt/config/nexus_password.txt
812             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
813             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
814             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
815             echo "__docker_version__" > /opt/config/docker_version.txt
816             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
817             echo "aai_instance_2" > /opt/config/aai_instance.txt
818             echo "__cloud_env__" > /opt/config/cloud_env.txt
819             echo "__external_dns__" > /opt/config/external_dns.txt
820             echo "__aai_repo__" > /opt/config/remote_repo.txt
821
822             # Download and run install script
823             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
824             cd /opt
825             chmod +x aai_install.sh
826             ./aai_install.sh
827
828
829   # SO instantiation
830   so_private_port:
831     type: OS::Neutron::Port
832     properties:
833       network: { get_resource: oam_onap }
834       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
835       security_groups:
836       - { get_resource: onap_sg }
837
838   so_floating_ip:
839     type: OS::Neutron::FloatingIP
840     properties:
841       floating_network_id: { get_param: public_net_id }
842       port_id: { get_resource: so_private_port }
843
844   so_vm:
845     type: OS::Nova::Server
846     properties:
847       image: { get_param: ubuntu_1604_image }
848       flavor: { get_param: flavor_large }
849       name:
850         str_replace:
851           template: base-so
852           params:
853             base: { get_param: vm_base_name }
854       key_name: { get_resource: vm_key }
855       networks:
856         - port: { get_resource: so_private_port }
857       user_data_format: RAW
858       user_data:
859         str_replace:
860           params:
861             __nexus_repo__: { get_param: nexus_repo }
862             __nexus_docker_repo__: { get_param: nexus_docker_repo }
863             __nexus_username__: { get_param: nexus_username }
864             __nexus_password__: { get_param: nexus_password }
865             __openstack_username__: { get_param: openstack_username }
866             __openstack_tenant_id__: { get_param: openstack_tenant_id }
867             __openstack_api_key__: { get_param: openstack_api_key }
868             __openstack_region__: { get_param: openstack_region }
869             __keystone_url__: { get_param: keystone_url }
870             __dmaap_topic__: { get_param: dmaap_topic }
871             __artifacts_version__: { get_param: artifacts_version }
872             __dns_ip_addr__: { get_param: dns_ip_addr }
873             __openo_ip__: { get_param: openo_ip_addr }
874             __docker_version__: { get_param: so_docker }
875             __gerrit_branch__: { get_param: so_branch }
876             __cloud_env__: { get_param: cloud_env }
877             __external_dns__: { get_param: external_dns }
878             __so_repo__: { get_param: so_repo }
879           template: |
880             #!/bin/bash
881
882             # Create configuration files
883             mkdir -p /opt/config
884             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
885             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
886             echo "__nexus_username__" > /opt/config/nexus_username.txt
887             echo "__nexus_password__" > /opt/config/nexus_password.txt
888             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
889             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
890             echo "__openo_ip__" > /opt/config/openo_ip.txt
891             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
892             echo "__openstack_username__" > /opt/config/openstack_username.txt
893             echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
894             echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
895             echo "__openstack_region__" > /opt/config/openstack_region.txt
896             echo "__keystone_url__" > /opt/config/keystone.txt
897             echo "__docker_version__" > /opt/config/docker_version.txt
898             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
899             echo "__cloud_env__" > /opt/config/cloud_env.txt
900             echo "__external_dns__" > /opt/config/external_dns.txt
901             echo "__so_repo__" > /opt/config/remote_repo.txt
902
903             # Download and run install script
904             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
905             cd /opt
906             chmod +x so_install.sh
907             ./so_install.sh
908
909
910   # Message Router instantiation
911   mrouter_private_port:
912     type: OS::Neutron::Port
913     properties:
914       network: { get_resource: oam_onap }
915       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
916       security_groups:
917       - { get_resource: onap_sg }
918
919   mrouter_floating_ip:
920     type: OS::Neutron::FloatingIP
921     properties:
922       floating_network_id: { get_param: public_net_id }
923       port_id: { get_resource: mrouter_private_port }
924
925   mrouter_vm:
926     type: OS::Nova::Server
927     properties:
928       image: { get_param: ubuntu_1404_image }
929       flavor: { get_param: flavor_large }
930       name:
931         str_replace:
932           template: base-message-router
933           params:
934             base: { get_param: vm_base_name }
935       key_name: { get_resource: vm_key }
936       networks:
937         - port: { get_resource: mrouter_private_port }
938       user_data_format: RAW
939       user_data:
940         str_replace:
941           params:
942             __nexus_repo__: { get_param: nexus_repo }
943             __nexus_docker_repo__: { get_param: nexus_docker_repo }
944             __nexus_username__: { get_param: nexus_username }
945             __nexus_password__: { get_param: nexus_password }
946             __artifacts_version__: { get_param: artifacts_version }
947             __dns_ip_addr__: { get_param: dns_ip_addr }
948             __gerrit_branch__: { get_param: mr_branch }
949             __cloud_env__: { get_param: cloud_env }
950             __external_dns__: { get_param: external_dns }
951             __mr_repo__: { get_param: mr_repo }
952             __dbcl_docker__: { get_param: dbcl_docker }
953           template: |
954             #!/bin/bash
955
956             # Create configuration files
957             mkdir -p /opt/config
958             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
959             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
960             echo "__nexus_username__" > /opt/config/nexus_username.txt
961             echo "__nexus_password__" > /opt/config/nexus_password.txt
962             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
963             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
964             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
965             echo "__cloud_env__" > /opt/config/cloud_env.txt
966             echo "__external_dns__" > /opt/config/external_dns.txt
967             echo "__mr_repo__" > /opt/config/remote_repo.txt
968             echo "__dbcl_docker__" > /opt/config/docker_version.txt
969
970             # Download and run install script
971             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
972             cd /opt
973             chmod +x mr_install.sh
974             ./mr_install.sh
975
976
977   # Robot Framework instantiation
978   robot_private_port:
979     type: OS::Neutron::Port
980     properties:
981       network: { get_resource: oam_onap }
982       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
983       security_groups:
984       - { get_resource: onap_sg }
985
986   robot_floating_ip:
987     type: OS::Neutron::FloatingIP
988     properties:
989       floating_network_id: { get_param: public_net_id }
990       port_id: { get_resource: robot_private_port }
991
992   robot_vm:
993     type: OS::Nova::Server
994     properties:
995       image: { get_param: ubuntu_1604_image }
996       flavor: { get_param: flavor_medium }
997       name:
998         str_replace:
999           template: base-robot
1000           params:
1001             base: { get_param: vm_base_name }
1002       key_name: { get_resource: vm_key }
1003       networks:
1004         - port: { get_resource: robot_private_port }
1005       user_data_format: RAW
1006       user_data:
1007         str_replace:
1008           params:
1009             __nexus_repo__: { get_param: nexus_repo }
1010             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1011             __nexus_username__: { get_param: nexus_username }
1012             __nexus_password__: { get_param: nexus_password }
1013             __network_name__: { get_attr: [oam_onap, name] }
1014             __openstack_username__: { get_param: openstack_username }
1015             __openstack_api_key__: { get_param : openstack_api_key }
1016             __openstack_tenant_id__: { get_param: openstack_tenant_id }
1017             __artifacts_version__: { get_param: artifacts_version }
1018             __openstack_region__: { get_param: openstack_region }
1019             __dns_ip_addr__: { get_param: dns_ip_addr }
1020             __gerrit_branch__: { get_param: robot_branch }
1021             __cloud_env__: { get_param: cloud_env }
1022             __keystone_url__: { get_param: keystone_url }
1023             __aai1_ip_addr__: { get_param: aai1_ip_addr }
1024             __aai2_ip_addr__: { get_param: aai2_ip_addr }
1025             __appc_ip_addr__: { get_param: appc_ip_addr }
1026             __dcae_ip_addr__: { get_param: dcae_ip_addr }
1027             __so_ip_addr__: { get_param: so_ip_addr }
1028             __mr_ip_addr__: { get_param: mr_ip_addr }
1029             __policy_ip_addr__: { get_param: policy_ip_addr }
1030             __portal_ip_addr__: { get_param: portal_ip_addr }
1031             __sdc_ip_addr__: { get_param: sdc_ip_addr }
1032             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1033             __vid_ip_addr__: { get_param: vid_ip_addr }
1034             __clamp_ip_addr__: { get_param: clamp_ip_addr }
1035             __openo_ip_addr__: { get_param: openo_ip_addr }
1036             __music_ip_addr__: { get_param: music_ip_addr }
1037             __oof_ip_addr__: { get_param: oof_ip_addr }
1038             __aaf_ip_addr__: { get_param: aaf_ip_addr }
1039             __nbi_ip_addr__: { get_param: nbi_ip_addr }
1040             __external_dns__: { get_param: external_dns }
1041             __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
1042             __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1043             __vm_flavor__: { get_param: flavor_medium }
1044             __public_net_id__: { get_param: public_net_id }
1045             __script_version__: { get_param: artifacts_version }
1046             __robot_repo__: { get_param: robot_repo }
1047             __docker_version__: { get_param: robot_docker }
1048           template: |
1049             #!/bin/bash
1050
1051             # Create configuration files
1052             mkdir -p /opt/config
1053             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1054             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1055             echo "__nexus_username__" > /opt/config/nexus_username.txt
1056             echo "__nexus_password__" > /opt/config/nexus_password.txt
1057             echo "__network_name__" > /opt/config/network.txt
1058             echo "__openstack_username__" > /opt/config/openstack_username.txt
1059             echo "__openstack_api_key__" > /opt/config/openstack_password.txt
1060             echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
1061             echo "__openstack_region__" > /opt/config/region.txt
1062             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1063             echo "__docker_version__" > /opt/config/docker_version.txt
1064             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1065             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1066             echo "__keystone_url__" > /opt/config/keystone.txt
1067             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
1068             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
1069             echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
1070             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1071             echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
1072             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1073             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
1074             echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
1075             echo "__portal_ip_addr__" > /opt/config/cli_ip_addr.txt
1076             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
1077             echo "__sdc_ip_addr__" > /opt/config/sdc_be_ip_addr.txt
1078             echo "__sdc_ip_addr__" > /opt/config/sdc_fe_ip_addr.txt
1079             echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
1080             echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
1081             echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
1082             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
1083             echo "__openo_ip_addr__" > /opt/config/vnfsdk_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             __mvim_openstack_docker__: { get_param: mvim_openstack_docker }
1673             __uui_docker__: { get_param: uui_docker }
1674             __esr_docker__: { get_param: esr_docker }
1675             __vnfsdk_repo__: { get_param: vnfsdk_repo }
1676             __vfc_nokia_docker__: { get_param: vfc_nokia_docker }
1677             __vfc_nokiav2_docker__: { get_param: vfc_nokiav2_docker }
1678             __vfc_ztevnfmdriver_docker__: { get_param: vfc_ztevnfmdriver_docker }
1679             __vfc_multivimproxy_docker__: { get_param: vfc_multivimproxy_docker }
1680             __vfc_ztesdncdriver_docker__: { get_param: vfc_ztesdncdriver_docker }
1681             __vfc_vnfres_docker__: { get_param: vfc_vnfres_docker }
1682             __vfc_vnfmgr_docker__: { get_param: vfc_vnfmgr_docker }
1683             __vfc_vnflcm_docker__: { get_param: vfc_vnflcm_docker }
1684             __vfc_resmanagement_docker__: { get_param: vfc_resmanagement_docker }
1685             __vfc_nslcm_docker__: { get_param: vfc_nslcm_docker }
1686             __vfc_huawei_docker__: { get_param: vfc_huawei_docker }
1687             __vfc_jujudriver_docker__: { get_param: vfc_jujudriver_docker }
1688             __vfc_gvnfmdriver_docker__: { get_param: vfc_gvnfmdriver_docker }
1689             __vfc_emsdriver_docker__: { get_param: vfc_emsdriver_docker }
1690             __vfc_catalog_docker__: { get_param: vfc_catalog_docker }
1691             __vfc_wfengine_mgrservice_docker__: { get_param: vfc_wfengine_mgrservice_docker }
1692             __vfc_wfengine_activiti_docker__: { get_param: vfc_wfengine_activiti_docker }
1693           template: |
1694             #!/bin/bash
1695
1696             # Create configuration files
1697             mkdir -p /opt/config
1698             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1699             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1700             echo "__nexus_username__" > /opt/config/nexus_username.txt
1701             echo "__nexus_password__" > /opt/config/nexus_password.txt
1702             echo "__cloud_env__" > /opt/config/cloud_env.txt
1703             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1704             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1705             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1706             echo "__external_dns__" > /opt/config/external_dns.txt
1707             echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1708             echo "__msb_docker__" > /opt/config/msb_docker.txt
1709             echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1710             echo "__mvim_openstack_docker__" > /opt/config/mvim_openstack_docker.txt
1711             echo "__uui_docker__" > /opt/config/uui_docker.txt
1712             echo "__esr_docker__" > /opt/config/esr_docker.txt
1713             echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1714
1715             echo "export NOKIA_DOCKER_VER=__vfc_nokia_docker__" >> /opt/config/vfc_docker.txt
1716             echo "export NOKIAV2_DOCKER_VER=__vfc_nokiav2_docker__" >> /opt/config/vfc_docker.txt
1717             echo "export MULTIVIMPROXY_DOCKER_VER=__vfc_multivimproxy_docker__" >> /opt/config/vfc_docker.txt
1718             echo "export ZTEVNFMDRIVER_DOCKER_VER=__vfc_ztevnfmdriver_docker__" >> /opt/config/vfc_docker.txt
1719             echo "export ZTESDNCDRIVER_DOCKER_VER=__vfc_ztesdncdriver_docker__" >> /opt/config/vfc_docker.txt
1720             echo "export VNFRES_DOCKER_VER=__vfc_vnfres_docker__" >> /opt/config/vfc_docker.txt
1721             echo "export VNFMGR_DOCKER_VER=__vfc_vnfmgr_docker__" >> /opt/config/vfc_docker.txt
1722             echo "export VNFLCM_DOCKER_VER=__vfc_vnflcm_docker__" >> /opt/config/vfc_docker.txt
1723             echo "export RESMANAGEMENT_DOCKER_VER=__vfc_resmanagement_docker__" >> /opt/config/vfc_docker.txt
1724             echo "export NSLCM_DOCKER_VER=__vfc_nslcm_docker__" >> /opt/config/vfc_docker.txt
1725             echo "export HUAWEI_DOCKER_VER=__vfc_huawei_docker__" >> /opt/config/vfc_docker.txt
1726             echo "export JUJUDRIVER_DOCKER_VER=__vfc_jujudriver_docker__" >> /opt/config/vfc_docker.txt
1727             echo "export GVNFMDRIVER_DOCKER_VER=__vfc_gvnfmdriver_docker__" >> /opt/config/vfc_docker.txt
1728             echo "export EMSDRIVER_DOCKER_VER=__vfc_emsdriver_docker__" >> /opt/config/vfc_docker.txt
1729             echo "export CATALOG_DOCKER_VER=__vfc_catalog_docker__" >> /opt/config/vfc_docker.txt
1730             echo "export MGRSERVICE_DOCKER_VER=__vfc_wfengine_mgrservice_docker__" >> /opt/config/vfc_docker.txt
1731             echo "export ACTIVITI_DOCKER_VER=__vfc_wfengine_activiti_docker__" >> /opt/config/vfc_docker.txt
1732
1733             # Create env file with the IP address of all ONAP components
1734             echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1735             echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1736             echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1737             echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1738             echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1739             echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1740             echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1741             echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1742             echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1743             echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1744             echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1745             echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1746             echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1747             echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1748
1749             # Download and run install script
1750             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1751             cd /opt
1752             chmod +x openo_install.sh
1753             ./openo_install.sh
1754
1755
1756   # DCAE GEN 2 Controller instantiation
1757   dcae_c_private_port:
1758     type: OS::Neutron::Port
1759     properties:
1760       network: { get_resource: oam_onap }
1761       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1762       security_groups:
1763       - { get_resource: onap_sg }
1764
1765   dcae_c_floating_ip:
1766     type: OS::Neutron::FloatingIP
1767     properties:
1768       floating_network_id: { get_param: public_net_id }
1769       port_id: { get_resource: dcae_c_private_port }
1770
1771   dcae_c_vm:
1772     type: OS::Nova::Server
1773     properties:
1774       image: { get_param: ubuntu_1604_image }
1775       flavor: { get_param: flavor_large }
1776       name:
1777         str_replace:
1778           template: base-dcae
1779           params:
1780             base: { get_param: vm_base_name }
1781       key_name: { get_resource: vm_key }
1782       networks:
1783         - port: { get_resource: dcae_c_private_port }
1784       #security_groups:
1785       #  - { get_resource: onap_sg }
1786       user_data_format: RAW
1787       user_data:
1788         str_replace:
1789           params:
1790             __rand_str__: { get_resource: random-str }
1791             # repo related
1792             __artifacts_version__: { get_param: artifacts_version }
1793             __docker_version__: { get_param: dcae_docker }
1794             __nexus_repo__: { get_param: nexus_repo }
1795             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1796             __nexus_username__: { get_param: nexus_username }
1797             __nexus_password__: { get_param: nexus_password }
1798             # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1799             __dcae_deployment_profile__: { get_param: dcae_deployment_profile }
1800             __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1801             __dcae_ip_addr__: { get_param: dcae_ip_addr }
1802             __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1803             __dns_ip_addr__: { get_param: dns_ip_addr }
1804             __external_dns__: { get_param: external_dns }
1805             __dns_forwarder__: { get_param: dns_forwarder }
1806             __dcae_domain__: { get_param: dcae_domain }
1807             # conf for VMs DCAE is to bringup
1808             __openstack_keystone_url__: { get_param: keystone_url }
1809             __dcae_keystone_url__: { get_param: dcae_keystone_url }
1810             __dcaeos_cloud_env__: { get_param: cloud_env }
1811             __dcaeos_keystone_url__: { get_param: dcae_keystone_url }
1812             __dcaeos_region__: { get_param: openstack_region }
1813             __dcaeos_tenant_id__: { get_param: openstack_tenant_id }
1814             __dcaeos_tenant_name__: { get_param: openstack_tenant_name }
1815             __dcaeos_security_group__:
1816               str_replace:
1817                 template: 'onap_sg_rand'
1818                 params:
1819                   rand: { get_resource: random-str }
1820             #__dcaeos_security_group__: { get_attr: [onap_sg, name] }
1821             __dcaeos_username__: { get_param: openstack_username }
1822             __dcaeos_password__: { get_param: openstack_api_key }
1823             __dcaeos_key_name__: { get_resource: vm_key }
1824             __dcaeos_public_key__: { get_param: dcae_public_key }
1825             __dcaeos_private_key__: { get_param: dcae_private_key }
1826             __dcaeos_private_network_name__: { get_attr: [oam_onap, name] }
1827             __dcaeos_public_network_name__: { get_param: public_net_name }
1828             __dcaeos_ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1829             __dcaeos_centos_7_image__: { get_param: dcae_centos_7_image }
1830             __dcaeos_flavor_id__: { get_param: flavor_medium }
1831             __dcaeos_flavor_id_cdap__: { get_param: flavor_large }
1832             __dcaeos_dnsaas_config_enabled__: { get_param: dnsaas_config_enabled }
1833             __dcaeos_dnsaas_region__: { get_param: dnsaas_region }
1834             __dcaeos_dnsaas_keystone_url__: { get_param: dnsaas_keystone_url }
1835             __dnsaas_tenant_name__: { get_param: dnsaas_tenant_name }
1836             __dcaeos_dnsaas_username__: { get_param: dnsaas_username }
1837             __dcaeos_dnsaas_password__: { get_param: dnsaas_password }
1838             # fixed private IPs
1839             __mr_ip_addr__: { get_param: mr_ip_addr }
1840             __policy_ip_addr__: { get_param: policy_ip_addr }
1841             __sdc_ip_addr__: { get_param: sdc_ip_addr }
1842             __openo_ip_addr__: { get_param: openo_ip_addr }
1843             __aai1_ip_addr__: { get_param: aai1_ip_addr }
1844             __aai2_ip_addr__: { get_param: aai2_ip_addr }
1845             # floating IPs
1846             __dns_floating_ip_addr__: { get_attr: [dns_floating_ip, floating_ip_address] }
1847             __aai1_floating_ip_addr__: { get_attr: [aai1_floating_ip, floating_ip_address] }
1848             __aai2_floating_ip_addr__: { get_attr: [aai2_floating_ip, floating_ip_address] }
1849             __mrouter_floating_ip_addr__: { get_attr: [mrouter_floating_ip, floating_ip_address] }
1850             __sdc_floating_ip_addr__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1851             __policy_floating_ip_addr__: { get_attr: [policy_floating_ip, floating_ip_address] }
1852             __openo_floating_ip_addr__: { get_attr: [openo_floating_ip, floating_ip_address] }
1853             __dcae_c_floating_ip_addr__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1854             # container versions
1855             __dcae_docker__:  { get_param: dcae_docker }
1856             __dcae_snmptrap_docker__:  { get_param: dcae_snmptrap_docker }
1857             __dcae_ves_docker__:  { get_param: dcae_ves_docker }
1858             __dcae_bootstrap_docker__:  { get_param: dcae_bootstrap_docker }
1859             __dcae_cm_docker__:  { get_param: dcae_cm_docker }
1860             __dcae_k8sbootstrap_docker__:  { get_param: dcae_k8sbootstrap_docker }
1861             __dcae_redisc_docker__:  { get_param: dcae_redisc_docker }
1862             __dcae_tca_docker__:  { get_param: dcae_tca_docker }
1863             __dcae_cb_docker__:  { get_param: dcae_cb_docker }
1864             __dcae_cbs_docker__:  { get_param: dcae_cbs_docker }
1865             __dcae_dh_docker__:  { get_param: dcae_dh_docker }
1866             __dcae_inv_docker__:  { get_param: dcae_inv_docker }
1867             __dcae_ph_docker__:  { get_param: dcae_ph_docker }
1868             __dcae_sch_docker__:  { get_param: dcae_sch_docker }
1869             __dcae_heartbeat_docker__:  { get_param: dcae_heartbeat_docker }
1870             __dcae_prh_docker__:  { get_param: dcae_prh_docker }
1871             __holmes_em_docker__:  { get_param: holmes_em_docker }
1872             __holmes_rm_docker__:  { get_param: holmes_rm_docker }
1873
1874
1875           template: |
1876             #!/bin/bash
1877
1878             # Create configuration files
1879             mkdir -p /opt/config
1880             echo "__rand_str__" > /opt/config/dcae_zone.txt
1881             echo "__rand_str__" > /opt/config/rand_str.txt
1882             # repo related
1883             echo "__docker_version__" > /opt/config/docker_version.txt
1884             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1885             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1886             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1887             echo "__nexus_username__" > /opt/config/nexus_username.txt
1888             echo "__nexus_password__" > /opt/config/nexus_password.txt
1889             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1890             # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1891             echo "__dcae_deployment_profile__" > /opt/config/dcae_deployment_profile.txt
1892             echo "__mac_addr__" > /opt/config/mac_addr.txt
1893             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1894             echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1895             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1896             echo "__external_dns__" > /opt/config/external_dns.txt
1897             echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
1898             echo "__dcae_domain__" > /opt/config/dcae_domain.txt
1899             # conf for the OpenStack env where DCAE is deployed
1900             echo "__openstack_keystone_url__" > /opt/config/openstack_keystone_url.txt
1901             echo "__dcaeos_cloud_env__" > /opt/config/cloud_env.txt
1902             echo "__dcaeos_keystone_url__" > /opt/config/keystone_url.txt
1903             echo "__dcaeos_region__" > /opt/config/openstack_region.txt
1904             echo "__dcaeos_tenant_id__" > /opt/config/tenant_id.txt
1905             echo "__dcaeos_tenant_name__" > /opt/config/tenant_name.txt
1906             echo "__dcaeos_username__" > /opt/config/openstack_user.txt
1907             echo "__dcaeos_password__" > /opt/config/openstack_password.txt
1908             echo "__dcaeos_key_name__" > /opt/config/key_name.txt
1909             echo "__dcaeos_public_key__" > /opt/config/pub_key.txt
1910             echo "__dcaeos_private_key__" > /opt/config/priv_key
1911             echo "__dcaeos_private_network_name__" > /opt/config/openstack_private_network_name.txt
1912             echo "__dcaeos_public_network_name__" > /opt/config/public_net_name.txt
1913             echo "__dcaeos_public_network_name__" > /opt/config/public_net_id.txt
1914             echo "__dcaeos_ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1915             echo "__dcaeos_centos_7_image__" > /opt/config/centos_7_image.txt
1916             echo "__dcaeos_security_group__" > /opt/config/security_group.txt
1917             echo "__dcaeos_flavor_id__" > /opt/config/flavor_id.txt
1918             echo "__dcaeos_flavor_id_cdap__" > /opt/config/flavor_id_cdap.txt
1919             echo "__dcaeos_dnsaas_config_enabled__" > /opt/config/dnsaas_config_enabled.txt
1920             echo "__dcaeos_dnsaas_region__" > /opt/config/dnsaas_region.txt
1921             echo "__dcaeos_dnsaas_keystone_url__" > /opt/config/dnsaas_keystone_url.txt
1922             echo "__dnsaas_tenant_name__" > /opt/config/dnsaas_tenant_name.txt
1923             echo "__dcaeos_dnsaas_username__" > /opt/config/dnsaas_username.txt
1924             echo "__dcaeos_dnsaas_password__" > /opt/config/dnsaas_password.txt
1925             # fixed private IP addresses of other ONAP components
1926             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1927             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
1928             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
1929             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
1930             echo "__openo_ip_addr__" > /opt/config/msb_ip_addr.txt
1931             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
1932             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
1933             # floating IPs
1934             echo "__dns_floating_ip_addr__" > /opt/config/dns_floating_ip_addr.txt
1935             echo "__aai1_floating_ip_addr__" > /opt/config/aai1_floating_ip_addr.txt
1936             echo "__aai2_floating_ip_addr__" > /opt/config/aai2_floating_ip_addr.txt
1937             echo "__mrouter_floating_ip_addr__" > /opt/config/mrouter_floating_ip_addr.txt
1938             echo "__sdc_floating_ip_addr__" > /opt/config/sdc_floating_ip_addr.txt
1939             echo "__policy_floating_ip_addr__" > /opt/config/policy_floating_ip_addr.txt
1940             echo "__openo_floating_ip_addr__" > /opt/config/openo_floating_ip_addr.txt
1941             echo "__dcae_c_floating_ip_addr__" > /opt/config/dcae_c_floating_ip_addr.txt
1942             # container versions
1943             echo "__dcae_docker__" > /opt/config/dcae_docker.txt
1944             echo "__dcae_snmptrap_docker__" > /opt/config/dcae_docker_snmptrap.txt
1945             echo "__dcae_ves_docker__" > /opt/config/dcae_docker_ves.txt
1946             echo "__dcae_bootstrap_docker__" > /opt/config/dcae_docker_bootstrap.txt
1947             echo "__dcae_cm_docker__" > /opt/config/dcae_docker_cm.txt
1948             echo "__dcae_k8sbootstrap_docker__" > /opt/config/dcae_docker_k8sbootstrap.txt
1949             echo "__dcae_redisc_docker__" > /opt/config/dcae_docker_redisc.txt
1950             echo "__dcae_tca_docker__" > /opt/config/dcae_docker_tca.txt
1951             echo "__dcae_cb_docker__" > /opt/config/dcae_docker_cb.txt
1952             echo "__dcae_cbs_docker__" > /opt/config/dcae_docker_cbs.txt
1953             echo "__dcae_dh_docker__" > /opt/config/dcae_docker_dh.txt
1954             echo "__dcae_inv_docker__" > /opt/config/dcae_docker_inv.txt
1955             echo "__dcae_ph_docker__" > /opt/config/dcae_docker_ph.txt
1956             echo "__dcae_sch_docker__" > /opt/config/dcae_docker_sch.txt
1957             echo "__dcae_heartbeat_docker__" > /opt/config/dcae_docker_heartbeat.txt
1958             echo "__dcae_prh_docker__" > /opt/config/dcae_docker_prh.txt
1959             echo "__holmes_em_docker__" > /opt/config/holmes_docker_em.txt
1960             echo "__holmes_rm_docker__" > /opt/config/holmes_docker_rm.txt
1961
1962             # Download and run install script
1963             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1964             cd /opt
1965             chmod +x dcae2_install.sh
1966             ./dcae2_install.sh > /tmp/dcae2_install.log 2>&1
1967
1968
1969   # MUSIC instantiation
1970   music_private_port:
1971     type: OS::Neutron::Port
1972     properties:
1973       network: { get_resource: oam_onap }
1974       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: music_ip_addr }}]
1975       security_groups:
1976       - { get_resource: onap_sg }
1977
1978   music_floating_ip:
1979     type: OS::Neutron::FloatingIP
1980     properties:
1981       floating_network_id: { get_param: public_net_id }
1982       port_id: { get_resource: music_private_port }
1983
1984   music_vm:
1985     type: OS::Nova::Server
1986     properties:
1987       image: { get_param: ubuntu_1404_image }
1988       flavor: { get_param: flavor_large }
1989       name:
1990         str_replace:
1991           template: base-music
1992           params:
1993             base: { get_param: vm_base_name }
1994       key_name: { get_resource: vm_key }
1995       networks:
1996         - port: { get_resource: music_private_port }
1997       user_data_format: RAW
1998       user_data:
1999         str_replace:
2000           params:
2001             __nexus_repo__: { get_param: nexus_repo }
2002             __nexus_docker_repo__: { get_param: nexus_docker_repo }
2003             __nexus_username__: { get_param: nexus_username }
2004             __nexus_password__: { get_param: nexus_password }
2005             __artifacts_version__: { get_param: artifacts_version }
2006             __dns_ip_addr__: { get_param: dns_ip_addr }
2007             __docker_version__: { get_param: music_docker }
2008             __music_repo__: { get_param: music_repo }
2009             __gerrit_branch__: { get_param: music_branch }
2010             __cloud_env__: { get_param: cloud_env }
2011             __external_dns__: { get_param: external_dns }
2012           template: |
2013             #!/bin/bash
2014
2015             # Create configuration files
2016             mkdir -p /opt/config
2017             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
2018             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
2019             echo "__nexus_username__" > /opt/config/nexus_username.txt
2020             echo "__nexus_password__" > /opt/config/nexus_password.txt
2021             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
2022             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
2023             echo "__docker_version__" > /opt/config/docker_version.txt
2024             echo "__music_repo__" > /opt/config/remote_repo.txt
2025             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
2026             echo "__cloud_env__" > /opt/config/cloud_env.txt
2027             echo "__external_dns__" > /opt/config/external_dns.txt
2028
2029             # Download and run install script
2030             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/music_install.sh -o /opt/music_install.sh
2031             cd /opt
2032             chmod +x music_install.sh
2033             ./music_install.sh
2034
2035
2036   # OOF instantiation
2037   oof_private_port:
2038     type: OS::Neutron::Port
2039     properties:
2040       network: { get_resource: oam_onap }
2041       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: oof_ip_addr }}]
2042       security_groups:
2043       - { get_resource: onap_sg }
2044
2045   oof_floating_ip:
2046     type: OS::Neutron::FloatingIP
2047     properties:
2048       floating_network_id: { get_param: public_net_id }
2049       port_id: { get_resource: oof_private_port }
2050
2051   oof_vm:
2052     type: OS::Nova::Server
2053     properties:
2054       image: { get_param: ubuntu_1604_image }
2055       flavor: { get_param: flavor_large }
2056       name:
2057         str_replace:
2058           template: base-oof
2059           params:
2060             base: { get_param: vm_base_name }
2061       key_name: { get_resource: vm_key }
2062       networks:
2063         - port: { get_resource: oof_private_port }
2064       user_data_format: RAW
2065       user_data:
2066         str_replace:
2067           params:
2068             __nexus_repo__: { get_param: nexus_repo }
2069             __nexus_docker_repo__: { get_param: nexus_docker_repo }
2070             __nexus_username__: { get_param: nexus_username }
2071             __nexus_password__: { get_param: nexus_password }
2072             __artifacts_version__: { get_param: artifacts_version }
2073             __dns_ip_addr__: { get_param: dns_ip_addr }
2074             __docker_version__: { get_param: oof_docker }
2075             __oof_repo__: { get_param: oof_repo }
2076             __gerrit_branch__: { get_param: oof_branch }
2077             __cloud_env__: { get_param: cloud_env }
2078             __external_dns__: { get_param: external_dns }
2079           template: |
2080             #!/bin/bash
2081
2082             # Create configuration files
2083             mkdir -p /opt/config
2084             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
2085             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
2086             echo "__nexus_username__" > /opt/config/nexus_username.txt
2087             echo "__nexus_password__" > /opt/config/nexus_password.txt
2088             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
2089             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
2090             echo "__docker_version__" > /opt/config/docker_version.txt
2091             echo "__oof_repo__" > /opt/config/remote_repo.txt
2092             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
2093             echo "__cloud_env__" > /opt/config/cloud_env.txt
2094             echo "__external_dns__" > /opt/config/external_dns.txt
2095
2096             # Download and run install script
2097             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/oof_install.sh -o /opt/oof_install.sh
2098             cd /opt
2099             chmod +x oof_install.sh
2100             ./oof_install.sh
2101
2102
2103   # AAF instantiation
2104   aaf_private_port:
2105     type: OS::Neutron::Port
2106     properties:
2107       network: { get_resource: oam_onap }
2108       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aaf_ip_addr }}]
2109       security_groups:
2110       - { get_resource: onap_sg }
2111
2112   aaf_floating_ip:
2113     type: OS::Neutron::FloatingIP
2114     properties:
2115       floating_network_id: { get_param: public_net_id }
2116       port_id: { get_resource: aaf_private_port }
2117
2118   aaf_vm:
2119     type: OS::Nova::Server
2120     properties:
2121       image: { get_param: ubuntu_1604_image }
2122       flavor: { get_param: flavor_medium }
2123       name:
2124         str_replace:
2125           template: base-aaf
2126           params:
2127             base: { get_param: vm_base_name }
2128       key_name: { get_resource: vm_key }
2129       networks:
2130         - port: { get_resource: aaf_private_port }
2131       user_data_format: RAW
2132       user_data:
2133         str_replace:
2134           params:
2135             __nexus_repo__: { get_param: nexus_repo }
2136             __nexus_docker_repo__: { get_param: nexus_docker_repo }
2137             __nexus_username__: { get_param: nexus_username }
2138             __nexus_password__: { get_param: nexus_password }
2139             __artifacts_version__: { get_param: artifacts_version }
2140             __dns_ip_addr__: { get_param: dns_ip_addr }
2141             __docker_version__: { get_param: aaf_docker }
2142             __cloud_env__: { get_param: cloud_env }
2143             __external_dns__: { get_param: external_dns }
2144             __aaf_repo__: { get_param: aaf_repo }
2145             __gerrit_branch__: { get_param: aaf_branch }
2146             __local_ip__: { get_param: aaf_ip_addr }
2147           template: |
2148             #!/bin/bash
2149
2150             # Create configuration files
2151             mkdir -p /opt/config
2152             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
2153             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
2154             echo "__nexus_username__" > /opt/config/nexus_username.txt
2155             echo "__nexus_password__" > /opt/config/nexus_password.txt
2156             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
2157             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
2158             echo "__docker_version__" > /opt/config/docker_version.txt
2159             echo "__cloud_env__" > /opt/config/cloud_env.txt
2160             echo "__external_dns__" > /opt/config/external_dns.txt
2161             echo "__aaf_repo__" > /opt/config/remote_repo.txt
2162             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
2163             echo "__local_ip__" > /opt/config/local_ip.txt
2164
2165             # Download and run install script
2166             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aaf_install.sh -o /opt/aaf_install.sh
2167             cd /opt
2168             chmod +x aaf_install.sh
2169             ./aaf_install.sh
2170
2171   # NBI instantiation
2172   nbi_private_port:
2173     type: OS::Neutron::Port
2174     properties:
2175       network: { get_resource: oam_onap }
2176       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: nbi_ip_addr }}]
2177       security_groups:
2178       - { get_resource: onap_sg }
2179
2180   nbi_floating_ip:
2181     type: OS::Neutron::FloatingIP
2182     properties:
2183       floating_network_id: { get_param: public_net_id }
2184       port_id: { get_resource: nbi_private_port }
2185
2186   nbi_vm:
2187     type: OS::Nova::Server
2188     properties:
2189       image: { get_param: ubuntu_1604_image }
2190       flavor: { get_param: flavor_small }
2191       name:
2192         str_replace:
2193           template: base-nbi
2194           params:
2195             base: { get_param: vm_base_name }
2196       key_name: { get_resource: vm_key }
2197       networks:
2198         - port: { get_resource: nbi_private_port }
2199       user_data_format: RAW
2200       user_data:
2201         str_replace:
2202           params:
2203             __nexus_repo__: { get_param: nexus_repo }
2204             __nexus_docker_repo__: { get_param: nexus_docker_repo }
2205             __nexus_username__: { get_param: nexus_username }
2206             __nexus_password__: { get_param: nexus_password }
2207             __artifacts_version__: { get_param: artifacts_version }
2208             __dns_ip_addr__: { get_param: dns_ip_addr }
2209             __docker_version__: { get_param: nbi_docker }
2210             __nbi_repo__: { get_param: nbi_repo }
2211             __gerrit_branch__: { get_param: nbi_branch }
2212             __cloud_env__: { get_param: cloud_env }
2213             __external_dns__: { get_param: external_dns }
2214             __sdc_ip_addr__: { get_param: sdc_ip_addr }
2215             __aai1_ip_addr__: { get_param: aai1_ip_addr }
2216             __so_ip_addr__: { get_param: so_ip_addr }
2217           template: |
2218             #!/bin/bash
2219
2220             # Create configuration files
2221             mkdir -p /opt/config
2222             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
2223             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
2224             echo "__nexus_username__" > /opt/config/nexus_username.txt
2225             echo "__nexus_password__" > /opt/config/nexus_password.txt
2226             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
2227             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
2228             echo "__docker_version__" > /opt/config/docker_version.txt
2229             echo "__nbi_repo__" > /opt/config/remote_repo.txt
2230             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
2231             echo "__cloud_env__" > /opt/config/cloud_env.txt
2232             echo "__external_dns__" > /opt/config/external_dns.txt
2233             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
2234             echo "__aai1_ip_addr__" > /opt/config/aai_ip_addr.txt
2235             echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
2236
2237             # Download and run install script
2238             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/nbi_install.sh -o /opt/nbi_install.sh
2239             cd /opt
2240             chmod +x nbi_install.sh
2241             ./nbi_install.sh