efc5e3cf1227de09aa311cee110fae1d97e3e7ba
[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_4_virtual_machine_interface_mac_addresses
268           - mac_address
269         image:
270           get_attribute:
271           - abstract_pd_server
272           - pd_server_template_VMInt_OAM_lb_4_port_tuple_refs
273         metadata:
274           get_attribute:
275           - abstract_pd_server
276           - pd_server_template_VMInt_OAM_lb_4_virtual_machine_interface_mac_addresses
277         volume_type:
278           get_attribute:
279           - abstract_pd_server
280           - pd_server_template_VMInt_OAM_lb_4_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_4_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_4_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_4_virtual_network_refs
304         device_type:
305           get_attribute:
306           - abstract_pd_server
307           - pd_server_template_VMInt_OAM_lb_4_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_4_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_4_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_4_name
328         swap_size:
329           get_attribute:
330           - abstract_pd_server
331           - pd_server_template_VMInt_OAM_lb_4_show
332         delete_on_termination:
333           get_attribute:
334           - abstract_pd_server
335           - pd_server_template_VMInt_OAM_lb_4_fq_name
336         multiattach:
337           get_attribute:
338           - abstract_pd_server
339           - pd_server_template_VMInt_OAM_lb_4_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_0_admin_state_up
347         metadata:
348           get_attribute:
349           - abstract_pd_server
350           - pd_server_pd01_port_0_allowed_address_pairs
351         volume_type:
352           get_attribute:
353           - abstract_pd_server
354           - pd_server_pd01_port_0_security_groups
355         volume_id:
356           get_attribute:
357           - abstract_pd_server
358           - pd_server_pd01_port_0_qos_policy
359         snapshot_id:
360           get_attribute:
361           - abstract_pd_server
362           - pd_server_pd01_port_0_name
363         device_type:
364           get_attribute:
365           - abstract_pd_server
366           - pd_server_pd01_port_0_show
367         disk_bus:
368           get_attribute:
369           - abstract_pd_server
370           - pd_server_pd01_port_0_subnets
371         backup_id:
372           get_attribute:
373           - abstract_pd_server
374           - pd_server_pd01_port_0_network
375         source_volid:
376           get_attribute:
377           - abstract_pd_server
378           - pd_server_pd01_port_0_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_0_device_owner
384         name:
385           get_attribute:
386           - abstract_pd_server
387           - pd_server_pd01_port_0_device_id
388         scheduler_hints:
389           get_attribute:
390           - abstract_pd_server
391           - pd_server_pd01_port_0_fixed_ips
392         swap_size:
393           get_attribute:
394           - abstract_pd_server
395           - pd_server_pd01_port_0_tenant_id
396         delete_on_termination:
397           get_attribute:
398           - abstract_pd_server
399           - pd_server_pd01_port_0_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_0_mac_requirements:
413           mac_count_required:
414             is_required: true
415         port_pd01_port_0_ip_requirements:
416         - ip_version: 4
417           ip_count_required:
418             is_required: true
419           floating_ip_count_required:
420             is_required: false
421         compute_pd_server_personality:
422         - value: SERVER_PD_PERSONALITY
423         port_pd01_port_0_replacement_policy:
424         - AUTO
425         compute_pd_server_image_update_policy:
426         - REBUILD_PRESERVE_EPHEMERAL
427         port_pd01_port_0_name:
428         - PORT_PD_NAME
429         vm_flavor_name:
430           get_input: pd_flavor_name
431         port_pd01_port_0_binding:vnic_type:
432         - direct-physical
433         vm_image_name:
434           get_input: pd_image_name
435         port_pd01_port_0_port_security_enabled:
436         - false
437         port_pd01_port_0_value_specs:
438         - value: PORT_PD_VALUE_SPECS
439         port_pd01_port_0_admin_state_up:
440         - true
441         port_template_VMInt_OAM_lb_4_virtual_network_refs:
442         - - get_attribute:
443             - jsa_net4
444             - fq_name
445         compute_pd_server_metadata:
446         - value: SERVER_PD_METADATA
447         compute_pd_server_diskConfig:
448         - AUTO
449         port_pd01_port_0_mac_address: 00-13-24-01-44-35
450         compute_pd_server_admin_pass:
451         - SERVER_PD_ADMIN_PASS
452         compute_pd_server_flavor_update_policy:
453         - REPLACE
454         port_template_VMInt_OAM_lb_4_security_group_refs:
455         - - get_input: oam_sec_group_name
456         port_template_VMInt_OAM_lb_4_virtual_machine_interface_mac_addresses:
457         - - get_input: mac_address
458         port_pd01_port_0_fixed_ips:
459         - ip_address:
460             get_input: pd_port_fixed_ips_address
461         - subnet:
462             get_input: pd_port_fixed_ips_subnet
463         compute_pd_server_security_groups:
464         - - get_input: pd_security_group_name
465         compute_pd_server_software_config_transport:
466         - POLL_SERVER_HEAT
467         port_pd01_port_0_security_groups:
468         - - DB_Affinity_group
469         compute_pd_server_scheduler_hints:
470         - group: DB_Affinity_group
471         compute_pd_server_contrail_service_instance_ind:
472         - true
473         port_pd01_port_0_network:
474         - PORT_PD_NETWORK_ID
475         compute_pd_server_availability_zone:
476         - get_input: availabilityzone_name
477         compute_pd_server_name:
478         - get_input:
479           - pd_server_names
480           - 0
481         compute_pd_server_config_drive:
482         - true
483         compute_pd_server_user_data_format:
484         - RAW
485         port_pd01_port_0_allowed_address_pairs:
486         - mac_address: 00-14-22-01-23-45
487           ip_address: 10.12.13.134
488         - mac_address: 00-13-24-01-44-35
489           ip_address: 127.0.13.134
490         port_pd01_port_0_device_id:
491         - PORT_PD_DEVICE_ID
492         port_pd01_port_0_qos_policy:
493         - PORT_PD_QOS_POLICY
494         port_template_VMInt_OAM_lb_4_name:
495         - template_VMInt_OAM_lb_NAME
496         compute_pd_server_user_data_update_policy:
497         - IGNORE
498         port_pd01_port_0_device_owner:
499         - PORT_PD_DEVICE_OWNER
500         compute_pd_server_reservation_id:
501         - SERVER_PD_RESERVATION_ID
502         port_template_VMInt_OAM_lb_4_port_tuple_refs:
503         - - get_input: template_PortTuple_LB1
504         service_template_filter:
505           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
506           count: 1
507         index_value:
508           get_property:
509           - SELF
510           - service_template_filter
511           - index_value
512     cmaui_volume_test_compute_properties:
513       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
514       properties:
515         availability_zone:
516           get_attribute:
517           - abstract_pd_server
518           - pd_server_console_urls
519         backup_id:
520           get_attribute:
521           - abstract_pd_server
522           - pd_server_instance_name
523         image:
524           get_attribute:
525           - abstract_pd_server
526           - pd_server_accessIPv6
527         swap_size:
528           get_attribute:
529           - abstract_pd_server
530           - pd_server_accessIPv4
531         description:
532           get_attribute:
533           - abstract_pd_server
534           - pd_server_show
535         multiattach:
536           get_attribute:
537           - abstract_pd_server
538           - pd_server_addresses
539   groups:
540     DB_Affinity_group:
541       type: tosca.groups.Root
542       members:
543       - abstract_pd_server
544     hot-mog-0108-bs1271_group:
545       type: org.openecomp.groups.heat.HeatStack
546       properties:
547         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
548         description: heat template that creates MOG stack
549       members:
550       - cmaui_volume_test_contrailv2_VMI_properties
551       - cmaui_volume_test_neutron_port_properties
552       - jsa_net4
553       - cmaui_volume_test_compute_properties
554       - abstract_pd_server
555   policies:
556     DB_Affinity_policy:
557       type: org.openecomp.policies.placement.Antilocate
558       properties:
559         container_type: host
560       targets:
561       - DB_Affinity_group