Send both ubuntu versions to Robot VM
[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
205   ###########################
206   #                         #
207   # Parameters used by DCAE #
208   #                         #
209   ###########################
210
211   dnsaas_config_enabled:
212     type: string
213     description: whether the DNSaaS configuration section is enabled
214
215   dnsaas_region:
216     type: string
217     description: the region of the cloud instance providing the Designate DNS as a Service
218
219   dnsaas_keystone_url:
220     type: string
221     description: the keystone URL of the cloud instance providing the Designate DNS as a Service
222
223   dnsaas_username:
224     type: string
225     description: the username of the cloud instance providing the Designate DNS as a Service
226
227   dnsaas_password:
228     type: string
229     description: the password of the cloud instance providing the Designate DNS as a Service
230
231   dnsaas_tenant_name:
232     type: string
233     description: the name of the tenant in the cloud instance providing the Designate DNS as a Service
234
235   dcae_keystone_url:
236     type: string
237     description: the keystone URL for DCAE to use (via MultiCloud)
238
239   dcae_private_key:
240     type: string
241     description: the private key of the key-apir used between the DCAE bootstrap container and DCAE VMs
242
243   dcae_public_key:
244     type: string
245     description: the prublic key of the key-apir used between the DCAE bootstrap container and DCAE VMs
246
247   dcae_centos_7_image:
248     type: string
249     description: the id/name of the CentOS 7 VM imange
250
251   dcae_domain:
252     type: string
253     description: the top level domain to register DCAE VMs (the zone will be random-str.dcae_domain)
254
255   #####################
256   #                   #
257   # ONAP repositories #
258   #                   #
259   #####################
260
261   aai_repo:
262     type: string
263   appc_repo:
264     type: string
265   mr_repo:
266     type: string
267   so_repo:
268     type: string
269   policy_repo:
270     type: string
271   portal_repo:
272     type: string
273   robot_repo:
274     type: string
275   sdc_repo:
276     type: string
277   sdnc_repo:
278     type: string
279   vid_repo:
280     type: string
281   clamp_repo:
282     type: string
283   vnfsdk_repo:
284     type: string
285
286   ################################
287   #                              #
288   # Docker versions and branches #
289   #                              #
290   ################################
291
292   aai_docker:
293     type: string
294   aai_sparky_docker:
295     type: string
296   appc_docker:
297     type: string
298   so_docker:
299     type: string
300   dcae_docker:
301     type: string
302   policy_docker:
303     type: string
304   portal_docker:
305     type: string
306   robot_docker:
307     type: string
308   sdc_docker:
309     type: string
310   sdnc_docker:
311     type: string
312   vid_docker:
313     type: string
314   clamp_docker:
315     type: string
316   msb_docker:
317     type: string
318   mvim_docker:
319     type: string
320   uui_docker:
321     type: string
322   esr_docker:
323     type: string
324   dgbuilder_docker:
325     type: string
326   cli_docker:
327     type: string
328   vfc_nokia_docker:
329     type: string
330   vfc_ztevmanagerdriver_docker:
331     type: string
332   vfc_ztesdncdriver_docker:
333     type: string
334   vfc_vnfres_docker:
335     type: string
336   vfc_vnfmgr_docker:
337     type: string
338   vfc_vnflcm_docker:
339     type: string
340   vfc_resmanagement_docker:
341     type: string
342   vfc_nslcm_docker:
343     type: string
344   vfc_huawei_docker:
345     type: string
346   vfc_jujudriver_docker:
347     type: string
348   vfc_gvnfmdriver_docker:
349     type: string
350   vfc_emsdriver_docker:
351     type: string
352   vfc_catalog_docker:
353     type: string
354   vfc_wfengine_mgrservice_docker:
355     type: string
356   vfc_wfengine_activiti_docker:
357     type: string
358
359   aai_branch:
360     type: string
361   appc_branch:
362     type: string
363   so_branch:
364     type: string
365   mr_branch:
366     type: string
367   policy_branch:
368     type: string
369   portal_branch:
370     type: string
371   robot_branch:
372     type: string
373   sdc_branch:
374     type: string
375   sdnc_branch:
376     type: string
377   vid_branch:
378     type: string
379   clamp_branch:
380     type: string
381   vnfsdk_branch:
382     type: string
383
384
385 #############
386 #           #
387 # RESOURCES #
388 #           #
389 #############
390
391 resources:
392   random-str:
393     type: OS::Heat::RandomString
394     properties:
395       length: 4
396
397   # Public key used to access ONAP components
398   vm_key:
399     type: OS::Nova::KeyPair
400     properties:
401       name:
402         str_replace:
403           template: base_rand
404           params:
405             base: { get_param: key_name }
406             rand: { get_resource: random-str }
407       public_key: { get_param: pub_key }
408       save_private_key: false
409
410
411   # ONAP security group
412   onap_sg:
413     type: OS::Neutron::SecurityGroup
414     properties:
415       name:
416         str_replace:
417           template: base_rand
418           params:
419             base: onap_sg
420             rand: { get_resource: random-str }
421       description: security group used by ONAP
422       rules:
423         # All egress traffic
424         - direction: egress
425           ethertype: IPv4
426         - direction: egress
427           ethertype: IPv6
428         # ingress traffic
429         # ICMP
430         - protocol: icmp
431         - protocol: udp
432           port_range_min: 1
433           port_range_max: 65535
434         - protocol: tcp
435           port_range_min: 1
436           port_range_max: 65535
437
438
439
440   # ONAP management private network
441   oam_onap:
442     type: OS::Neutron::Net
443     properties:
444       name:
445         str_replace:
446           template: oam_onap_rand
447           params:
448             rand: { get_resource: random-str }
449
450   oam_onap_subnet:
451     type: OS::Neutron::Subnet
452     properties:
453       name:
454         str_replace:
455           template: oam_onap_rand
456           params:
457             rand: { get_resource: random-str }
458       network_id: { get_resource: oam_onap }
459       cidr: { get_param: oam_network_cidr }
460       dns_nameservers: { get_param: dns_list }
461
462   router:
463     type: OS::Neutron::Router
464     properties:
465       external_gateway_info:
466         network: { get_param: public_net_id }
467
468   router_interface:
469     type: OS::Neutron::RouterInterface
470     properties:
471       router_id: { get_resource: router }
472       subnet_id: { get_resource: oam_onap_subnet }
473
474
475   # DNS Server instantiation
476   dns_private_port:
477     type: OS::Neutron::Port
478     properties:
479       network: { get_resource: oam_onap }
480       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dns_ip_addr }}]
481       security_groups:
482       - { get_resource: onap_sg }
483
484   dns_floating_ip:
485     type: OS::Neutron::FloatingIP
486     properties:
487       floating_network_id: { get_param: public_net_id }
488       port_id: { get_resource: dns_private_port }
489
490   dns_vm:
491     type: OS::Nova::Server
492     properties:
493       image: { get_param: ubuntu_1404_image }
494       flavor: { get_param: flavor_small }
495       name:
496         str_replace:
497           template: base-dns-server
498           params:
499             base: { get_param: vm_base_name }
500       key_name: { get_resource: vm_key }
501       networks:
502         - port: { get_resource: dns_private_port }
503       user_data_format: RAW
504       user_data:
505         str_replace:
506           params:
507             __nexus_repo__: { get_param: nexus_repo }
508             __artifacts_version__: { get_param: artifacts_version }
509             __oam_network_cidr__: { get_attr: [oam_onap_subnet, cidr] }
510             __dns_ip_addr__: { get_param: dns_ip_addr }
511             __aai1_ip_addr__: { get_param: aai1_ip_addr }
512             __aai2_ip_addr__: { get_param: aai2_ip_addr }
513             __appc_ip_addr__: { get_param: appc_ip_addr }
514             __dcae_ip_addr__: { get_param: dcae_ip_addr }
515             __so_ip_addr__: { get_param: so_ip_addr }
516             __mr_ip_addr__: { get_param: mr_ip_addr }
517             __policy_ip_addr__: { get_param: policy_ip_addr }
518             __portal_ip_addr__: { get_param: portal_ip_addr }
519             __robot_ip_addr__: { get_param: robot_ip_addr }
520             __sdc_ip_addr__: { get_param: sdc_ip_addr }
521             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
522             __vid_ip_addr__: { get_param: vid_ip_addr }
523             __clamp_ip_addr__: { get_param: clamp_ip_addr }
524             __openo_ip_addr__: { get_param: openo_ip_addr }
525             __cloud_env__: { get_param: cloud_env }
526             __external_dns__: { get_param: external_dns }
527             __dns_forwarder__: { get_param: dns_forwarder }
528           template: |
529             #!/bin/bash
530
531             # Create configuration files
532             mkdir -p /opt/config
533             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
534             echo "__cloud_env__" > /opt/config/cloud_env.txt
535             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
536             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
537             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
538             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
539             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
540             echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
541             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
542             echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
543             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
544             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
545             echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
546             echo "__robot_ip_addr__" > /opt/config/robot_ip_addr.txt
547             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
548             echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
549             echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
550             echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
551             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
552             echo "__external_dns__" > /opt/config/external_dns.txt
553             echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
554
555             # Download and run install script
556             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
557             cd /opt
558             chmod +x dns_install.sh
559             ./dns_install.sh
560
561
562   # A&AI instantiation (2 VMs)
563   aai1_private_port:
564     type: OS::Neutron::Port
565     properties:
566       network: { get_resource: oam_onap }
567       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai1_ip_addr }}]
568       security_groups:
569       - { get_resource: onap_sg }
570
571   aai1_floating_ip:
572     type: OS::Neutron::FloatingIP
573     properties:
574       floating_network_id: { get_param: public_net_id }
575       port_id: { get_resource: aai1_private_port }
576
577   aai1_vm:
578     type: OS::Nova::Server
579     depends_on: aai2_vm
580     properties:
581       image: { get_param: ubuntu_1404_image }
582       flavor: { get_param: flavor_xlarge }
583       name:
584         str_replace:
585           template: base-aai-inst1
586           params:
587             base: { get_param: vm_base_name }
588       key_name: { get_resource: vm_key }
589       networks:
590         - port: { get_resource: aai1_private_port }
591       user_data_format: RAW
592       user_data:
593         str_replace:
594           params:
595             __nexus_repo__: { get_param: nexus_repo }
596             __nexus_docker_repo__: { get_param: nexus_docker_repo }
597             __nexus_username__: { get_param: nexus_username }
598             __nexus_password__: { get_param: nexus_password }
599             __dmaap_topic__: { get_param: dmaap_topic }
600             __artifacts_version__: { get_param: artifacts_version }
601             __dns_ip_addr__: { get_param: dns_ip_addr }
602             __docker_version__: { get_param: aai_docker }
603             __aai_sparky_docker__ : { get_param: aai_sparky_docker }
604             __gerrit_branch__: { get_param: aai_branch }
605             __cloud_env__: { get_param: cloud_env }
606             __external_dns__: { get_param: external_dns }
607             __aai_repo__: { get_param: aai_repo }
608           template: |
609             #!/bin/bash
610
611             # Create configuration files
612             mkdir -p /opt/config
613             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
614             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
615             echo "__nexus_username__" > /opt/config/nexus_username.txt
616             echo "__nexus_password__" > /opt/config/nexus_password.txt
617             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
618             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
619             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
620             echo "__docker_version__" > /opt/config/docker_version.txt
621             echo "__aai_sparky_docker__" > /opt/config/sparky_version.txt
622             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
623             echo "aai_instance_1" > /opt/config/aai_instance.txt
624             echo "__cloud_env__" > /opt/config/cloud_env.txt
625             echo "__external_dns__" > /opt/config/external_dns.txt
626             echo "__aai_repo__" > /opt/config/remote_repo.txt
627
628             # Download and run install script
629             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
630             cd /opt
631             chmod +x aai_install.sh
632             ./aai_install.sh
633
634
635   aai2_private_port:
636     type: OS::Neutron::Port
637     properties:
638       network: { get_resource: oam_onap }
639       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: aai2_ip_addr }}]
640       security_groups:
641       - { get_resource: onap_sg }
642
643   aai2_floating_ip:
644     type: OS::Neutron::FloatingIP
645     properties:
646       floating_network_id: { get_param: public_net_id }
647       port_id: { get_resource: aai2_private_port }
648
649   aai2_vm:
650     type: OS::Nova::Server
651     properties:
652       image: { get_param: ubuntu_1404_image }
653       flavor: { get_param: flavor_xlarge }
654       name:
655         str_replace:
656           template: base-aai-inst2
657           params:
658             base: { get_param: vm_base_name }
659       key_name: { get_resource: vm_key }
660       networks:
661         - port: { get_resource: aai2_private_port }
662       user_data_format: RAW
663       user_data:
664         str_replace:
665           params:
666             __nexus_repo__: { get_param: nexus_repo }
667             __nexus_docker_repo__: { get_param: nexus_docker_repo }
668             __nexus_username__: { get_param: nexus_username }
669             __nexus_password__: { get_param: nexus_password }
670             __dmaap_topic__: { get_param: dmaap_topic }
671             __artifacts_version__: { get_param: artifacts_version }
672             __dns_ip_addr__: { get_param: dns_ip_addr }
673             __docker_version__: { get_param: aai_docker }
674             __gerrit_branch__: { get_param: aai_branch }
675             __cloud_env__: { get_param: cloud_env }
676             __external_dns__: { get_param: external_dns }
677             __aai_repo__: { get_param: aai_repo }
678           template: |
679             #!/bin/bash
680
681             # Create configuration files
682             mkdir -p /opt/config
683             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
684             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
685             echo "__nexus_username__" > /opt/config/nexus_username.txt
686             echo "__nexus_password__" > /opt/config/nexus_password.txt
687             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
688             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
689             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
690             echo "__docker_version__" > /opt/config/docker_version.txt
691             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
692             echo "aai_instance_2" > /opt/config/aai_instance.txt
693             echo "__cloud_env__" > /opt/config/cloud_env.txt
694             echo "__external_dns__" > /opt/config/external_dns.txt
695             echo "__aai_repo__" > /opt/config/remote_repo.txt
696
697             # Download and run install script
698             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
699             cd /opt
700             chmod +x aai_install.sh
701             ./aai_install.sh
702
703
704   # SO instantiation
705   so_private_port:
706     type: OS::Neutron::Port
707     properties:
708       network: { get_resource: oam_onap }
709       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: so_ip_addr }}]
710       security_groups:
711       - { get_resource: onap_sg }
712
713   so_floating_ip:
714     type: OS::Neutron::FloatingIP
715     properties:
716       floating_network_id: { get_param: public_net_id }
717       port_id: { get_resource: so_private_port }
718
719   so_vm:
720     type: OS::Nova::Server
721     properties:
722       image: { get_param: ubuntu_1604_image }
723       flavor: { get_param: flavor_large }
724       name:
725         str_replace:
726           template: base-so
727           params:
728             base: { get_param: vm_base_name }
729       key_name: { get_resource: vm_key }
730       networks:
731         - port: { get_resource: so_private_port }
732       user_data_format: RAW
733       user_data:
734         str_replace:
735           params:
736             __nexus_repo__: { get_param: nexus_repo }
737             __nexus_docker_repo__: { get_param: nexus_docker_repo }
738             __nexus_username__: { get_param: nexus_username }
739             __nexus_password__: { get_param: nexus_password }
740             __openstack_username__: { get_param: openstack_username }
741             __openstack_tenant_id__: { get_param: openstack_tenant_id }
742             __openstack_api_key__: { get_param: openstack_api_key }
743             __openstack_region__: { get_param: openstack_region }
744             __keystone_url__: { get_param: keystone_url }
745             __dmaap_topic__: { get_param: dmaap_topic }
746             __artifacts_version__: { get_param: artifacts_version }
747             __dns_ip_addr__: { get_param: dns_ip_addr }
748             __openo_ip__: { get_param: openo_ip_addr }
749             __docker_version__: { get_param: so_docker }
750             __gerrit_branch__: { get_param: so_branch }
751             __cloud_env__: { get_param: cloud_env }
752             __external_dns__: { get_param: external_dns }
753             __so_repo__: { get_param: so_repo }
754           template: |
755             #!/bin/bash
756
757             # Create configuration files
758             mkdir -p /opt/config
759             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
760             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
761             echo "__nexus_username__" > /opt/config/nexus_username.txt
762             echo "__nexus_password__" > /opt/config/nexus_password.txt
763             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
764             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
765             echo "__openo_ip__" > /opt/config/openo_ip.txt
766             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
767             echo "__openstack_username__" > /opt/config/openstack_username.txt
768             echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
769             echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
770             echo "__openstack_region__" > /opt/config/openstack_region.txt
771             echo "__keystone_url__" > /opt/config/keystone.txt
772             echo "__docker_version__" > /opt/config/docker_version.txt
773             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
774             echo "__cloud_env__" > /opt/config/cloud_env.txt
775             echo "__external_dns__" > /opt/config/external_dns.txt
776             echo "__so_repo__" > /opt/config/remote_repo.txt
777
778             # Download and run install script
779             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
780             cd /opt
781             chmod +x so_install.sh
782             ./so_install.sh
783
784
785   # Message Router instantiation
786   mrouter_private_port:
787     type: OS::Neutron::Port
788     properties:
789       network: { get_resource: oam_onap }
790       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: mr_ip_addr }}]
791       security_groups:
792       - { get_resource: onap_sg }
793
794   mrouter_floating_ip:
795     type: OS::Neutron::FloatingIP
796     properties:
797       floating_network_id: { get_param: public_net_id }
798       port_id: { get_resource: mrouter_private_port }
799
800   mrouter_vm:
801     type: OS::Nova::Server
802     properties:
803       image: { get_param: ubuntu_1404_image }
804       flavor: { get_param: flavor_large }
805       name:
806         str_replace:
807           template: base-message-router
808           params:
809             base: { get_param: vm_base_name }
810       key_name: { get_resource: vm_key }
811       networks:
812         - port: { get_resource: mrouter_private_port }
813       user_data_format: RAW
814       user_data:
815         str_replace:
816           params:
817             __nexus_repo__: { get_param: nexus_repo }
818             __nexus_docker_repo__: { get_param: nexus_docker_repo }
819             __nexus_username__: { get_param: nexus_username }
820             __nexus_password__: { get_param: nexus_password }
821             __artifacts_version__: { get_param: artifacts_version }
822             __dns_ip_addr__: { get_param: dns_ip_addr }
823             __gerrit_branch__: { get_param: mr_branch }
824             __cloud_env__: { get_param: cloud_env }
825             __external_dns__: { get_param: external_dns }
826             __mr_repo__: { get_param: mr_repo }
827           template: |
828             #!/bin/bash
829
830             # Create configuration files
831             mkdir -p /opt/config
832             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
833             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
834             echo "__nexus_username__" > /opt/config/nexus_username.txt
835             echo "__nexus_password__" > /opt/config/nexus_password.txt
836             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
837             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
838             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
839             echo "__cloud_env__" > /opt/config/cloud_env.txt
840             echo "__external_dns__" > /opt/config/external_dns.txt
841             echo "__mr_repo__" > /opt/config/remote_repo.txt
842
843             # Download and run install script
844             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
845             cd /opt
846             chmod +x mr_install.sh
847             ./mr_install.sh
848
849
850   # Robot Framework instantiation
851   robot_private_port:
852     type: OS::Neutron::Port
853     properties:
854       network: { get_resource: oam_onap }
855       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: robot_ip_addr }}]
856       security_groups:
857       - { get_resource: onap_sg }
858
859   robot_floating_ip:
860     type: OS::Neutron::FloatingIP
861     properties:
862       floating_network_id: { get_param: public_net_id }
863       port_id: { get_resource: robot_private_port }
864
865   robot_vm:
866     type: OS::Nova::Server
867     properties:
868       image: { get_param: ubuntu_1604_image }
869       flavor: { get_param: flavor_medium }
870       name:
871         str_replace:
872           template: base-robot
873           params:
874             base: { get_param: vm_base_name }
875       key_name: { get_resource: vm_key }
876       networks:
877         - port: { get_resource: robot_private_port }
878       user_data_format: RAW
879       user_data:
880         str_replace:
881           params:
882             __nexus_repo__: { get_param: nexus_repo }
883             __nexus_docker_repo__: { get_param: nexus_docker_repo }
884             __nexus_username__: { get_param: nexus_username }
885             __nexus_password__: { get_param: nexus_password }
886             __network_name__: { get_attr: [oam_onap, name] }
887             __openstack_username__: { get_param: openstack_username }
888             __openstack_api_key__: { get_param : openstack_api_key }
889             __openstack_tenant_id__: { get_param: openstack_tenant_id }
890             __artifacts_version__: { get_param: artifacts_version }
891             __openstack_region__: { get_param: openstack_region }
892             __dns_ip_addr__: { get_param: dns_ip_addr }
893             __gerrit_branch__: { get_param: robot_branch }
894             __cloud_env__: { get_param: cloud_env }
895             __keystone_url__: { get_param: keystone_url }
896             __aai1_ip_addr__: { get_param: aai1_ip_addr }
897             __aai2_ip_addr__: { get_param: aai2_ip_addr }
898             __appc_ip_addr__: { get_param: appc_ip_addr }
899             __dcae_ip_addr__: { get_param: dcae_ip_addr }
900             __so_ip_addr__: { get_param: so_ip_addr }
901             __mr_ip_addr__: { get_param: mr_ip_addr }
902             __policy_ip_addr__: { get_param: policy_ip_addr }
903             __portal_ip_addr__: { get_param: portal_ip_addr }
904             __sdc_ip_addr__: { get_param: sdc_ip_addr }
905             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
906             __vid_ip_addr__: { get_param: vid_ip_addr }
907             __clamp_ip_addr__: { get_param: clamp_ip_addr }
908             __openo_ip_addr__: { get_param: openo_ip_addr }
909             __external_dns__: { get_param: external_dns }
910             __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
911             __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
912             __vm_flavor__: { get_param: flavor_medium }
913             __public_net_id__: { get_param: public_net_id }
914             __script_version__: { get_param: artifacts_version }
915             __robot_repo__: { get_param: robot_repo }
916             __docker_version__: { get_param: robot_docker }
917           template: |
918             #!/bin/bash
919
920             # Create configuration files
921             mkdir -p /opt/config
922             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
923             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
924             echo "__nexus_username__" > /opt/config/nexus_username.txt
925             echo "__nexus_password__" > /opt/config/nexus_password.txt
926             echo "__network_name__" > /opt/config/network.txt
927             echo "__openstack_username__" > /opt/config/openstack_username.txt
928             echo "__openstack_api_key__" > /opt/config/openstack_password.txt
929             echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
930             echo "__openstack_region__" > /opt/config/region.txt
931             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
932             echo "__docker_version__" > /opt/config/docker_version.txt
933             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
934             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
935             echo "__keystone_url__" > /opt/config/keystone.txt
936             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
937             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
938             echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
939             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
940             echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
941             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
942             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
943             echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
944             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
945             echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
946             echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
947             echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
948             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
949             echo "__cloud_env__" > /opt/config/cloud_env.txt
950             echo "__external_dns__" > /opt/config/external_dns.txt
951             echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
952             echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
953             echo "__vm_flavor__" > /opt/config/vm_flavor.txt
954             echo "__script_version__" > /opt/config/script_version.txt
955             echo "__public_net_id__" > /opt/config/public_net_id.txt
956             echo "__robot_repo__" > /opt/config/remote_repo.txt
957
958             # Download and run install script
959             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
960             cd /opt
961             chmod +x robot_install.sh
962             ./robot_install.sh
963
964
965   # VID instantiation
966   vid_private_port:
967     type: OS::Neutron::Port
968     properties:
969       network: { get_resource: oam_onap }
970       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
971       security_groups:
972       - { get_resource: onap_sg }
973
974   vid_floating_ip:
975     type: OS::Neutron::FloatingIP
976     properties:
977       floating_network_id: { get_param: public_net_id }
978       port_id: { get_resource: vid_private_port }
979
980   vid_vm:
981     type: OS::Nova::Server
982     properties:
983       image: { get_param: ubuntu_1404_image }
984       flavor: { get_param: flavor_medium }
985       name:
986         str_replace:
987           template: base-vid
988           params:
989             base: { get_param: vm_base_name }
990       key_name: { get_resource: vm_key }
991       networks:
992         - port: { get_resource: vid_private_port }
993       user_data_format: RAW
994       user_data:
995         str_replace:
996           params:
997             __nexus_repo__: { get_param: nexus_repo }
998             __nexus_docker_repo__: { get_param: nexus_docker_repo }
999             __nexus_username__: { get_param: nexus_username }
1000             __nexus_password__: { get_param: nexus_password }
1001             __artifacts_version__: { get_param: artifacts_version }
1002             __dns_ip_addr__: { get_param: dns_ip_addr }
1003             __docker_version__: { get_param: vid_docker }
1004             __gerrit_branch__: { get_param: vid_branch }
1005             __cloud_env__: { get_param: cloud_env }
1006             __external_dns__: { get_param: external_dns }
1007             __vid_repo__: { get_param: vid_repo }
1008           template: |
1009             #!/bin/bash
1010
1011             # Create configuration files
1012             mkdir -p /opt/config
1013             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1014             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1015             echo "__nexus_username__" > /opt/config/nexus_username.txt
1016             echo "__nexus_password__" > /opt/config/nexus_password.txt
1017             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1018             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1019             echo "__docker_version__" > /opt/config/docker_version.txt
1020             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1021             echo "__cloud_env__" > /opt/config/cloud_env.txt
1022             echo "__external_dns__" > /opt/config/external_dns.txt
1023             echo "__vid_repo__" > /opt/config/remote_repo.txt
1024
1025             # Download and run install script
1026             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
1027             cd /opt
1028             chmod +x vid_install.sh
1029             ./vid_install.sh
1030
1031
1032   # SDN-C instantiation
1033   sdnc_private_port:
1034     type: OS::Neutron::Port
1035     properties:
1036       network: { get_resource: oam_onap }
1037       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
1038       security_groups:
1039       - { get_resource: onap_sg }
1040
1041   sdnc_floating_ip:
1042     type: OS::Neutron::FloatingIP
1043     properties:
1044       floating_network_id: { get_param: public_net_id }
1045       port_id: { get_resource: sdnc_private_port }
1046
1047   sdnc_vm:
1048     type: OS::Nova::Server
1049     properties:
1050       image: { get_param: ubuntu_1404_image }
1051       flavor: { get_param: flavor_large }
1052       name:
1053         str_replace:
1054           template: base-sdnc
1055           params:
1056             base: { get_param: vm_base_name }
1057       key_name: { get_resource: vm_key }
1058       networks:
1059         - port: { get_resource: sdnc_private_port }
1060       user_data_format: RAW
1061       user_data:
1062         str_replace:
1063           params:
1064             __nexus_repo__: { get_param: nexus_repo }
1065             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1066             __nexus_username__: { get_param: nexus_username }
1067             __nexus_password__: { get_param: nexus_password }
1068             __artifacts_version__: { get_param: artifacts_version }
1069             __dns_ip_addr__: { get_param: dns_ip_addr }
1070             __docker_version__: { get_param: sdnc_docker }
1071             __gerrit_branch__: { get_param: sdnc_branch }
1072             __dgbuilder_docker__: { get_param: dgbuilder_docker }
1073             __cloud_env__: { get_param: cloud_env }
1074             __external_dns__: { get_param: external_dns }
1075             __sdnc_repo__: { get_param: sdnc_repo }
1076           template: |
1077             #!/bin/bash
1078
1079             # Create configuration files
1080             mkdir -p /opt/config
1081             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1082             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1083             echo "__nexus_username__" > /opt/config/nexus_username.txt
1084             echo "__nexus_password__" > /opt/config/nexus_password.txt
1085             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1086             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1087             echo "__docker_version__" > /opt/config/docker_version.txt
1088             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1089             echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1090             echo "__cloud_env__" > /opt/config/cloud_env.txt
1091             echo "__external_dns__" > /opt/config/external_dns.txt
1092             echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1093
1094             # Download and run install script
1095             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1096             cd /opt
1097             chmod +x sdnc_install.sh
1098             ./sdnc_install.sh
1099
1100
1101   # SDC instantiation
1102   sdc_private_port:
1103     type: OS::Neutron::Port
1104     properties:
1105       network: { get_resource: oam_onap }
1106       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1107       security_groups:
1108       - { get_resource: onap_sg }
1109
1110   sdc_floating_ip:
1111     type: OS::Neutron::FloatingIP
1112     properties:
1113       floating_network_id: { get_param: public_net_id }
1114       port_id: { get_resource: sdc_private_port }
1115
1116   sdc_volume_data:
1117     type: OS::Cinder::Volume
1118     properties:
1119       name: vol1-sdc-data
1120       size: 100
1121
1122   sdc_vm:
1123     type: OS::Nova::Server
1124     properties:
1125       image: { get_param: ubuntu_1604_image }
1126       flavor: { get_param: flavor_xlarge }
1127       name:
1128         str_replace:
1129           template: base-sdc
1130           params:
1131             base: { get_param: vm_base_name }
1132       key_name: { get_resource: vm_key }
1133       networks:
1134         - port: { get_resource: sdc_private_port }
1135       block_device_mapping:
1136         - device_name: /dev/vdb
1137           volume_id: {get_resource: sdc_volume_data}
1138       user_data_format: RAW
1139       user_data:
1140         str_replace:
1141           params:
1142             __nexus_repo__: { get_param: nexus_repo }
1143             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1144             __nexus_username__: { get_param: nexus_username }
1145             __nexus_password__: { get_param: nexus_password }
1146             __env_name__: { get_param: dmaap_topic }
1147             __artifacts_version__: { get_param: artifacts_version }
1148             __dns_ip_addr__: { get_param: dns_ip_addr }
1149             __mr_ip_addr__: { get_param: mr_ip_addr }
1150             __private_ip__: { get_param: sdc_ip_addr }
1151             __docker_version__: { get_param: sdc_docker }
1152             __gerrit_branch__: { get_param: sdc_branch }
1153             __cloud_env__: { get_param: cloud_env }
1154             __external_dns__: { get_param: external_dns }
1155             __sdc_repo__: { get_param: sdc_repo }
1156           template: |
1157             #!/bin/bash
1158
1159             # Create configuration files
1160             mkdir -p /opt/config
1161             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1162             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1163             echo "__nexus_username__" > /opt/config/nexus_username.txt
1164             echo "__nexus_password__" > /opt/config/nexus_password.txt
1165             echo "__env_name__" > /opt/config/env_name.txt
1166             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1167             echo "__private_ip__" > /opt/config/private_ip.txt
1168             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1169             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1170             echo "__docker_version__" > /opt/config/docker_version.txt
1171             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1172             echo "__cloud_env__" > /opt/config/cloud_env.txt
1173             echo "__external_dns__" > /opt/config/external_dns.txt
1174             echo "__sdc_repo__" > /opt/config/remote_repo.txt
1175
1176             # Download and run install script
1177             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1178             cd /opt
1179             chmod +x sdc_install.sh
1180             ./sdc_install.sh
1181
1182
1183   # PORTAL instantiation
1184   portal_private_port:
1185     type: OS::Neutron::Port
1186     properties:
1187       network: { get_resource: oam_onap }
1188       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1189       security_groups:
1190       - { get_resource: onap_sg }
1191
1192   portal_floating_ip:
1193     type: OS::Neutron::FloatingIP
1194     properties:
1195       floating_network_id: { get_param: public_net_id }
1196       port_id: { get_resource: portal_private_port }
1197
1198   portal_vm:
1199     type: OS::Nova::Server
1200     properties:
1201       image: { get_param: ubuntu_1404_image }
1202       flavor: { get_param: flavor_large }
1203       name:
1204         str_replace:
1205           template: base-portal
1206           params:
1207             base: { get_param: vm_base_name }
1208       key_name: { get_resource: vm_key }
1209       networks:
1210         - port: { get_resource: portal_private_port }
1211       user_data_format: RAW
1212       user_data:
1213         str_replace:
1214           params:
1215             __nexus_repo__: { get_param: nexus_repo }
1216             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1217             __nexus_username__: { get_param: nexus_username }
1218             __nexus_password__: { get_param: nexus_password }
1219             __artifacts_version__: { get_param: artifacts_version }
1220             __dns_ip_addr__: { get_param: dns_ip_addr }
1221             __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1222             __docker_version__: { get_param: portal_docker }
1223             __gerrit_branch__: { get_param: portal_branch }
1224             __cli_docker__: { get_param: cli_docker }
1225             __cloud_env__: { get_param: cloud_env }
1226             __external_dns__: { get_param: external_dns }
1227             __portal_repo__: { get_param: portal_repo }
1228           template: |
1229             #!/bin/bash
1230
1231             # Create configuration files
1232             mkdir -p /opt/config
1233             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1234             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1235             echo "__nexus_username__" > /opt/config/nexus_username.txt
1236             echo "__nexus_password__" > /opt/config/nexus_password.txt
1237             echo "__public_ip__" > /opt/config/public_ip.txt
1238             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1239             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1240             echo "__docker_version__" > /opt/config/docker_version.txt
1241             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1242             echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1243             echo "__cloud_env__" > /opt/config/cloud_env.txt
1244             echo "__external_dns__" > /opt/config/external_dns.txt
1245             echo "__portal_repo__" > /opt/config/remote_repo.txt
1246
1247             # Download and run install script
1248             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1249             cd /opt
1250             chmod +x portal_install.sh
1251             ./portal_install.sh
1252
1253
1254   # Policy Engine instantiation
1255   policy_private_port:
1256     type: OS::Neutron::Port
1257     properties:
1258       network: { get_resource: oam_onap }
1259       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1260       security_groups:
1261       - { get_resource: onap_sg }
1262
1263   policy_floating_ip:
1264     type: OS::Neutron::FloatingIP
1265     properties:
1266       floating_network_id: { get_param: public_net_id }
1267       port_id: { get_resource: policy_private_port }
1268
1269   policy_vm:
1270     type: OS::Nova::Server
1271     properties:
1272       image: { get_param: ubuntu_1404_image }
1273       flavor: { get_param: flavor_xlarge }
1274       name:
1275         str_replace:
1276           template: base-policy
1277           params:
1278             base: { get_param: vm_base_name }
1279       key_name: { get_resource: vm_key }
1280       networks:
1281         - port: { get_resource: policy_private_port }
1282       user_data_format: RAW
1283       user_data:
1284         str_replace:
1285           params:
1286             __nexus_repo__: { get_param: nexus_repo }
1287             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1288             __nexus_username__: { get_param: nexus_username }
1289             __nexus_password__: { get_param: nexus_password }
1290             __artifacts_version__: { get_param: artifacts_version }
1291             __dns_ip_addr__: { get_param: dns_ip_addr }
1292             __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1293             __docker_version__: { get_param: policy_docker }
1294             __gerrit_branch__: { get_param: policy_branch }
1295             __cloud_env__: { get_param: cloud_env }
1296             __external_dns__: { get_param: external_dns }
1297             __policy_repo__: { get_param: policy_repo }
1298           template: |
1299             #!/bin/bash
1300
1301             # Create configuration files
1302             mkdir -p /opt/config
1303             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1304             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1305             echo "__nexus_username__" > /opt/config/nexus_username.txt
1306             echo "__nexus_password__" > /opt/config/nexus_password.txt
1307             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1308             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1309             echo "__public_ip__" > /opt/config/public_ip.txt
1310             echo "__docker_version__" > /opt/config/docker_version.txt
1311             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1312             echo "__cloud_env__" > /opt/config/cloud_env.txt
1313             echo "__external_dns__" > /opt/config/external_dns.txt
1314             echo "__policy_repo__" > /opt/config/remote_repo.txt
1315
1316             # Download and run install script
1317             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1318             cd /opt
1319             chmod +x policy_install.sh
1320             ./policy_install.sh
1321
1322
1323   # APP-C instantiation
1324   appc_private_port:
1325     type: OS::Neutron::Port
1326     properties:
1327       network: { get_resource: oam_onap }
1328       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1329       security_groups:
1330       - { get_resource: onap_sg }
1331
1332   appc_floating_ip:
1333     type: OS::Neutron::FloatingIP
1334     properties:
1335       floating_network_id: { get_param: public_net_id }
1336       port_id: { get_resource: appc_private_port }
1337
1338   appc_vm:
1339     type: OS::Nova::Server
1340     properties:
1341       image: { get_param: ubuntu_1404_image }
1342       flavor: { get_param: flavor_large }
1343       name:
1344         str_replace:
1345           template: base-appc
1346           params:
1347             base: { get_param: vm_base_name }
1348       key_name: { get_resource: vm_key }
1349       networks:
1350         - port: { get_resource: appc_private_port }
1351       user_data_format: RAW
1352       user_data:
1353         str_replace:
1354           params:
1355             __nexus_repo__: { get_param: nexus_repo }
1356             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1357             __nexus_username__: { get_param: nexus_username }
1358             __nexus_password__: { get_param: nexus_password }
1359             __dmaap_topic__: { get_param: dmaap_topic }
1360             __artifacts_version__: { get_param: artifacts_version }
1361             __dns_ip_addr__: { get_param: dns_ip_addr }
1362             __docker_version__: { get_param: appc_docker }
1363             __gerrit_branch__: { get_param: appc_branch }
1364             __dgbuilder_docker__: { get_param: dgbuilder_docker }
1365             __cloud_env__: { get_param: cloud_env }
1366             __external_dns__: { get_param: external_dns }
1367             __appc_repo__: { get_param: appc_repo }
1368           template: |
1369             #!/bin/bash
1370
1371             # Create configuration files
1372             mkdir -p /opt/config
1373             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1374             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1375             echo "__nexus_username__" > /opt/config/nexus_username.txt
1376             echo "__nexus_password__" > /opt/config/nexus_password.txt
1377             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1378             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1379             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1380             echo "__docker_version__" > /opt/config/docker_version.txt
1381             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1382             echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1383             echo "__cloud_env__" > /opt/config/cloud_env.txt
1384             echo "__external_dns__" > /opt/config/external_dns.txt
1385             echo "__appc_repo__" > /opt/config/remote_repo.txt
1386
1387             # Download and run install script
1388             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1389             cd /opt
1390             chmod +x appc_install.sh
1391             ./appc_install.sh
1392
1393
1394   # CLAMP instantiation
1395   clamp_private_port:
1396     type: OS::Neutron::Port
1397     properties:
1398       network: { get_resource: oam_onap }
1399       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1400       security_groups:
1401       - { get_resource: onap_sg }
1402
1403   clamp_floating_ip:
1404     type: OS::Neutron::FloatingIP
1405     properties:
1406       floating_network_id: { get_param: public_net_id }
1407       port_id: { get_resource: clamp_private_port }
1408
1409   clamp_vm:
1410     type: OS::Nova::Server
1411     properties:
1412       image: { get_param: ubuntu_1604_image }
1413       flavor: { get_param: flavor_medium }
1414       name:
1415         str_replace:
1416           template: base-clamp
1417           params:
1418             base: { get_param: vm_base_name }
1419       key_name: { get_resource: vm_key }
1420       networks:
1421         - port: { get_resource: clamp_private_port }
1422       user_data_format: RAW
1423       user_data:
1424         str_replace:
1425           params:
1426             __nexus_repo__: { get_param: nexus_repo }
1427             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1428             __nexus_username__: { get_param: nexus_username }
1429             __nexus_password__: { get_param: nexus_password }
1430             __openstack_username__: { get_param: openstack_username }
1431             __openstack_tenant_id__: { get_param: openstack_tenant_id }
1432             __openstack_api_key__: { get_param: openstack_api_key }
1433             __openstack_region__: { get_param: openstack_region }
1434             __keystone_url__: { get_param: keystone_url }
1435             __dmaap_topic__: { get_param: dmaap_topic }
1436             __artifacts_version__: { get_param: artifacts_version }
1437             __dns_ip_addr__: { get_param: dns_ip_addr }
1438             __docker_version__: { get_param: clamp_docker }
1439             __gerrit_branch__: { get_param: clamp_branch }
1440             __cloud_env__: { get_param: cloud_env }
1441             __external_dns__: { get_param: external_dns }
1442             __clamp_repo__: { get_param: clamp_repo }
1443           template: |
1444             #!/bin/bash
1445
1446             # Create configuration files
1447             mkdir -p /opt/config
1448             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1449             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1450             echo "__nexus_username__" > /opt/config/nexus_username.txt
1451             echo "__nexus_password__" > /opt/config/nexus_password.txt
1452             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1453             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1454             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1455             echo "__openstack_username__" > /opt/config/openstack_username.txt
1456             echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1457             echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1458             echo "__openstack_region__" > /opt/config/openstack_region.txt
1459             echo "__keystone_url__" > /opt/config/keystone.txt
1460             echo "__docker_version__" > /opt/config/docker_version.txt
1461             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1462             echo "__cloud_env__" > /opt/config/cloud_env.txt
1463             echo "__external_dns__" > /opt/config/external_dns.txt
1464             echo "__clamp_repo__" > /opt/config/remote_repo.txt
1465
1466             # Download and run install script
1467             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1468             cd /opt
1469             chmod +x clamp_install.sh
1470             ./clamp_install.sh
1471
1472
1473   # OPEN-O VM instantiation
1474   openo_private_port:
1475     type: OS::Neutron::Port
1476     properties:
1477       network: { get_resource: oam_onap }
1478       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1479       security_groups:
1480       - { get_resource: onap_sg }
1481
1482   openo_floating_ip:
1483     type: OS::Neutron::FloatingIP
1484     properties:
1485       floating_network_id: { get_param: public_net_id }
1486       port_id: { get_resource: openo_private_port }
1487
1488   openo_vm:
1489     type: OS::Nova::Server
1490     properties:
1491       image: { get_param: ubuntu_1604_image }
1492       flavor: { get_param: flavor_xxlarge }
1493       name:
1494         str_replace:
1495           template: base-multi-service
1496           params:
1497             base: { get_param: vm_base_name }
1498       key_name: { get_resource: vm_key }
1499       networks:
1500         - port: { get_resource: openo_private_port }
1501       user_data_format: RAW
1502       user_data:
1503         str_replace:
1504           params:
1505             __nexus_repo__: { get_param: nexus_repo }
1506             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1507             __nexus_username__: { get_param: nexus_username }
1508             __nexus_password__: { get_param: nexus_password }
1509             __artifacts_version__: { get_param: artifacts_version }
1510             __dns_ip_addr__: { get_param: dns_ip_addr }
1511             __oam_network_cidr__: { get_param: oam_network_cidr }
1512             __aai1_ip_addr__: { get_param: aai1_ip_addr }
1513             __aai2_ip_addr__: { get_param: aai2_ip_addr }
1514             __appc_ip_addr__: { get_param: appc_ip_addr }
1515             __dcae_ip_addr__: { get_param: dcae_ip_addr }
1516             __so_ip_addr__: { get_param: so_ip_addr }
1517             __mr_ip_addr__: { get_param: mr_ip_addr }
1518             __policy_ip_addr__: { get_param: policy_ip_addr }
1519             __portal_ip_addr__: { get_param: portal_ip_addr }
1520             __robot_ip_addr__: { get_param: robot_ip_addr }
1521             __sdc_ip_addr__: { get_param: sdc_ip_addr }
1522             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1523             __vid_ip_addr__: { get_param: vid_ip_addr }
1524             __clamp_ip_addr__: { get_param: clamp_ip_addr }
1525             __openo_ip_addr__: { get_param: openo_ip_addr }
1526             __cloud_env__: { get_param: cloud_env }
1527             __external_dns__: { get_param: external_dns }
1528             __vnfsdk_branch__: { get_param: vnfsdk_branch }
1529             __msb_docker__: { get_param: msb_docker }
1530             __mvim_docker__: { get_param: mvim_docker }
1531             __uui_docker__: { get_param: uui_docker }
1532             __esr_docker__: { get_param: esr_docker }
1533             __vnfsdk_repo__: { get_param: vnfsdk_repo }
1534             __vfc_nokia_docker__: { get_param: vfc_nokia_docker }
1535             __vfc_ztevmanagerdriver_docker__: { get_param: vfc_ztevmanagerdriver_docker }
1536             __vfc_ztesdncdriver_docker__: { get_param: vfc_ztesdncdriver_docker }
1537             __vfc_vnfres_docker__: { get_param: vfc_vnfres_docker }
1538             __vfc_vnfmgr_docker__: { get_param: vfc_vnfmgr_docker }
1539             __vfc_vnflcm_docker__: { get_param: vfc_vnflcm_docker }
1540             __vfc_resmanagement_docker__: { get_param: vfc_resmanagement_docker }
1541             __vfc_nslcm_docker__: { get_param: vfc_nslcm_docker }
1542             __vfc_huawei_docker__: { get_param: vfc_huawei_docker }
1543             __vfc_jujudriver_docker__: { get_param: vfc_jujudriver_docker }
1544             __vfc_gvnfmdriver_docker__: { get_param: vfc_gvnfmdriver_docker }
1545             __vfc_emsdriver_docker__: { get_param: vfc_emsdriver_docker }
1546             __vfc_catalog_docker__: { get_param: vfc_catalog_docker }
1547             __vfc_wfengine_mgrservice_docker__: { get_param: vfc_wfengine_mgrservice_docker }
1548             __vfc_wfengine_activiti_docker__: { get_param: vfc_wfengine_activiti_docker }
1549           template: |
1550             #!/bin/bash
1551
1552             # Create configuration files
1553             mkdir -p /opt/config
1554             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1555             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1556             echo "__nexus_username__" > /opt/config/nexus_username.txt
1557             echo "__nexus_password__" > /opt/config/nexus_password.txt
1558             echo "__cloud_env__" > /opt/config/cloud_env.txt
1559             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1560             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1561             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1562             echo "__external_dns__" > /opt/config/external_dns.txt
1563             echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1564             echo "__msb_docker__" > /opt/config/msb_docker.txt
1565             echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1566             echo "__uui_docker__" > /opt/config/uui_docker.txt
1567             echo "__esr_docker__" > /opt/config/esr_docker.txt
1568             echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1569
1570             echo "export NOKIA_DOCKER_VER=__vfc_nokia_docker__" >> /opt/config/vfc_docker.txt
1571             echo "export ZTEVMANAGERDRIVER_DOCKER_VER=__vfc_ztevmanagerdriver_docker__" >> /opt/config/vfc_docker.txt
1572             echo "export ZTESDNCDRIVER_DOCKER_VER=__vfc_ztesdncdriver_docker__" >> /opt/config/vfc_docker.txt
1573             echo "export VNFRES_DOCKER_VER=__vfc_vnfres_docker__" >> /opt/config/vfc_docker.txt
1574             echo "export VNFMGR_DOCKER_VER=__vfc_vnfmgr_docker__" >> /opt/config/vfc_docker.txt
1575             echo "export VNFLCM_DOCKER_VER=__vfc_vnflcm_docker__" >> /opt/config/vfc_docker.txt
1576             echo "export RESMANAGEMENT_DOCKER_VER=__vfc_resmanagement_docker__" >> /opt/config/vfc_docker.txt
1577             echo "export NSLCM_DOCKER_VER=__vfc_nslcm_docker__" >> /opt/config/vfc_docker.txt
1578             echo "export HUAWEI_DOCKER_VER=__vfc_huawei_docker__" >> /opt/config/vfc_docker.txt
1579             echo "export JUJUDRIVER_DOCKER_VER=__vfc_jujudriver_docker__" >> /opt/config/vfc_docker.txt
1580             echo "export GVNFMDRIVER_DOCKER_VER=__vfc_gvnfmdriver_docker__" >> /opt/config/vfc_docker.txt
1581             echo "export EMSDRIVER_DOCKER_VER=__vfc_emsdriver_docker__" >> /opt/config/vfc_docker.txt
1582             echo "export CATALOG_DOCKER_VER=__vfc_catalog_docker__" >> /opt/config/vfc_docker.txt
1583             echo "export MGRSERVICE_DOCKER_VER=__vfc_wfengine_mgrservice_docker__" >> /opt/config/vfc_docker.txt
1584             echo "export ACTIVITI_DOCKER_VER=__vfc_wfengine_activiti_docker__" >> /opt/config/vfc_docker.txt
1585
1586             # Create env file with the IP address of all ONAP components
1587             echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1588             echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1589             echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1590             echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1591             echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1592             echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1593             echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1594             echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1595             echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1596             echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1597             echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1598             echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1599             echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1600             echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1601
1602             # Download and run install script
1603             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1604             cd /opt
1605             chmod +x openo_install.sh
1606             ./openo_install.sh
1607
1608
1609   # DCAE GEN 2 Controller instantiation
1610   dcae_c_private_port:
1611     type: OS::Neutron::Port
1612     properties:
1613       network: { get_resource: oam_onap }
1614       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1615       security_groups:
1616       - { get_resource: onap_sg }
1617
1618   dcae_c_floating_ip:
1619     type: OS::Neutron::FloatingIP
1620     properties:
1621       floating_network_id: { get_param: public_net_id }
1622       port_id: { get_resource: dcae_c_private_port }
1623
1624   dcae_c_vm:
1625     type: OS::Nova::Server
1626     properties:
1627       image: { get_param: ubuntu_1604_image }
1628       flavor: { get_param: flavor_small }
1629       name:
1630         str_replace:
1631           template: base-dcae-bootstrap
1632           params:
1633             base: { get_param: vm_base_name }
1634       key_name: { get_resource: vm_key }
1635       networks:
1636         - port: { get_resource: dcae_c_private_port }
1637       #security_groups:
1638       #  - { get_resource: onap_sg }
1639       user_data_format: RAW
1640       user_data:
1641         str_replace:
1642           params:
1643             __rand_str__: { get_resource: random-str }
1644             # repo related
1645             __artifacts_version__: { get_param: artifacts_version }
1646             __docker_version__: { get_param: dcae_docker }
1647             __nexus_repo__: { get_param: nexus_repo }
1648             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1649             __nexus_username__: { get_param: nexus_username }
1650             __nexus_password__: { get_param: nexus_password }
1651             # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1652             __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1653             __dcae_ip_addr__: { get_param: dcae_ip_addr }
1654             __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1655             __dns_ip_addr__: { get_param: dns_ip_addr }
1656             __external_dns__: { get_param: external_dns }
1657             __dns_forwarder__: { get_param: dns_forwarder }
1658             __dcae_domain__: { get_param: dcae_domain }
1659             # conf for VMs DCAE is to bringup
1660             __openstack_keystone_url__: { get_param: keystone_url }
1661             __dcae_keystone_url__: { get_param: dcae_keystone_url }
1662             __dcaeos_cloud_env__: { get_param: cloud_env }
1663             __dcaeos_keystone_url__: { get_param: dcae_keystone_url }
1664             __dcaeos_region__: { get_param: openstack_region }
1665             __dcaeos_tenant_id__: { get_param: openstack_tenant_id }
1666             __dcaeos_tenant_name__: { get_param: openstack_tenant_name }
1667             __dcaeos_security_group__:
1668               str_replace:
1669                 template: 'onap_sg_rand'
1670                 params:
1671                   rand: { get_resource: random-str }
1672             #__dcaeos_security_group__: { get_attr: [onap_sg, name] }
1673             __dcaeos_username__: { get_param: openstack_username }
1674             __dcaeos_password__: { get_param: openstack_api_key }
1675             __dcaeos_key_name__: { get_resource: vm_key }
1676             __dcaeos_public_key__: { get_param: dcae_public_key }
1677             __dcaeos_private_key__: { get_param: dcae_private_key }
1678             __dcaeos_private_network_name__: { get_attr: [oam_onap, name] }
1679             __dcaeos_public_network_name__: { get_param: public_net_name }
1680             __dcaeos_ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1681             __dcaeos_centos_7_image__: { get_param: dcae_centos_7_image }
1682             __dcaeos_flavor_id__: { get_param: flavor_medium }
1683             __dcaeos_flavor_id_cdap__: { get_param: flavor_large }
1684             __dcaeos_dnsaas_config_enabled__: { get_param: dnsaas_config_enabled }
1685             __dcaeos_dnsaas_region__: { get_param: dnsaas_region }
1686             __dcaeos_dnsaas_keystone_url__: { get_param: dnsaas_keystone_url }
1687             __dnsaas_tenant_name__: { get_param: dnsaas_tenant_name }
1688             __dcaeos_dnsaas_username__: { get_param: dnsaas_username }
1689             __dcaeos_dnsaas_password__: { get_param: dnsaas_password }
1690             # fixed private IPs
1691             __mr_ip_addr__: { get_param: mr_ip_addr }
1692             __policy_ip_addr__: { get_param: policy_ip_addr }
1693             __sdc_ip_addr__: { get_param: sdc_ip_addr }
1694             __openo_ip_addr__: { get_param: openo_ip_addr }
1695             __aai1_ip_addr__: { get_param: aai1_ip_addr }
1696             __aai2_ip_addr__: { get_param: aai2_ip_addr }
1697             # floating IPs
1698             __dns_floating_ip_addr__: { get_attr: [dns_floating_ip, floating_ip_address] }
1699             __aai1_floating_ip_addr__: { get_attr: [aai1_floating_ip, floating_ip_address] }
1700             __aai2_floating_ip_addr__: { get_attr: [aai2_floating_ip, floating_ip_address] }
1701             __mrouter_floating_ip_addr__: { get_attr: [mrouter_floating_ip, floating_ip_address] }
1702             __sdc_floating_ip_addr__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1703             __policy_floating_ip_addr__: { get_attr: [policy_floating_ip, floating_ip_address] }
1704             __openo_floating_ip_addr__: { get_attr: [openo_floating_ip, floating_ip_address] }
1705             __dcae_c_floating_ip_addr__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1706
1707           template: |
1708             #!/bin/bash
1709
1710             # Create configuration files
1711             mkdir -p /opt/config
1712             echo "__rand_str__" > /opt/config/dcae_zone.txt
1713             echo "__rand_str__" > /opt/config/rand_str.txt
1714             # repo related
1715             echo "__docker_version__" > /opt/config/docker_version.txt
1716             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1717             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1718             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1719             echo "__nexus_username__" > /opt/config/nexus_username.txt
1720             echo "__nexus_password__" > /opt/config/nexus_password.txt
1721             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1722             # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1723             echo "__mac_addr__" > /opt/config/mac_addr.txt
1724             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1725             echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1726             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1727             echo "__external_dns__" > /opt/config/external_dns.txt
1728             echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
1729             echo "__dcae_domain__" > /opt/config/dcae_domain.txt
1730             # conf for the OpenStack env where DCAE is deployed
1731             echo "__openstack_keystone_url__" > /opt/config/openstack_keystone_url.txt
1732             echo "__dcaeos_cloud_env__" > /opt/config/cloud_env.txt
1733             echo "__dcaeos_keystone_url__" > /opt/config/keystone_url.txt
1734             echo "__dcaeos_region__" > /opt/config/openstack_region.txt
1735             echo "__dcaeos_tenant_id__" > /opt/config/tenant_id.txt
1736             echo "__dcaeos_tenant_name__" > /opt/config/tenant_name.txt
1737             echo "__dcaeos_username__" > /opt/config/openstack_user.txt
1738             echo "__dcaeos_password__" > /opt/config/openstack_password.txt
1739             echo "__dcaeos_key_name__" > /opt/config/key_name.txt
1740             echo "__dcaeos_public_key__" > /opt/config/pub_key.txt
1741             echo "__dcaeos_private_key__" > /opt/config/priv_key
1742             echo "__dcaeos_private_network_name__" > /opt/config/openstack_private_network_name.txt
1743             echo "__dcaeos_public_network_name__" > /opt/config/public_net_name.txt
1744             echo "__dcaeos_public_network_name__" > /opt/config/public_net_id.txt
1745             echo "__dcaeos_ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1746             echo "__dcaeos_centos_7_image__" > /opt/config/centos_7_image.txt
1747             echo "__dcaeos_security_group__" > /opt/config/security_group.txt
1748             echo "__dcaeos_flavor_id__" > /opt/config/flavor_id.txt
1749             echo "__dcaeos_flavor_id_cdap__" > /opt/config/flavor_id_cdap.txt
1750             echo "__dcaeos_dnsaas_config_enabled__" > /opt/config/dnsaas_config_enabled.txt
1751             echo "__dcaeos_dnsaas_region__" > /opt/config/dnsaas_region.txt
1752             echo "__dcaeos_dnsaas_keystone_url__" > /opt/config/dnsaas_keystone_url.txt
1753             echo "__dnsaas_tenant_name__" > /opt/config/dnsaas_tenant_name.txt
1754             echo "__dcaeos_dnsaas_username__" > /opt/config/dnsaas_username.txt
1755             echo "__dcaeos_dnsaas_password__" > /opt/config/dnsaas_password.txt
1756             # fixed private IP addresses of other ONAP components
1757             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1758             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
1759             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
1760             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
1761             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
1762             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
1763             # floating IPs
1764             echo "__dns_floating_ip_addr__" > /opt/config/dns_floating_ip_addr.txt
1765             echo "__aai1_floating_ip_addr__" > /opt/config/aai1_floating_ip_addr.txt
1766             echo "__aai2_floating_ip_addr__" > /opt/config/aai2_floating_ip_addr.txt
1767             echo "__mrouter_floating_ip_addr__" > /opt/config/mrouter_floating_ip_addr.txt
1768             echo "__sdc_floating_ip_addr__" > /opt/config/sdc_floating_ip_addr.txt
1769             echo "__policy_floating_ip_addr__" > /opt/config/policy_floating_ip_addr.txt
1770             echo "__openo_floating_ip_addr__" > /opt/config/openo_floating_ip_addr.txt
1771             echo "__dcae_c_floating_ip_addr__" > /opt/config/dcae_c_floating_ip_addr.txt
1772
1773             # Download and run install script
1774             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1775             cd /opt
1776             chmod +x dcae2_install.sh
1777             ./dcae2_install.sh > /tmp/dcae2_install.log 2>&1