Explicitly assign security group to VMs.
[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_ztevnfmdriver_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             __vm_image_name__: { get_param: ubuntu_1404_image }
911             __vm_flavor__: { get_param: flavor_medium }
912             __public_net_id__: { get_param: public_net_id }
913             __script_version__: { get_param: artifacts_version }
914             __robot_repo__: { get_param: robot_repo }
915             __docker_version__: { get_param: robot_docker }
916           template: |
917             #!/bin/bash
918
919             # Create configuration files
920             mkdir -p /opt/config
921             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
922             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
923             echo "__nexus_username__" > /opt/config/nexus_username.txt
924             echo "__nexus_password__" > /opt/config/nexus_password.txt
925             echo "__network_name__" > /opt/config/network.txt
926             echo "__openstack_username__" > /opt/config/openstack_username.txt
927             echo "__openstack_api_key__" > /opt/config/openstack_password.txt
928             echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
929             echo "__openstack_region__" > /opt/config/region.txt
930             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
931             echo "__docker_version__" > /opt/config/docker_version.txt
932             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
933             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
934             echo "__keystone_url__" > /opt/config/keystone.txt
935             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
936             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
937             echo "__appc_ip_addr__" > /opt/config/appc_ip_addr.txt
938             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
939             echo "__so_ip_addr__" > /opt/config/so_ip_addr.txt
940             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
941             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
942             echo "__portal_ip_addr__" > /opt/config/portal_ip_addr.txt
943             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
944             echo "__sdnc_ip_addr__" > /opt/config/sdnc_ip_addr.txt
945             echo "__vid_ip_addr__" > /opt/config/vid_ip_addr.txt
946             echo "__clamp_ip_addr__" > /opt/config/clamp_ip_addr.txt
947             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
948             echo "__cloud_env__" > /opt/config/cloud_env.txt
949             echo "__external_dns__" > /opt/config/external_dns.txt
950             echo "__vm_image_name__" > /opt/config/vm_image_name.txt
951             echo "__vm_flavor__" > /opt/config/vm_flavor.txt
952             echo "__script_version__" > /opt/config/script_version.txt
953             echo "__public_net_id__" > /opt/config/public_net_id.txt
954             echo "__robot_repo__" > /opt/config/remote_repo.txt
955
956             # Download and run install script
957             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
958             cd /opt
959             chmod +x robot_install.sh
960             ./robot_install.sh
961
962
963   # VID instantiation
964   vid_private_port:
965     type: OS::Neutron::Port
966     properties:
967       network: { get_resource: oam_onap }
968       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: vid_ip_addr }}]
969       security_groups:
970       - { get_resource: onap_sg }
971
972   vid_floating_ip:
973     type: OS::Neutron::FloatingIP
974     properties:
975       floating_network_id: { get_param: public_net_id }
976       port_id: { get_resource: vid_private_port }
977
978   vid_vm:
979     type: OS::Nova::Server
980     properties:
981       image: { get_param: ubuntu_1404_image }
982       flavor: { get_param: flavor_medium }
983       name:
984         str_replace:
985           template: base-vid
986           params:
987             base: { get_param: vm_base_name }
988       key_name: { get_resource: vm_key }
989       networks:
990         - port: { get_resource: vid_private_port }
991       user_data_format: RAW
992       user_data:
993         str_replace:
994           params:
995             __nexus_repo__: { get_param: nexus_repo }
996             __nexus_docker_repo__: { get_param: nexus_docker_repo }
997             __nexus_username__: { get_param: nexus_username }
998             __nexus_password__: { get_param: nexus_password }
999             __artifacts_version__: { get_param: artifacts_version }
1000             __dns_ip_addr__: { get_param: dns_ip_addr }
1001             __docker_version__: { get_param: vid_docker }
1002             __gerrit_branch__: { get_param: vid_branch }
1003             __cloud_env__: { get_param: cloud_env }
1004             __external_dns__: { get_param: external_dns }
1005             __vid_repo__: { get_param: vid_repo }
1006           template: |
1007             #!/bin/bash
1008
1009             # Create configuration files
1010             mkdir -p /opt/config
1011             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1012             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1013             echo "__nexus_username__" > /opt/config/nexus_username.txt
1014             echo "__nexus_password__" > /opt/config/nexus_password.txt
1015             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1016             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1017             echo "__docker_version__" > /opt/config/docker_version.txt
1018             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1019             echo "__cloud_env__" > /opt/config/cloud_env.txt
1020             echo "__external_dns__" > /opt/config/external_dns.txt
1021             echo "__vid_repo__" > /opt/config/remote_repo.txt
1022
1023             # Download and run install script
1024             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
1025             cd /opt
1026             chmod +x vid_install.sh
1027             ./vid_install.sh
1028
1029
1030   # SDN-C instantiation
1031   sdnc_private_port:
1032     type: OS::Neutron::Port
1033     properties:
1034       network: { get_resource: oam_onap }
1035       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdnc_ip_addr }}]
1036       security_groups:
1037       - { get_resource: onap_sg }
1038
1039   sdnc_floating_ip:
1040     type: OS::Neutron::FloatingIP
1041     properties:
1042       floating_network_id: { get_param: public_net_id }
1043       port_id: { get_resource: sdnc_private_port }
1044
1045   sdnc_vm:
1046     type: OS::Nova::Server
1047     properties:
1048       image: { get_param: ubuntu_1404_image }
1049       flavor: { get_param: flavor_large }
1050       name:
1051         str_replace:
1052           template: base-sdnc
1053           params:
1054             base: { get_param: vm_base_name }
1055       key_name: { get_resource: vm_key }
1056       networks:
1057         - port: { get_resource: sdnc_private_port }
1058       user_data_format: RAW
1059       user_data:
1060         str_replace:
1061           params:
1062             __nexus_repo__: { get_param: nexus_repo }
1063             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1064             __nexus_username__: { get_param: nexus_username }
1065             __nexus_password__: { get_param: nexus_password }
1066             __artifacts_version__: { get_param: artifacts_version }
1067             __dns_ip_addr__: { get_param: dns_ip_addr }
1068             __docker_version__: { get_param: sdnc_docker }
1069             __gerrit_branch__: { get_param: sdnc_branch }
1070             __dgbuilder_docker__: { get_param: dgbuilder_docker }
1071             __cloud_env__: { get_param: cloud_env }
1072             __external_dns__: { get_param: external_dns }
1073             __sdnc_repo__: { get_param: sdnc_repo }
1074           template: |
1075             #!/bin/bash
1076
1077             # Create configuration files
1078             mkdir -p /opt/config
1079             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1080             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1081             echo "__nexus_username__" > /opt/config/nexus_username.txt
1082             echo "__nexus_password__" > /opt/config/nexus_password.txt
1083             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1084             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1085             echo "__docker_version__" > /opt/config/docker_version.txt
1086             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1087             echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1088             echo "__cloud_env__" > /opt/config/cloud_env.txt
1089             echo "__external_dns__" > /opt/config/external_dns.txt
1090             echo "__sdnc_repo__" > /opt/config/remote_repo.txt
1091
1092             # Download and run install script
1093             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
1094             cd /opt
1095             chmod +x sdnc_install.sh
1096             ./sdnc_install.sh
1097
1098
1099   # SDC instantiation
1100   sdc_private_port:
1101     type: OS::Neutron::Port
1102     properties:
1103       network: { get_resource: oam_onap }
1104       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: sdc_ip_addr }}]
1105       security_groups:
1106       - { get_resource: onap_sg }
1107
1108   sdc_floating_ip:
1109     type: OS::Neutron::FloatingIP
1110     properties:
1111       floating_network_id: { get_param: public_net_id }
1112       port_id: { get_resource: sdc_private_port }
1113
1114   sdc_volume_data:
1115     type: OS::Cinder::Volume
1116     properties:
1117       name: vol1-sdc-data
1118       size: 100
1119
1120   sdc_vm:
1121     type: OS::Nova::Server
1122     properties:
1123       image: { get_param: ubuntu_1604_image }
1124       flavor: { get_param: flavor_xlarge }
1125       name:
1126         str_replace:
1127           template: base-sdc
1128           params:
1129             base: { get_param: vm_base_name }
1130       key_name: { get_resource: vm_key }
1131       networks:
1132         - port: { get_resource: sdc_private_port }
1133       block_device_mapping:
1134         - device_name: /dev/vdb
1135           volume_id: {get_resource: sdc_volume_data}
1136       user_data_format: RAW
1137       user_data:
1138         str_replace:
1139           params:
1140             __nexus_repo__: { get_param: nexus_repo }
1141             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1142             __nexus_username__: { get_param: nexus_username }
1143             __nexus_password__: { get_param: nexus_password }
1144             __env_name__: { get_param: dmaap_topic }
1145             __artifacts_version__: { get_param: artifacts_version }
1146             __dns_ip_addr__: { get_param: dns_ip_addr }
1147             __mr_ip_addr__: { get_param: mr_ip_addr }
1148             __private_ip__: { get_param: sdc_ip_addr }
1149             __docker_version__: { get_param: sdc_docker }
1150             __gerrit_branch__: { get_param: sdc_branch }
1151             __cloud_env__: { get_param: cloud_env }
1152             __external_dns__: { get_param: external_dns }
1153             __sdc_repo__: { get_param: sdc_repo }
1154           template: |
1155             #!/bin/bash
1156
1157             # Create configuration files
1158             mkdir -p /opt/config
1159             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1160             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1161             echo "__nexus_username__" > /opt/config/nexus_username.txt
1162             echo "__nexus_password__" > /opt/config/nexus_password.txt
1163             echo "__env_name__" > /opt/config/env_name.txt
1164             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1165             echo "__private_ip__" > /opt/config/private_ip.txt
1166             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1167             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1168             echo "__docker_version__" > /opt/config/docker_version.txt
1169             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1170             echo "__cloud_env__" > /opt/config/cloud_env.txt
1171             echo "__external_dns__" > /opt/config/external_dns.txt
1172             echo "__sdc_repo__" > /opt/config/remote_repo.txt
1173
1174             # Download and run install script
1175             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
1176             cd /opt
1177             chmod +x sdc_install.sh
1178             ./sdc_install.sh
1179
1180
1181   # PORTAL instantiation
1182   portal_private_port:
1183     type: OS::Neutron::Port
1184     properties:
1185       network: { get_resource: oam_onap }
1186       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: portal_ip_addr }}]
1187       security_groups:
1188       - { get_resource: onap_sg }
1189
1190   portal_floating_ip:
1191     type: OS::Neutron::FloatingIP
1192     properties:
1193       floating_network_id: { get_param: public_net_id }
1194       port_id: { get_resource: portal_private_port }
1195
1196   portal_vm:
1197     type: OS::Nova::Server
1198     properties:
1199       image: { get_param: ubuntu_1404_image }
1200       flavor: { get_param: flavor_large }
1201       name:
1202         str_replace:
1203           template: base-portal
1204           params:
1205             base: { get_param: vm_base_name }
1206       key_name: { get_resource: vm_key }
1207       networks:
1208         - port: { get_resource: portal_private_port }
1209       user_data_format: RAW
1210       user_data:
1211         str_replace:
1212           params:
1213             __nexus_repo__: { get_param: nexus_repo }
1214             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1215             __nexus_username__: { get_param: nexus_username }
1216             __nexus_password__: { get_param: nexus_password }
1217             __artifacts_version__: { get_param: artifacts_version }
1218             __dns_ip_addr__: { get_param: dns_ip_addr }
1219             __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] }
1220             __docker_version__: { get_param: portal_docker }
1221             __gerrit_branch__: { get_param: portal_branch }
1222             __cli_docker__: { get_param: cli_docker }
1223             __cloud_env__: { get_param: cloud_env }
1224             __external_dns__: { get_param: external_dns }
1225             __portal_repo__: { get_param: portal_repo }
1226           template: |
1227             #!/bin/bash
1228
1229             # Create configuration files
1230             mkdir -p /opt/config
1231             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1232             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1233             echo "__nexus_username__" > /opt/config/nexus_username.txt
1234             echo "__nexus_password__" > /opt/config/nexus_password.txt
1235             echo "__public_ip__" > /opt/config/public_ip.txt
1236             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1237             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1238             echo "__docker_version__" > /opt/config/docker_version.txt
1239             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1240             echo "__cli_docker__" > /opt/config/cli_docker_version.txt
1241             echo "__cloud_env__" > /opt/config/cloud_env.txt
1242             echo "__external_dns__" > /opt/config/external_dns.txt
1243             echo "__portal_repo__" > /opt/config/remote_repo.txt
1244
1245             # Download and run install script
1246             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
1247             cd /opt
1248             chmod +x portal_install.sh
1249             ./portal_install.sh
1250
1251
1252   # Policy Engine instantiation
1253   policy_private_port:
1254     type: OS::Neutron::Port
1255     properties:
1256       network: { get_resource: oam_onap }
1257       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: policy_ip_addr }}]
1258       security_groups:
1259       - { get_resource: onap_sg }
1260
1261   policy_floating_ip:
1262     type: OS::Neutron::FloatingIP
1263     properties:
1264       floating_network_id: { get_param: public_net_id }
1265       port_id: { get_resource: policy_private_port }
1266
1267   policy_vm:
1268     type: OS::Nova::Server
1269     properties:
1270       image: { get_param: ubuntu_1404_image }
1271       flavor: { get_param: flavor_xlarge }
1272       name:
1273         str_replace:
1274           template: base-policy
1275           params:
1276             base: { get_param: vm_base_name }
1277       key_name: { get_resource: vm_key }
1278       networks:
1279         - port: { get_resource: policy_private_port }
1280       user_data_format: RAW
1281       user_data:
1282         str_replace:
1283           params:
1284             __nexus_repo__: { get_param: nexus_repo }
1285             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1286             __nexus_username__: { get_param: nexus_username }
1287             __nexus_password__: { get_param: nexus_password }
1288             __artifacts_version__: { get_param: artifacts_version }
1289             __dns_ip_addr__: { get_param: dns_ip_addr }
1290             __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
1291             __docker_version__: { get_param: policy_docker }
1292             __gerrit_branch__: { get_param: policy_branch }
1293             __cloud_env__: { get_param: cloud_env }
1294             __external_dns__: { get_param: external_dns }
1295             __policy_repo__: { get_param: policy_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 "__artifacts_version__" > /opt/config/artifacts_version.txt
1306             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1307             echo "__public_ip__" > /opt/config/public_ip.txt
1308             echo "__docker_version__" > /opt/config/docker_version.txt
1309             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1310             echo "__cloud_env__" > /opt/config/cloud_env.txt
1311             echo "__external_dns__" > /opt/config/external_dns.txt
1312             echo "__policy_repo__" > /opt/config/remote_repo.txt
1313
1314             # Download and run install script
1315             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1316             cd /opt
1317             chmod +x policy_install.sh
1318             ./policy_install.sh
1319
1320
1321   # APP-C instantiation
1322   appc_private_port:
1323     type: OS::Neutron::Port
1324     properties:
1325       network: { get_resource: oam_onap }
1326       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: appc_ip_addr }}]
1327       security_groups:
1328       - { get_resource: onap_sg }
1329
1330   appc_floating_ip:
1331     type: OS::Neutron::FloatingIP
1332     properties:
1333       floating_network_id: { get_param: public_net_id }
1334       port_id: { get_resource: appc_private_port }
1335
1336   appc_vm:
1337     type: OS::Nova::Server
1338     properties:
1339       image: { get_param: ubuntu_1404_image }
1340       flavor: { get_param: flavor_large }
1341       name:
1342         str_replace:
1343           template: base-appc
1344           params:
1345             base: { get_param: vm_base_name }
1346       key_name: { get_resource: vm_key }
1347       networks:
1348         - port: { get_resource: appc_private_port }
1349       user_data_format: RAW
1350       user_data:
1351         str_replace:
1352           params:
1353             __nexus_repo__: { get_param: nexus_repo }
1354             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1355             __nexus_username__: { get_param: nexus_username }
1356             __nexus_password__: { get_param: nexus_password }
1357             __dmaap_topic__: { get_param: dmaap_topic }
1358             __artifacts_version__: { get_param: artifacts_version }
1359             __dns_ip_addr__: { get_param: dns_ip_addr }
1360             __docker_version__: { get_param: appc_docker }
1361             __gerrit_branch__: { get_param: appc_branch }
1362             __dgbuilder_docker__: { get_param: dgbuilder_docker }
1363             __cloud_env__: { get_param: cloud_env }
1364             __external_dns__: { get_param: external_dns }
1365             __appc_repo__: { get_param: appc_repo }
1366           template: |
1367             #!/bin/bash
1368
1369             # Create configuration files
1370             mkdir -p /opt/config
1371             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1372             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1373             echo "__nexus_username__" > /opt/config/nexus_username.txt
1374             echo "__nexus_password__" > /opt/config/nexus_password.txt
1375             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1376             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1377             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1378             echo "__docker_version__" > /opt/config/docker_version.txt
1379             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1380             echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1381             echo "__cloud_env__" > /opt/config/cloud_env.txt
1382             echo "__external_dns__" > /opt/config/external_dns.txt
1383             echo "__appc_repo__" > /opt/config/remote_repo.txt
1384
1385             # Download and run install script
1386             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1387             cd /opt
1388             chmod +x appc_install.sh
1389             ./appc_install.sh
1390
1391
1392   # CLAMP instantiation
1393   clamp_private_port:
1394     type: OS::Neutron::Port
1395     properties:
1396       network: { get_resource: oam_onap }
1397       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: clamp_ip_addr }}]
1398       security_groups:
1399       - { get_resource: onap_sg }
1400
1401   clamp_floating_ip:
1402     type: OS::Neutron::FloatingIP
1403     properties:
1404       floating_network_id: { get_param: public_net_id }
1405       port_id: { get_resource: clamp_private_port }
1406
1407   clamp_vm:
1408     type: OS::Nova::Server
1409     properties:
1410       image: { get_param: ubuntu_1604_image }
1411       flavor: { get_param: flavor_medium }
1412       name:
1413         str_replace:
1414           template: base-clamp
1415           params:
1416             base: { get_param: vm_base_name }
1417       key_name: { get_resource: vm_key }
1418       networks:
1419         - port: { get_resource: clamp_private_port }
1420       user_data_format: RAW
1421       user_data:
1422         str_replace:
1423           params:
1424             __nexus_repo__: { get_param: nexus_repo }
1425             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1426             __nexus_username__: { get_param: nexus_username }
1427             __nexus_password__: { get_param: nexus_password }
1428             __openstack_username__: { get_param: openstack_username }
1429             __openstack_tenant_id__: { get_param: openstack_tenant_id }
1430             __openstack_api_key__: { get_param: openstack_api_key }
1431             __openstack_region__: { get_param: openstack_region }
1432             __keystone_url__: { get_param: keystone_url }
1433             __dmaap_topic__: { get_param: dmaap_topic }
1434             __artifacts_version__: { get_param: artifacts_version }
1435             __dns_ip_addr__: { get_param: dns_ip_addr }
1436             __docker_version__: { get_param: clamp_docker }
1437             __gerrit_branch__: { get_param: clamp_branch }
1438             __cloud_env__: { get_param: cloud_env }
1439             __external_dns__: { get_param: external_dns }
1440             __clamp_repo__: { get_param: clamp_repo }
1441           template: |
1442             #!/bin/bash
1443
1444             # Create configuration files
1445             mkdir -p /opt/config
1446             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1447             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1448             echo "__nexus_username__" > /opt/config/nexus_username.txt
1449             echo "__nexus_password__" > /opt/config/nexus_password.txt
1450             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1451             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1452             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1453             echo "__openstack_username__" > /opt/config/openstack_username.txt
1454             echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1455             echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1456             echo "__openstack_region__" > /opt/config/openstack_region.txt
1457             echo "__keystone_url__" > /opt/config/keystone.txt
1458             echo "__docker_version__" > /opt/config/docker_version.txt
1459             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1460             echo "__cloud_env__" > /opt/config/cloud_env.txt
1461             echo "__external_dns__" > /opt/config/external_dns.txt
1462             echo "__clamp_repo__" > /opt/config/remote_repo.txt
1463
1464             # Download and run install script
1465             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1466             cd /opt
1467             chmod +x clamp_install.sh
1468             ./clamp_install.sh
1469
1470
1471   # OPEN-O VM instantiation
1472   openo_private_port:
1473     type: OS::Neutron::Port
1474     properties:
1475       network: { get_resource: oam_onap }
1476       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: openo_ip_addr }}]
1477       security_groups:
1478       - { get_resource: onap_sg }
1479
1480   openo_floating_ip:
1481     type: OS::Neutron::FloatingIP
1482     properties:
1483       floating_network_id: { get_param: public_net_id }
1484       port_id: { get_resource: openo_private_port }
1485
1486   openo_vm:
1487     type: OS::Nova::Server
1488     properties:
1489       image: { get_param: ubuntu_1604_image }
1490       flavor: { get_param: flavor_xxlarge }
1491       name:
1492         str_replace:
1493           template: base-multi-service
1494           params:
1495             base: { get_param: vm_base_name }
1496       key_name: { get_resource: vm_key }
1497       networks:
1498         - port: { get_resource: openo_private_port }
1499       user_data_format: RAW
1500       user_data:
1501         str_replace:
1502           params:
1503             __nexus_repo__: { get_param: nexus_repo }
1504             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1505             __nexus_username__: { get_param: nexus_username }
1506             __nexus_password__: { get_param: nexus_password }
1507             __artifacts_version__: { get_param: artifacts_version }
1508             __dns_ip_addr__: { get_param: dns_ip_addr }
1509             __oam_network_cidr__: { get_param: oam_network_cidr }
1510             __aai1_ip_addr__: { get_param: aai1_ip_addr }
1511             __aai2_ip_addr__: { get_param: aai2_ip_addr }
1512             __appc_ip_addr__: { get_param: appc_ip_addr }
1513             __dcae_ip_addr__: { get_param: dcae_ip_addr }
1514             __so_ip_addr__: { get_param: so_ip_addr }
1515             __mr_ip_addr__: { get_param: mr_ip_addr }
1516             __policy_ip_addr__: { get_param: policy_ip_addr }
1517             __portal_ip_addr__: { get_param: portal_ip_addr }
1518             __robot_ip_addr__: { get_param: robot_ip_addr }
1519             __sdc_ip_addr__: { get_param: sdc_ip_addr }
1520             __sdnc_ip_addr__: { get_param: sdnc_ip_addr }
1521             __vid_ip_addr__: { get_param: vid_ip_addr }
1522             __clamp_ip_addr__: { get_param: clamp_ip_addr }
1523             __openo_ip_addr__: { get_param: openo_ip_addr }
1524             __cloud_env__: { get_param: cloud_env }
1525             __external_dns__: { get_param: external_dns }
1526             __vnfsdk_branch__: { get_param: vnfsdk_branch }
1527             __msb_docker__: { get_param: msb_docker }
1528             __mvim_docker__: { get_param: mvim_docker }
1529             __uui_docker__: { get_param: uui_docker }
1530             __esr_docker__: { get_param: esr_docker }
1531             __vnfsdk_repo__: { get_param: vnfsdk_repo }
1532             __vfc_nokia_docker__: { get_param: vfc_nokia_docker }
1533             __vfc_ztevnfmdriver_docker__: { get_param: vfc_ztevnfmdriver_docker }
1534             __vfc_ztesdncdriver_docker__: { get_param: vfc_ztesdncdriver_docker }
1535             __vfc_vnfres_docker__: { get_param: vfc_vnfres_docker }
1536             __vfc_vnfmgr_docker__: { get_param: vfc_vnfmgr_docker }
1537             __vfc_vnflcm_docker__: { get_param: vfc_vnflcm_docker }
1538             __vfc_resmanagement_docker__: { get_param: vfc_resmanagement_docker }
1539             __vfc_nslcm_docker__: { get_param: vfc_nslcm_docker }
1540             __vfc_huawei_docker__: { get_param: vfc_huawei_docker }
1541             __vfc_jujudriver_docker__: { get_param: vfc_jujudriver_docker }
1542             __vfc_gvnfmdriver_docker__: { get_param: vfc_gvnfmdriver_docker }
1543             __vfc_emsdriver_docker__: { get_param: vfc_emsdriver_docker }
1544             __vfc_catalog_docker__: { get_param: vfc_catalog_docker }
1545             __vfc_wfengine_mgrservice_docker__: { get_param: vfc_wfengine_mgrservice_docker }
1546             __vfc_wfengine_activiti_docker__: { get_param: vfc_wfengine_activiti_docker }
1547           template: |
1548             #!/bin/bash
1549
1550             # Create configuration files
1551             mkdir -p /opt/config
1552             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1553             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1554             echo "__nexus_username__" > /opt/config/nexus_username.txt
1555             echo "__nexus_password__" > /opt/config/nexus_password.txt
1556             echo "__cloud_env__" > /opt/config/cloud_env.txt
1557             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1558             echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
1559             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1560             echo "__external_dns__" > /opt/config/external_dns.txt
1561             echo "__vnfsdk_branch__" > /opt/config/vnfsdk_branch.txt
1562             echo "__msb_docker__" > /opt/config/msb_docker.txt
1563             echo "__mvim_docker__" > /opt/config/mvim_docker.txt
1564             echo "__uui_docker__" > /opt/config/uui_docker.txt
1565             echo "__esr_docker__" > /opt/config/esr_docker.txt
1566             echo "__vnfsdk_repo__" > /opt/config/vnfsdk_repo.txt
1567
1568             echo "export NOKIA_DOCKER_VER=__vfc_nokia_docker__" >> /opt/config/vfc_docker.txt
1569             echo "export ZTEVNFMDRIVER_DOCKER_VER=__vfc_ztevnfmdriver_docker__" >> /opt/config/vfc_docker.txt
1570             echo "export ZTESDNCDRIVER_DOCKER_VER=__vfc_ztesdncdriver_docker__" >> /opt/config/vfc_docker.txt
1571             echo "export VNFRES_DOCKER_VER=__vfc_vnfres_docker__" >> /opt/config/vfc_docker.txt
1572             echo "export VNFMGR_DOCKER_VER=__vfc_vnfmgr_docker__" >> /opt/config/vfc_docker.txt
1573             echo "export VNFLCM_DOCKER_VER=__vfc_vnflcm_docker__" >> /opt/config/vfc_docker.txt
1574             echo "export RESMANAGEMENT_DOCKER_VER=__vfc_resmanagement_docker__" >> /opt/config/vfc_docker.txt
1575             echo "export NSLCM_DOCKER_VER=__vfc_nslcm_docker__" >> /opt/config/vfc_docker.txt
1576             echo "export HUAWEI_DOCKER_VER=__vfc_huawei_docker__" >> /opt/config/vfc_docker.txt
1577             echo "export JUJUDRIVER_DOCKER_VER=__vfc_jujudriver_docker__" >> /opt/config/vfc_docker.txt
1578             echo "export GVNFMDRIVER_DOCKER_VER=__vfc_gvnfmdriver_docker__" >> /opt/config/vfc_docker.txt
1579             echo "export EMSDRIVER_DOCKER_VER=__vfc_emsdriver_docker__" >> /opt/config/vfc_docker.txt
1580             echo "export CATALOG_DOCKER_VER=__vfc_catalog_docker__" >> /opt/config/vfc_docker.txt
1581             echo "export MGRSERVICE_DOCKER_VER=__vfc_wfengine_mgrservice_docker__" >> /opt/config/vfc_docker.txt
1582             echo "export ACTIVITI_DOCKER_VER=__vfc_wfengine_activiti_docker__" >> /opt/config/vfc_docker.txt
1583
1584             # Create env file with the IP address of all ONAP components
1585             echo "export AAI_IP1=__aai1_ip_addr__" >> /opt/config/onap_ips.txt
1586             echo "export AAI_IP2=__aai2_ip_addr__" >> /opt/config/onap_ips.txt
1587             echo "export APPC_IP=__appc_ip_addr__" >> /opt/config/onap_ips.txt
1588             echo "export DCAE_IP=__dcae_ip_addr__" >> /opt/config/onap_ips.txt
1589             echo "export SO_IP=__so_ip_addr__" >> /opt/config/onap_ips.txt
1590             echo "export MR_IP=__mr_ip_addr__" >> /opt/config/onap_ips.txt
1591             echo "export POLICY_IP=__policy_ip_addr__" >> /opt/config/onap_ips.txt
1592             echo "export PORTAL_IP=__portal_ip_addr__" >> /opt/config/onap_ips.txt
1593             echo "export ROBOT_IP=__robot_ip_addr__" >> /opt/config/onap_ips.txt
1594             echo "export SDC_IP=__sdc_ip_addr__" >> /opt/config/onap_ips.txt
1595             echo "export SDNC_IP=__sdnc_ip_addr__" >> /opt/config/onap_ips.txt
1596             echo "export VID_IP=__vid_ip_addr__" >> /opt/config/onap_ips.txt
1597             echo "export CLAMP_IP=__clamp_ip_addr__" >> /opt/config/onap_ips.txt
1598             echo "export OPENO_IP=__openo_ip_addr__" >> /opt/config/onap_ips.txt
1599
1600             # Download and run install script
1601             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/openo_install.sh -o /opt/openo_install.sh
1602             cd /opt
1603             chmod +x openo_install.sh
1604             ./openo_install.sh
1605
1606
1607   # DCAE GEN 2 Controller instantiation
1608   dcae_c_private_port:
1609     type: OS::Neutron::Port
1610     properties:
1611       network: { get_resource: oam_onap }
1612       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: dcae_ip_addr }}]
1613       security_groups:
1614       - { get_resource: onap_sg }
1615
1616   dcae_c_floating_ip:
1617     type: OS::Neutron::FloatingIP
1618     properties:
1619       floating_network_id: { get_param: public_net_id }
1620       port_id: { get_resource: dcae_c_private_port }
1621
1622   dcae_c_vm:
1623     type: OS::Nova::Server
1624     properties:
1625       image: { get_param: ubuntu_1604_image }
1626       flavor: { get_param: flavor_small }
1627       name:
1628         str_replace:
1629           template: base-dcae-bootstrap
1630           params:
1631             base: { get_param: vm_base_name }
1632       key_name: { get_resource: vm_key }
1633       networks:
1634         - port: { get_resource: dcae_c_private_port }
1635       #security_groups:
1636       #  - { get_resource: onap_sg }
1637       user_data_format: RAW
1638       user_data:
1639         str_replace:
1640           params:
1641             __rand_str__: { get_resource: random-str }
1642             # repo related
1643             __artifacts_version__: { get_param: artifacts_version }
1644             __docker_version__: { get_param: dcae_docker }
1645             __nexus_repo__: { get_param: nexus_repo }
1646             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1647             __nexus_username__: { get_param: nexus_username }
1648             __nexus_password__: { get_param: nexus_password }
1649             # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1650             __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
1651             __dcae_ip_addr__: { get_param: dcae_ip_addr }
1652             __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1653             __dns_ip_addr__: { get_param: dns_ip_addr }
1654             __external_dns__: { get_param: external_dns }
1655             __dns_forwarder__: { get_param: dns_forwarder }
1656             __dcae_domain__: { get_param: dcae_domain }
1657             # conf for VMs DCAE is to bringup
1658             __openstack_keystone_url__: { get_param: keystone_url }
1659             __dcae_keystone_url__: { get_param: dcae_keystone_url }
1660             __dcaeos_cloud_env__: { get_param: cloud_env }
1661             __dcaeos_keystone_url__: { get_param: dcae_keystone_url }
1662             __dcaeos_region__: { get_param: openstack_region }
1663             __dcaeos_tenant_id__: { get_param: openstack_tenant_id }
1664             __dcaeos_tenant_name__: { get_param: openstack_tenant_name }
1665             __dcaeos_security_group__:
1666               str_replace:
1667                 template: 'onap_sg_rand'
1668                 params:
1669                   rand: { get_resource: random-str }
1670             #__dcaeos_security_group__: { get_attr: [onap_sg, name] }
1671             __dcaeos_username__: { get_param: openstack_username }
1672             __dcaeos_password__: { get_param: openstack_api_key }
1673             __dcaeos_key_name__: { get_resource: vm_key }
1674             __dcaeos_public_key__: { get_param: dcae_public_key }
1675             __dcaeos_private_key__: { get_param: dcae_private_key }
1676             __dcaeos_private_network_name__: { get_attr: [oam_onap, name] }
1677             __dcaeos_public_network_name__: { get_param: public_net_name }
1678             __dcaeos_ubuntu_1604_image__: { get_param: ubuntu_1604_image }
1679             __dcaeos_centos_7_image__: { get_param: dcae_centos_7_image }
1680             __dcaeos_flavor_id__: { get_param: flavor_medium }
1681             __dcaeos_flavor_id_cdap__: { get_param: flavor_large }
1682             __dcaeos_dnsaas_config_enabled__: { get_param: dnsaas_config_enabled }
1683             __dcaeos_dnsaas_region__: { get_param: dnsaas_region }
1684             __dcaeos_dnsaas_keystone_url__: { get_param: dnsaas_keystone_url }
1685             __dnsaas_tenant_name__: { get_param: dnsaas_tenant_name }
1686             __dcaeos_dnsaas_username__: { get_param: dnsaas_username }
1687             __dcaeos_dnsaas_password__: { get_param: dnsaas_password }
1688             # fixed private IPs
1689             __mr_ip_addr__: { get_param: mr_ip_addr }
1690             __policy_ip_addr__: { get_param: policy_ip_addr }
1691             __sdc_ip_addr__: { get_param: sdc_ip_addr }
1692             __openo_ip_addr__: { get_param: openo_ip_addr }
1693             __aai1_ip_addr__: { get_param: aai1_ip_addr }
1694             __aai2_ip_addr__: { get_param: aai2_ip_addr }
1695             # floating IPs
1696             __dns_floating_ip_addr__: { get_attr: [dns_floating_ip, floating_ip_address] }
1697             __aai1_floating_ip_addr__: { get_attr: [aai1_floating_ip, floating_ip_address] }
1698             __aai2_floating_ip_addr__: { get_attr: [aai2_floating_ip, floating_ip_address] }
1699             __mrouter_floating_ip_addr__: { get_attr: [mrouter_floating_ip, floating_ip_address] }
1700             __sdc_floating_ip_addr__: { get_attr: [sdc_floating_ip, floating_ip_address] }
1701             __policy_floating_ip_addr__: { get_attr: [policy_floating_ip, floating_ip_address] }
1702             __openo_floating_ip_addr__: { get_attr: [openo_floating_ip, floating_ip_address] }
1703             __dcae_c_floating_ip_addr__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
1704
1705           template: |
1706             #!/bin/bash
1707
1708             # Create configuration files
1709             mkdir -p /opt/config
1710             echo "__rand_str__" > /opt/config/dcae_zone.txt
1711             echo "__rand_str__" > /opt/config/rand_str.txt
1712             # repo related
1713             echo "__docker_version__" > /opt/config/docker_version.txt
1714             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1715             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1716             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1717             echo "__nexus_username__" > /opt/config/nexus_username.txt
1718             echo "__nexus_password__" > /opt/config/nexus_password.txt
1719             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1720             # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
1721             echo "__mac_addr__" > /opt/config/mac_addr.txt
1722             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1723             echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
1724             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
1725             echo "__external_dns__" > /opt/config/external_dns.txt
1726             echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt
1727             echo "__dcae_domain__" > /opt/config/dcae_domain.txt
1728             # conf for the OpenStack env where DCAE is deployed
1729             echo "__openstack_keystone_url__" > /opt/config/openstack_keystone_url.txt
1730             echo "__dcaeos_cloud_env__" > /opt/config/cloud_env.txt
1731             echo "__dcaeos_keystone_url__" > /opt/config/keystone_url.txt
1732             echo "__dcaeos_region__" > /opt/config/openstack_region.txt
1733             echo "__dcaeos_tenant_id__" > /opt/config/tenant_id.txt
1734             echo "__dcaeos_tenant_name__" > /opt/config/tenant_name.txt
1735             echo "__dcaeos_username__" > /opt/config/openstack_user.txt
1736             echo "__dcaeos_password__" > /opt/config/openstack_password.txt
1737             echo "__dcaeos_key_name__" > /opt/config/key_name.txt
1738             echo "__dcaeos_public_key__" > /opt/config/pub_key.txt
1739             echo "__dcaeos_private_key__" > /opt/config/priv_key
1740             echo "__dcaeos_private_network_name__" > /opt/config/openstack_private_network_name.txt
1741             echo "__dcaeos_public_network_name__" > /opt/config/public_net_name.txt
1742             echo "__dcaeos_public_network_name__" > /opt/config/public_net_id.txt
1743             echo "__dcaeos_ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
1744             echo "__dcaeos_centos_7_image__" > /opt/config/centos_7_image.txt
1745             echo "__dcaeos_security_group__" > /opt/config/security_group.txt
1746             echo "__dcaeos_flavor_id__" > /opt/config/flavor_id.txt
1747             echo "__dcaeos_flavor_id_cdap__" > /opt/config/flavor_id_cdap.txt
1748             echo "__dcaeos_dnsaas_config_enabled__" > /opt/config/dnsaas_config_enabled.txt
1749             echo "__dcaeos_dnsaas_region__" > /opt/config/dnsaas_region.txt
1750             echo "__dcaeos_dnsaas_keystone_url__" > /opt/config/dnsaas_keystone_url.txt
1751             echo "__dnsaas_tenant_name__" > /opt/config/dnsaas_tenant_name.txt
1752             echo "__dcaeos_dnsaas_username__" > /opt/config/dnsaas_username.txt
1753             echo "__dcaeos_dnsaas_password__" > /opt/config/dnsaas_password.txt
1754             # fixed private IP addresses of other ONAP components
1755             echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
1756             echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
1757             echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
1758             echo "__openo_ip_addr__" > /opt/config/openo_ip_addr.txt
1759             echo "__aai1_ip_addr__" > /opt/config/aai1_ip_addr.txt
1760             echo "__aai2_ip_addr__" > /opt/config/aai2_ip_addr.txt
1761             # floating IPs
1762             echo "__dns_floating_ip_addr__" > /opt/config/dns_floating_ip_addr.txt
1763             echo "__aai1_floating_ip_addr__" > /opt/config/aai1_floating_ip_addr.txt
1764             echo "__aai2_floating_ip_addr__" > /opt/config/aai2_floating_ip_addr.txt
1765             echo "__mrouter_floating_ip_addr__" > /opt/config/mrouter_floating_ip_addr.txt
1766             echo "__sdc_floating_ip_addr__" > /opt/config/sdc_floating_ip_addr.txt
1767             echo "__policy_floating_ip_addr__" > /opt/config/policy_floating_ip_addr.txt
1768             echo "__openo_floating_ip_addr__" > /opt/config/openo_floating_ip_addr.txt
1769             echo "__dcae_c_floating_ip_addr__" > /opt/config/dcae_c_floating_ip_addr.txt
1770
1771             # Download and run install script
1772             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh
1773             cd /opt
1774             chmod +x dcae2_install.sh
1775             ./dcae2_install.sh > /tmp/dcae2_install.log 2>&1