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