9d661a4eb025883bbb0dc07e9d42fa7de80374ee
[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 node_types:
8   org.openecomp.resource.vfc.nodes.heat.cmaui:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     security_group_id1:
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - addOn
21             source_type: HEAT
22             param_name: security_group_id1
23       type: string
24       description: UID of OAM network
25     cmaui_names:
26       hidden: false
27       immutable: false
28       annotations:
29         source:
30           type: org.openecomp.annotations.Source
31           properties:
32             vf_module_label:
33             - addOn
34             source_type: HEAT
35             param_name: cmaui_names
36       type: list
37       description: CMAUI1, CMAUI2 server names
38       entry_schema:
39         type: string
40     cmaui_image:
41       hidden: false
42       immutable: false
43       annotations:
44         source:
45           type: org.openecomp.annotations.Source
46           properties:
47             vf_module_label:
48             - addOn
49             source_type: HEAT
50             param_name: cmaui_image
51       type: string
52       description: Image for CMAUI server
53     cmaui_flavor:
54       hidden: false
55       immutable: false
56       annotations:
57         source:
58           type: org.openecomp.annotations.Source
59           properties:
60             vf_module_label:
61             - addOn
62             source_type: HEAT
63             param_name: cmaui_flavor
64       type: string
65       description: Flavor for CMAUI server
66     security_group_name:
67       label: security group name
68       hidden: false
69       immutable: false
70       annotations:
71         source:
72           type: org.openecomp.annotations.Source
73           properties:
74             vf_module_label:
75             - main
76             source_type: HEAT
77             param_name: security_group_name
78       type: string
79       description: the name of security group
80     security_group_id:
81       hidden: false
82       immutable: false
83       annotations:
84         source:
85           type: org.openecomp.annotations.Source
86           properties:
87             vf_module_label:
88             - addOn
89             source_type: HEAT
90             param_name: security_group_id
91       type: string
92       description: UID of OAM network
93     availability_zone_0:
94       label: availabilityzone name
95       hidden: false
96       immutable: false
97       annotations:
98         source:
99           type: org.openecomp.annotations.Source
100           properties:
101             vf_module_label:
102             - addOn
103             source_type: HEAT
104             param_name: availability_zone_0
105       type: string
106       description: availabilityzone name
107     cmaui_oam_ips:
108       hidden: false
109       immutable: false
110       annotations:
111         source:
112           type: org.openecomp.annotations.Source
113           properties:
114             vf_module_label:
115             - addOn
116             source_type: HEAT
117             param_name: cmaui_oam_ips
118       type: string
119       description: cmaui_oam_ips
120     shared_network_id:
121       hidden: false
122       immutable: false
123       annotations:
124         source:
125           type: org.openecomp.annotations.Source
126           properties:
127             vf_module_label:
128             - addOn
129             source_type: HEAT
130             param_name: shared_network_id
131       type: string
132       description: Flavor for CMAUI server
133     jsa_net_name:
134       hidden: false
135       immutable: false
136       annotations:
137         source:
138           type: org.openecomp.annotations.Source
139           properties:
140             vf_module_label:
141             - main
142             source_type: HEAT
143             param_name: jsa_net_name
144       type: string
145       description: network name of jsa log network
146     security_group_id3:
147       hidden: false
148       immutable: false
149       annotations:
150         source:
151           type: org.openecomp.annotations.Source
152           properties:
153             vf_module_label:
154             - addOn
155             source_type: HEAT
156             param_name: security_group_id3
157       type: string
158       description: UID of OAM network
159     security_group_id2:
160       hidden: false
161       immutable: false
162       annotations:
163         source:
164           type: org.openecomp.annotations.Source
165           properties:
166             vf_module_label:
167             - addOn
168             source_type: HEAT
169             param_name: security_group_id2
170       type: string
171       description: UID of OAM network
172   node_templates:
173     cmaui_port_3:
174       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
175       properties:
176         replacement_policy: AUTO
177         ip_requirements:
178         - ip_version: 4
179           ip_count_required:
180             is_required: true
181           floating_ip_count_required:
182             is_required: false
183         - ip_version: 6
184           ip_count_required:
185             is_required: false
186           floating_ip_count_required:
187             is_required: false
188         security_groups:
189         - get_input:
190           - security_group_id1
191           - 0
192         fixed_ips:
193         - ip_address:
194             get_input:
195             - cmaui_oam_ips
196             - 0
197         mac_requirements:
198           mac_count_required:
199             is_required: false
200       requirements:
201       - binding:
202           capability: tosca.capabilities.network.Bindable
203           node: server_cmaui
204           relationship: tosca.relationships.network.BindsTo
205     cmaui_port_2:
206       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
207       properties:
208         replacement_policy: AUTO
209         ip_requirements:
210         - ip_version: 4
211           ip_count_required:
212             is_required: true
213           floating_ip_count_required:
214             is_required: false
215         - ip_version: 6
216           ip_count_required:
217             is_required: false
218           floating_ip_count_required:
219             is_required: false
220         security_groups:
221         - get_input: security_group_id
222         - get_input: security_group_id3
223         fixed_ips:
224         - ip_address:
225             get_input:
226             - cmaui_oam_ips
227             - 0
228         mac_requirements:
229           mac_count_required:
230             is_required: false
231         network:
232           get_input: shared_network_id
233     server_cmaui:
234       type: org.openecomp.resource.vfc.nodes.heat.cmaui
235       properties:
236         flavor:
237           get_input: cmaui_flavor
238         availability_zone:
239           get_input: availability_zone_0
240         image:
241           get_input: cmaui_image
242         name:
243           get_input:
244           - cmaui_names
245           - 0
246     jsa_security_group1:
247       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
248       properties:
249         name:
250           get_input: security_group_name
251         description: ems security group
252         rules:
253         - protocol: tcp
254           ethertype: IPv4
255           port_range_max: 65535
256           remote_ip_prefix: 0.0.0.0/0
257           direction: egress
258           port_range_min: 1
259         - protocol: udp
260           ethertype: IPv4
261           port_range_max: 65535
262           remote_ip_prefix: 0.0.0.0/0
263           direction: egress
264           port_range_min: 1
265         - protocol: icmp
266           ethertype: IPv4
267           remote_ip_prefix: 0.0.0.0/0
268           direction: egress
269         - protocol: tcp
270           ethertype: IPv6
271           port_range_max: 65535
272           remote_ip_prefix: ::/0
273           direction: egress
274           port_range_min: 1
275         - protocol: udp
276           ethertype: IPv6
277           port_range_max: 65535
278           remote_ip_prefix: ::/0
279           direction: egress
280           port_range_min: 1
281         - protocol: icmp
282           ethertype: IPv6
283           remote_ip_prefix: ::/0
284           direction: egress
285         - protocol: tcp
286           ethertype: IPv4
287           port_range_max: 65535
288           remote_ip_prefix: 0.0.0.0/0
289           direction: ingress
290           port_range_min: 1
291         - protocol: udp
292           ethertype: IPv4
293           port_range_max: 65535
294           remote_ip_prefix: 0.0.0.0/0
295           direction: ingress
296           port_range_min: 1
297         - protocol: icmp
298           ethertype: IPv4
299           remote_ip_prefix: 0.0.0.0/0
300           direction: ingress
301         - protocol: tcp
302           ethertype: IPv6
303           port_range_max: 65535
304           remote_ip_prefix: ::/0
305           direction: ingress
306           port_range_min: 1
307         - protocol: udp
308           ethertype: IPv6
309           port_range_max: 65535
310           remote_ip_prefix: ::/0
311           direction: ingress
312           port_range_min: 1
313         - protocol: icmp
314           ethertype: IPv6
315           remote_ip_prefix: ::/0
316           direction: ingress
317       requirements:
318       - port:
319           capability: tosca.capabilities.Attachment
320           node: cmaui_port_0
321           relationship: org.openecomp.relationships.AttachesTo
322       - port:
323           capability: tosca.capabilities.Attachment
324           node: cmaui_port_1
325           relationship: org.openecomp.relationships.AttachesTo
326     jsa_security_group2:
327       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
328       properties:
329         name:
330           get_input: security_group_name
331         description: ems security group
332         rules:
333         - protocol: tcp
334           ethertype: IPv4
335           port_range_max: 65535
336           remote_ip_prefix: 0.0.0.0/0
337           direction: egress
338           port_range_min: 1
339         - protocol: udp
340           ethertype: IPv4
341           port_range_max: 65535
342           remote_ip_prefix: 0.0.0.0/0
343           direction: egress
344           port_range_min: 1
345         - protocol: icmp
346           ethertype: IPv4
347           remote_ip_prefix: 0.0.0.0/0
348           direction: egress
349         - protocol: tcp
350           ethertype: IPv6
351           port_range_max: 65535
352           remote_ip_prefix: ::/0
353           direction: egress
354           port_range_min: 1
355         - protocol: udp
356           ethertype: IPv6
357           port_range_max: 65535
358           remote_ip_prefix: ::/0
359           direction: egress
360           port_range_min: 1
361         - protocol: icmp
362           ethertype: IPv6
363           remote_ip_prefix: ::/0
364           direction: egress
365         - protocol: tcp
366           ethertype: IPv4
367           port_range_max: 65535
368           remote_ip_prefix: 0.0.0.0/0
369           direction: ingress
370           port_range_min: 1
371         - protocol: udp
372           ethertype: IPv4
373           port_range_max: 65535
374           remote_ip_prefix: 0.0.0.0/0
375           direction: ingress
376           port_range_min: 1
377         - protocol: icmp
378           ethertype: IPv4
379           remote_ip_prefix: 0.0.0.0/0
380           direction: ingress
381         - protocol: tcp
382           ethertype: IPv6
383           port_range_max: 65535
384           remote_ip_prefix: ::/0
385           direction: ingress
386           port_range_min: 1
387         - protocol: udp
388           ethertype: IPv6
389           port_range_max: 65535
390           remote_ip_prefix: ::/0
391           direction: ingress
392           port_range_min: 1
393         - protocol: icmp
394           ethertype: IPv6
395           remote_ip_prefix: ::/0
396           direction: ingress
397       requirements:
398       - port:
399           capability: tosca.capabilities.Attachment
400           node: cmaui_port_1
401           relationship: org.openecomp.relationships.AttachesTo
402     cmaui_port_1:
403       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
404       properties:
405         replacement_policy: AUTO
406         ip_requirements:
407         - ip_version: 4
408           ip_count_required:
409             is_required: true
410           floating_ip_count_required:
411             is_required: false
412         - ip_version: 6
413           ip_count_required:
414             is_required: false
415           floating_ip_count_required:
416             is_required: false
417         security_groups:
418         - get_input: security_group_id1
419         - get_input: security_group_id2
420         fixed_ips:
421         - ip_address:
422             get_input:
423             - cmaui_oam_ips
424             - 0
425         mac_requirements:
426           mac_count_required:
427             is_required: false
428         network:
429           get_input: shared_network_id
430       requirements:
431       - binding:
432           capability: tosca.capabilities.network.Bindable
433           node: server_cmaui
434           relationship: tosca.relationships.network.BindsTo
435     cmaui_port_0:
436       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
437       properties:
438         replacement_policy: AUTO
439         ip_requirements:
440         - ip_version: 4
441           ip_count_required:
442             is_required: true
443           floating_ip_count_required:
444             is_required: false
445         - ip_version: 6
446           ip_count_required:
447             is_required: false
448           floating_ip_count_required:
449             is_required: false
450         security_groups:
451         - get_input: security_group_id1
452         fixed_ips:
453         - ip_address:
454             get_input:
455             - cmaui_oam_ips
456             - 0
457         mac_requirements:
458           mac_count_required:
459             is_required: false
460         network:
461           get_input: shared_network_id
462       requirements:
463       - binding:
464           capability: tosca.capabilities.network.Bindable
465           node: server_cmaui
466           relationship: tosca.relationships.network.BindsTo
467   groups:
468     main_group:
469       type: org.openecomp.groups.heat.HeatStack
470       properties:
471         heat_file: ../Artifacts/main.yml
472         description: |
473           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
474       members:
475       - jsa_security_group1
476       - jsa_security_group2
477     addOn_group:
478       type: org.openecomp.groups.heat.HeatStack
479       properties:
480         heat_file: ../Artifacts/addOn.yml
481         description: cmaui server template for vMMSC
482       members:
483       - cmaui_port_3
484       - cmaui_port_2
485       - server_cmaui
486       - cmaui_port_1
487       - cmaui_port_0