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