5d546b60d456e16f38e8db3ae27f392ff7c35a50
[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       type: string
16       description: flavor name of PD instance
17       default: m3.xlarge
18     dummy_net_name_1:
19       label: csb ineternal cidr
20       hidden: false
21       immutable: false
22       type: string
23       description: csb internal cidr
24       default: mog_dummy_1
25     availabilityzone_name:
26       label: availabilityzone name
27       hidden: false
28       immutable: false
29       type: string
30       description: availabilityzone name
31       default: nova
32     template_PortTuple_LB1:
33       hidden: false
34       immutable: false
35       type: string
36       description: dummy
37     lb_st_interface_type_oam:
38       hidden: false
39       immutable: false
40       type: string
41       description: dummy
42     oam_sec_group_name:
43       hidden: false
44       immutable: false
45       type: string
46       description: dummy
47     virtual_ip_address:
48       hidden: false
49       immutable: false
50       type: string
51       description: dummy
52     nems_traffic_name:
53       hidden: false
54       immutable: false
55       type: string
56       description: dummy
57     pd_image_name:
58       label: image name
59       hidden: false
60       immutable: false
61       type: string
62       description: PD image name
63       default: MOG_BASE_8.0
64     pd_server_names:
65       label: PD server names
66       hidden: false
67       immutable: false
68       type: list
69       description: name of the PD instance
70       default:
71       - ZRDM1MOGX01MPD001
72       - ZRDM1MOGX01MPD002
73       entry_schema:
74         type: string
75     pd_security_group_name:
76       label: pd_security_group_name
77       hidden: false
78       immutable: false
79       type: string
80       description: pd_security_group_name
81     jsa_net_name:
82       hidden: false
83       immutable: false
84       type: string
85       description: dummy
86     pd_port_fixed_ips_address:
87       hidden: false
88       immutable: false
89       type: string
90       description: dummy
91     parent_interface:
92       hidden: false
93       immutable: false
94       type: string
95       description: dummy
96     virtual_ipv6_address:
97       hidden: false
98       immutable: false
99       type: string
100       description: dummy
101     mac_address:
102       hidden: false
103       immutable: false
104       type: string
105       description: dummy
106     pd_port_fixed_ips_subnet:
107       hidden: false
108       immutable: false
109       type: string
110       description: dummy
111     lb_st_interface_vlan_tag_oam:
112       hidden: false
113       immutable: false
114       type: string
115       description: dummy
116   node_templates:
117     cmaui_volume_test_contrailv2_VMI_properties:
118       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
119       properties:
120         availability_zone:
121           get_attribute:
122           - abstract_pd_server
123           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_mac_addresses
124           - mac_address
125         image:
126           get_attribute:
127           - abstract_pd_server
128           - pd_server_template_VMInt_OAM_lb_port_tuple_refs
129         metadata:
130           get_attribute:
131           - abstract_pd_server
132           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_mac_addresses
133         volume_type:
134           get_attribute:
135           - abstract_pd_server
136           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_allowed_address_pairs
137           - allowed_address_pair
138           - 0
139           - ip
140           - ip_prefix_len
141         volume_id:
142           get_attribute:
143           - abstract_pd_server
144           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_allowed_address_pairs
145           - allowed_address_pair
146           - 0
147           - ip
148           - ip_prefix
149         snapshot_id:
150           get_attribute:
151           - abstract_pd_server
152           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_allowed_address_pairs
153           - allowed_address_pair
154           - 0
155           - address_mode
156         description:
157           get_attribute:
158           - abstract_pd_server
159           - pd_server_template_VMInt_OAM_lb_virtual_network_refs
160         device_type:
161           get_attribute:
162           - abstract_pd_server
163           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_properties
164           - virtual_machine_interface_properties_service_interface_type
165         disk_bus:
166           get_attribute:
167           - abstract_pd_server
168           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_allowed_address_pairs
169           - allowed_address_pair
170           - 0
171           - ip
172         source_volid:
173           get_attribute:
174           - abstract_pd_server
175           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_allowed_address_pairs
176           - allowed_address_pair
177           - 0
178           - mac
179         size: 50*1024
180         name:
181           get_attribute:
182           - abstract_pd_server
183           - pd_server_template_VMInt_OAM_lb_name
184         swap_size:
185           get_attribute:
186           - abstract_pd_server
187           - pd_server_template_VMInt_OAM_lb_show
188         delete_on_termination:
189           get_attribute:
190           - abstract_pd_server
191           - pd_server_template_VMInt_OAM_lb_fq_name
192         multiattach:
193           get_attribute:
194           - abstract_pd_server
195           - pd_server_template_VMInt_OAM_lb_virtual_machine_interface_properties
196     cmaui_volume_test_neutron_port_properties:
197       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
198       properties:
199         image:
200           get_attribute:
201           - abstract_pd_server
202           - pd_server_pd01_port_admin_state_up
203         metadata:
204           get_attribute:
205           - abstract_pd_server
206           - pd_server_pd01_port_allowed_address_pairs
207         volume_type:
208           get_attribute:
209           - abstract_pd_server
210           - pd_server_pd01_port_security_groups
211         volume_id:
212           get_attribute:
213           - abstract_pd_server
214           - pd_server_pd01_port_qos_policy
215         snapshot_id:
216           get_attribute:
217           - abstract_pd_server
218           - pd_server_pd01_port_name
219         device_type:
220           get_attribute:
221           - abstract_pd_server
222           - pd_server_pd01_port_show
223         disk_bus:
224           get_attribute:
225           - abstract_pd_server
226           - pd_server_pd01_port_subnets
227         backup_id:
228           get_attribute:
229           - abstract_pd_server
230           - pd_server_pd01_port_network
231         source_volid:
232           get_attribute:
233           - abstract_pd_server
234           - pd_server_pd01_port_port_security_enabled
235         size: '(get_attribute : [pd01_port_0, network]) * 1024'
236         read_only:
237           get_attribute:
238           - abstract_pd_server
239           - pd_server_pd01_port_device_owner
240         name:
241           get_attribute:
242           - abstract_pd_server
243           - pd_server_pd01_port_device_id
244         scheduler_hints:
245           get_attribute:
246           - abstract_pd_server
247           - pd_server_pd01_port_fixed_ips
248         swap_size:
249           get_attribute:
250           - abstract_pd_server
251           - pd_server_pd01_port_tenant_id
252         delete_on_termination:
253           get_attribute:
254           - abstract_pd_server
255           - pd_server_pd01_port_status
256     jsa_net4:
257       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
258       properties:
259         network_name:
260           get_input: nems_traffic_name
261     abstract_pd_server:
262       type: org.openecomp.resource.abstract.nodes.pd_server
263       directives:
264       - substitutable
265       properties:
266         compute_pd_server_key_name:
267         - SERVER_PD_KEY_NAME
268         port_pd01_port_replacement_policy:
269         - AUTO
270         compute_pd_server_personality:
271         - value: SERVER_PD_PERSONALITY
272         compute_pd_server_image_update_policy:
273         - REBUILD_PRESERVE_EPHEMERAL
274         vm_flavor_name:
275           get_input: pd_flavor_name
276         port_pd01_port_security_groups:
277         - - DB_Affinity_group
278         port_pd01_port_mac_requirements:
279           mac_count_required:
280             is_required: true
281         vm_image_name:
282           get_input: pd_image_name
283         port_pd01_port_device_id:
284         - PORT_PD_DEVICE_ID
285         port_pd01_port_admin_state_up:
286         - true
287         compute_pd_server_metadata:
288         - value: SERVER_PD_METADATA
289         compute_pd_server_diskConfig:
290         - AUTO
291         port_pd01_port_mac_address: 00-13-24-01-44-35
292         port_pd01_port_allowed_address_pairs:
293         - mac_address: 00-14-22-01-23-45
294           ip_address: 10.12.13.134
295         - mac_address: 00-13-24-01-44-35
296           ip_address: 127.0.13.134
297         compute_pd_server_admin_pass:
298         - SERVER_PD_ADMIN_PASS
299         compute_pd_server_flavor_update_policy:
300         - REPLACE
301         port_pd01_port_value_specs:
302         - value: PORT_PD_VALUE_SPECS
303         compute_pd_server_security_groups:
304         - - get_input: pd_security_group_name
305         port_template_VMInt_OAM_lb_port_tuple_refs:
306         - - get_input: template_PortTuple_LB1
307         compute_pd_server_software_config_transport:
308         - POLL_SERVER_HEAT
309         compute_pd_server_scheduler_hints:
310         - group: DB_Affinity_group
311         port_pd01_port_name:
312         - PORT_PD_NAME
313         compute_pd_server_contrail_service_instance_ind:
314         - true
315         compute_pd_server_availability_zone:
316         - get_input: availabilityzone_name
317         compute_pd_server_name:
318         - get_input:
319           - pd_server_names
320           - 0
321         port_pd01_port_binding:vnic_type:
322         - direct-physical
323         port_pd01_port_device_owner:
324         - PORT_PD_DEVICE_OWNER
325         port_pd01_port_fixed_ips:
326         - ip_address:
327             get_input: pd_port_fixed_ips_address
328         - subnet:
329             get_input: pd_port_fixed_ips_subnet
330         port_pd01_port_ip_requirements:
331         - ip_version: 4
332           ip_count_required:
333             is_required: true
334           floating_ip_count_required:
335             is_required: false
336         port_pd01_port_qos_policy:
337         - PORT_PD_QOS_POLICY
338         compute_pd_server_config_drive:
339         - true
340         compute_pd_server_user_data_format:
341         - RAW
342         port_template_VMInt_OAM_lb_virtual_network_refs:
343         - - get_attribute:
344             - jsa_net4
345             - fq_name
346         port_template_VMInt_OAM_lb_virtual_machine_interface_mac_addresses:
347         - - get_input: mac_address
348         port_template_VMInt_OAM_lb_name:
349         - template_VMInt_OAM_lb_NAME
350         port_pd01_port_port_security_enabled:
351         - false
352         compute_pd_server_user_data_update_policy:
353         - IGNORE
354         port_pd01_port_network:
355         - PORT_PD_NETWORK_ID
356         compute_pd_server_reservation_id:
357         - SERVER_PD_RESERVATION_ID
358         port_template_VMInt_OAM_lb_security_group_refs:
359         - - get_input: oam_sec_group_name
360         service_template_filter:
361           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
362           count: 1
363         index_value:
364           get_property:
365           - SELF
366           - service_template_filter
367           - index_value
368     cmaui_volume_test_compute_properties:
369       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
370       properties:
371         availability_zone:
372           get_attribute:
373           - abstract_pd_server
374           - pd_server_console_urls
375         backup_id:
376           get_attribute:
377           - abstract_pd_server
378           - pd_server_instance_name
379         image:
380           get_attribute:
381           - abstract_pd_server
382           - pd_server_accessIPv6
383         swap_size:
384           get_attribute:
385           - abstract_pd_server
386           - pd_server_accessIPv4
387         description:
388           get_attribute:
389           - abstract_pd_server
390           - pd_server_show
391         multiattach:
392           get_attribute:
393           - abstract_pd_server
394           - pd_server_addresses
395   groups:
396     DB_Affinity_group:
397       type: tosca.groups.Root
398       members:
399       - abstract_pd_server
400     hot-mog-0108-bs1271_group:
401       type: org.openecomp.groups.heat.HeatStack
402       properties:
403         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
404         description: heat template that creates MOG stack
405       members:
406       - cmaui_volume_test_contrailv2_VMI_properties
407       - cmaui_volume_test_neutron_port_properties
408       - jsa_net4
409       - cmaui_volume_test_compute_properties
410       - abstract_pd_server
411   policies:
412     DB_Affinity_policy:
413       type: org.openecomp.policies.placement.Antilocate
414       properties:
415         container_type: host
416       targets:
417       - DB_Affinity_group