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