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