7486d7f719d0610d7150a059e6f677119876eeaf
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     pd_flavor_name:
12       label: PD flavor name
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - hot-mog-0108-bs1271
21             source_type: HEAT
22             param_name: pd_flavor_name
23       type: string
24       description: flavor name of PD instance
25       default: m3.xlarge
26     dummy_net_name_1:
27       label: csb ineternal cidr
28       hidden: false
29       immutable: false
30       annotations:
31         source:
32           type: org.openecomp.annotations.Source
33           properties:
34             vf_module_label:
35             - hot-mog-0108-bs1271
36             source_type: HEAT
37             param_name: dummy_net_name_1
38       type: string
39       description: csb internal cidr
40       default: mog_dummy_1
41     availabilityzone_name:
42       label: availabilityzone name
43       hidden: false
44       immutable: false
45       annotations:
46         source:
47           type: org.openecomp.annotations.Source
48           properties:
49             vf_module_label:
50             - hot-mog-0108-bs1271
51             source_type: HEAT
52             param_name: availabilityzone_name
53       type: string
54       description: availabilityzone name
55       default: nova
56     template_PortTuple_LB1:
57       hidden: false
58       immutable: false
59       annotations:
60         source:
61           type: org.openecomp.annotations.Source
62           properties:
63             vf_module_label:
64             - hot-mog-0108-bs1271
65             source_type: HEAT
66             param_name: template_PortTuple_LB1
67       type: string
68       description: dummy
69     lb_st_interface_type_oam:
70       hidden: false
71       immutable: false
72       annotations:
73         source:
74           type: org.openecomp.annotations.Source
75           properties:
76             vf_module_label:
77             - hot-mog-0108-bs1271
78             source_type: HEAT
79             param_name: lb_st_interface_type_oam
80       type: string
81       description: dummy
82     oam_sec_group_name:
83       hidden: false
84       immutable: false
85       annotations:
86         source:
87           type: org.openecomp.annotations.Source
88           properties:
89             vf_module_label:
90             - hot-mog-0108-bs1271
91             source_type: HEAT
92             param_name: oam_sec_group_name
93       type: string
94       description: dummy
95     virtual_ip_address:
96       hidden: false
97       immutable: false
98       annotations:
99         source:
100           type: org.openecomp.annotations.Source
101           properties:
102             vf_module_label:
103             - hot-mog-0108-bs1271
104             source_type: HEAT
105             param_name: virtual_ip_address
106       type: string
107       description: dummy
108     nems_traffic_name:
109       hidden: false
110       immutable: false
111       annotations:
112         source:
113           type: org.openecomp.annotations.Source
114           properties:
115             vf_module_label:
116             - hot-mog-0108-bs1271
117             source_type: HEAT
118             param_name: nems_traffic_name
119       type: string
120       description: dummy
121     pd_image_name:
122       label: image name
123       hidden: false
124       immutable: false
125       annotations:
126         source:
127           type: org.openecomp.annotations.Source
128           properties:
129             vf_module_label:
130             - hot-mog-0108-bs1271
131             source_type: HEAT
132             param_name: pd_image_name
133       type: string
134       description: PD image name
135       default: MOG_BASE_8.0
136     pd_server_names:
137       label: PD server names
138       hidden: false
139       immutable: false
140       annotations:
141         source:
142           type: org.openecomp.annotations.Source
143           properties:
144             vf_module_label:
145             - hot-mog-0108-bs1271
146             source_type: HEAT
147             param_name: pd_server_names
148       type: list
149       description: name of the PD instance
150       default:
151       - ZRDM1MOGX01MPD001
152       - ZRDM1MOGX01MPD002
153       entry_schema:
154         type: string
155     pd_security_group_name:
156       label: pd_security_group_name
157       hidden: false
158       immutable: false
159       annotations:
160         source:
161           type: org.openecomp.annotations.Source
162           properties:
163             vf_module_label:
164             - hot-mog-0108-bs1271
165             source_type: HEAT
166             param_name: pd_security_group_name
167       type: string
168       description: pd_security_group_name
169     jsa_net_name:
170       hidden: false
171       immutable: false
172       annotations:
173         source:
174           type: org.openecomp.annotations.Source
175           properties:
176             vf_module_label:
177             - hot-mog-0108-bs1271
178             source_type: HEAT
179             param_name: jsa_net_name
180       type: string
181       description: dummy
182     pd_port_fixed_ips_address:
183       hidden: false
184       immutable: false
185       annotations:
186         source:
187           type: org.openecomp.annotations.Source
188           properties:
189             vf_module_label:
190             - hot-mog-0108-bs1271
191             source_type: HEAT
192             param_name: pd_port_fixed_ips_address
193       type: string
194       description: dummy
195     parent_interface:
196       hidden: false
197       immutable: false
198       annotations:
199         source:
200           type: org.openecomp.annotations.Source
201           properties:
202             vf_module_label:
203             - hot-mog-0108-bs1271
204             source_type: HEAT
205             param_name: parent_interface
206       type: string
207       description: dummy
208     virtual_ipv6_address:
209       hidden: false
210       immutable: false
211       annotations:
212         source:
213           type: org.openecomp.annotations.Source
214           properties:
215             vf_module_label:
216             - hot-mog-0108-bs1271
217             source_type: HEAT
218             param_name: virtual_ipv6_address
219       type: string
220       description: dummy
221     mac_address:
222       hidden: false
223       immutable: false
224       annotations:
225         source:
226           type: org.openecomp.annotations.Source
227           properties:
228             vf_module_label:
229             - hot-mog-0108-bs1271
230             source_type: HEAT
231             param_name: mac_address
232       type: string
233       description: dummy
234     pd_port_fixed_ips_subnet:
235       hidden: false
236       immutable: false
237       annotations:
238         source:
239           type: org.openecomp.annotations.Source
240           properties:
241             vf_module_label:
242             - hot-mog-0108-bs1271
243             source_type: HEAT
244             param_name: pd_port_fixed_ips_subnet
245       type: string
246       description: dummy
247     lb_st_interface_vlan_tag_oam:
248       hidden: false
249       immutable: false
250       annotations:
251         source:
252           type: org.openecomp.annotations.Source
253           properties:
254             vf_module_label:
255             - hot-mog-0108-bs1271
256             source_type: HEAT
257             param_name: lb_st_interface_vlan_tag_oam
258       type: string
259       description: dummy
260   node_templates:
261     cmaui_volume_test_contrailv2_VMI_properties:
262       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
263       properties:
264         availability_zone:
265           get_attribute:
266           - abstract_pd_server
267           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_mac_addresses
268           - mac_address
269         image:
270           get_attribute:
271           - abstract_pd_server
272           - pd_server_template_VMInt_OAM_lb_port_tuple_refs
273         metadata:
274           get_attribute:
275           - abstract_pd_server
276           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_mac_addresses
277         volume_type:
278           get_attribute:
279           - abstract_pd_server
280           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_allowed_address_pairs
281           - allowed_address_pair
282           - 0
283           - ip
284           - ip_prefix_len
285         volume_id:
286           get_attribute:
287           - abstract_pd_server
288           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_allowed_address_pairs
289           - allowed_address_pair
290           - 0
291           - ip
292           - ip_prefix
293         snapshot_id:
294           get_attribute:
295           - abstract_pd_server
296           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_allowed_address_pairs
297           - allowed_address_pair
298           - 0
299           - address_mode
300         description:
301           get_attribute:
302           - abstract_pd_server
303           - pd_server_template_VMInt_OAM_lb_virtual_network_refs
304         device_type:
305           get_attribute:
306           - abstract_pd_server
307           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_properties
308           - virtual_machine_interface_properties_service_interface_type
309         disk_bus:
310           get_attribute:
311           - abstract_pd_server
312           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_allowed_address_pairs
313           - allowed_address_pair
314           - 0
315           - ip
316         source_volid:
317           get_attribute:
318           - abstract_pd_server
319           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_allowed_address_pairs
320           - allowed_address_pair
321           - 0
322           - mac
323         size: 50*1024
324         name:
325           get_attribute:
326           - abstract_pd_server
327           - pd_server_template_VMInt_OAM_lb_name
328         swap_size:
329           get_attribute:
330           - abstract_pd_server
331           - pd_server_template_VMInt_OAM_lb_show
332         delete_on_termination:
333           get_attribute:
334           - abstract_pd_server
335           - pd_server_template_VMInt_OAM_lb_fq_name
336         multiattach:
337           get_attribute:
338           - abstract_pd_server
339           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_properties
340     cmaui_volume_test_neutron_port_properties:
341       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
342       properties:
343         image:
344           get_attribute:
345           - abstract_pd_server
346           - pd_server_pd01_port_admin_state_up
347         metadata:
348           get_attribute:
349           - abstract_pd_server
350           - pd_server_pd01_port_allowed_address_pairs
351         volume_type:
352           get_attribute:
353           - abstract_pd_server
354           - pd_server_pd01_port_security_groups
355         volume_id:
356           get_attribute:
357           - abstract_pd_server
358           - pd_server_pd01_port_qos_policy
359         snapshot_id:
360           get_attribute:
361           - abstract_pd_server
362           - pd_server_pd01_port_name
363         device_type:
364           get_attribute:
365           - abstract_pd_server
366           - pd_server_pd01_port_show
367         disk_bus:
368           get_attribute:
369           - abstract_pd_server
370           - pd_server_pd01_port_subnets
371         backup_id:
372           get_attribute:
373           - abstract_pd_server
374           - pd_server_pd01_port_network
375         source_volid:
376           get_attribute:
377           - abstract_pd_server
378           - pd_server_pd01_port_port_security_enabled
379         size: '(get_attribute : [pd01_port_0, network]) * 1024'
380         read_only:
381           get_attribute:
382           - abstract_pd_server
383           - pd_server_pd01_port_device_owner
384         name:
385           get_attribute:
386           - abstract_pd_server
387           - pd_server_pd01_port_device_id
388         scheduler_hints:
389           get_attribute:
390           - abstract_pd_server
391           - pd_server_pd01_port_fixed_ips
392         swap_size:
393           get_attribute:
394           - abstract_pd_server
395           - pd_server_pd01_port_tenant_id
396         delete_on_termination:
397           get_attribute:
398           - abstract_pd_server
399           - pd_server_pd01_port_status
400     jsa_net4:
401       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
402       properties:
403         network_name:
404           get_input: nems_traffic_name
405     abstract_pd_server:
406       type: org.openecomp.resource.abstract.nodes.pd_server
407       directives:
408       - substitutable
409       properties:
410         compute_pd_server_key_name:
411         - SERVER_PD_KEY_NAME
412         port_pd01_port_replacement_policy:
413         - AUTO
414         compute_pd_server_personality:
415         - value: SERVER_PD_PERSONALITY
416         compute_pd_server_image_update_policy:
417         - REBUILD_PRESERVE_EPHEMERAL
418         vm_flavor_name:
419           get_input: pd_flavor_name
420         port_pd01_port_security_groups:
421         - - DB_Affinity_group
422         port_pd01_port_mac_requirements:
423           mac_count_required:
424             is_required: true
425         vm_image_name:
426           get_input: pd_image_name
427         port_pd01_port_subinterface_indicator:
428         - false
429         port_pd01_port_device_id:
430         - PORT_PD_DEVICE_ID
431         port_pd01_port_admin_state_up:
432         - true
433         compute_pd_server_metadata:
434         - value: SERVER_PD_METADATA
435         compute_pd_server_diskConfig:
436         - AUTO
437         port_pd01_port_mac_address: 00-13-24-01-44-35
438         port_pd01_port_allowed_address_pairs:
439         - mac_address: 00-14-22-01-23-45
440           ip_address: 10.12.13.134
441         - mac_address: 00-13-24-01-44-35
442           ip_address: 127.0.13.134
443         compute_pd_server_admin_pass:
444         - SERVER_PD_ADMIN_PASS
445         compute_pd_server_flavor_update_policy:
446         - REPLACE
447         port_pd01_port_value_specs:
448         - value: PORT_PD_VALUE_SPECS
449         compute_pd_server_security_groups:
450         - - get_input: pd_security_group_name
451         port_template_VMInt_OAM_lb_port_tuple_refs:
452         - - get_input: template_PortTuple_LB1
453         compute_pd_server_software_config_transport:
454         - POLL_SERVER_HEAT
455         compute_pd_server_scheduler_hints:
456         - group: DB_Affinity_group
457         port_pd01_port_name:
458         - PORT_PD_NAME
459         compute_pd_server_contrail_service_instance_ind:
460         - true
461         compute_pd_server_availability_zone:
462         - get_input: availabilityzone_name
463         compute_pd_server_name:
464         - get_input:
465           - pd_server_names
466           - 0
467         port_pd01_port_binding:vnic_type:
468         - direct-physical
469         port_pd01_port_device_owner:
470         - PORT_PD_DEVICE_OWNER
471         port_pd01_port_fixed_ips:
472         - ip_address:
473             get_input: pd_port_fixed_ips_address
474         - subnet:
475             get_input: pd_port_fixed_ips_subnet
476         port_pd01_port_ip_requirements:
477         - ip_version: 4
478           ip_count_required:
479             is_required: true
480           floating_ip_count_required:
481             is_required: false
482         - ip_version: 6
483           ip_count_required:
484             is_required: false
485           floating_ip_count_required:
486             is_required: false
487         port_pd01_port_qos_policy:
488         - PORT_PD_QOS_POLICY
489         compute_pd_server_config_drive:
490         - true
491         compute_pd_server_user_data_format:
492         - RAW
493         port_template_VMInt_OAM_lb_virtual_network_refs:
494         - - get_attribute:
495             - jsa_net4
496             - fq_name
497         port_template_VMInt_OAM_lb_virtual_machine_interface_mac_addresses:
498         - - get_input: mac_address
499         port_template_VMInt_OAM_lb_subinterface_indicator:
500         - false
501         port_template_VMInt_OAM_lb_name:
502         - template_VMInt_OAM_lb_NAME
503         port_pd01_port_port_security_enabled:
504         - false
505         compute_pd_server_user_data_update_policy:
506         - IGNORE
507         port_pd01_port_network:
508         - PORT_PD_NETWORK_ID
509         compute_pd_server_reservation_id:
510         - SERVER_PD_RESERVATION_ID
511         port_template_VMInt_OAM_lb_security_group_refs:
512         - - get_input: oam_sec_group_name
513         service_template_filter:
514           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
515           count: 1
516         index_value:
517           get_property:
518           - SELF
519           - service_template_filter
520           - index_value
521     cmaui_volume_test_compute_properties:
522       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
523       properties:
524         availability_zone:
525           get_attribute:
526           - abstract_pd_server
527           - pd_server_console_urls
528         backup_id:
529           get_attribute:
530           - abstract_pd_server
531           - pd_server_instance_name
532         image:
533           get_attribute:
534           - abstract_pd_server
535           - pd_server_accessIPv6
536         swap_size:
537           get_attribute:
538           - abstract_pd_server
539           - pd_server_accessIPv4
540         description:
541           get_attribute:
542           - abstract_pd_server
543           - pd_server_show
544         multiattach:
545           get_attribute:
546           - abstract_pd_server
547           - pd_server_addresses
548   groups:
549     DB_Affinity_group:
550       type: tosca.groups.Root
551       members:
552       - abstract_pd_server
553     hot-mog-0108-bs1271_group:
554       type: org.openecomp.groups.heat.HeatStack
555       properties:
556         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
557         description: heat template that creates MOG stack
558       members:
559       - cmaui_volume_test_contrailv2_VMI_properties
560       - cmaui_volume_test_neutron_port_properties
561       - jsa_net4
562       - cmaui_volume_test_compute_properties
563       - abstract_pd_server
564   policies:
565     DB_Affinity_policy:
566       type: org.openecomp.policies.placement.Antilocate
567       properties:
568         container_type: host
569       targets:
570       - DB_Affinity_group