8002f7330914e6ff3e912e1c365615bbcc828bf7
[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     oam_net_ips:
27       label: internet network ips
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: oam_net_ips
38       type: list
39       description: ip of the OAM network
40       default:
41       - 107.250.172.213
42       - 107.250.172.214
43       - 107.250.172.215
44       - 107.250.172.216
45       - 107.250.172.217
46       entry_schema:
47         type: string
48     dummy_net_name_1:
49       label: csb ineternal cidr
50       hidden: false
51       immutable: false
52       annotations:
53         source:
54           type: org.openecomp.annotations.Source
55           properties:
56             vf_module_label:
57             - hot-mog-0108-bs1271
58             source_type: HEAT
59             param_name: dummy_net_name_1
60       type: string
61       description: csb internal cidr
62       default: mog_dummy_1
63     cm_server_names:
64       label: CM server names
65       hidden: false
66       immutable: false
67       annotations:
68         source:
69           type: org.openecomp.annotations.Source
70           properties:
71             vf_module_label:
72             - hot-mog-0108-bs1271
73             source_type: HEAT
74             param_name: cm_server_names
75       type: list
76       description: name of the CM instance
77       default:
78       - ZRDM1MOGX01MCM001
79       entry_schema:
80         type: string
81     availabilityzone_name:
82       label: availabilityzone 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: availabilityzone_name
93       type: string
94       description: availabilityzone name
95       default: nova
96     VMME_pd_boot_volume:
97       hidden: false
98       immutable: false
99       annotations:
100         source:
101           type: org.openecomp.annotations.Source
102           properties:
103             vf_module_label:
104             - hot-mog-0108-bs1271
105             source_type: HEAT
106             param_name: VMME_pd_boot_volume
107       type: string
108       default: 49201898-333d-4c88-b58d-cf573b091633
109     oam_flavor_name:
110       label: OAM flavor name
111       hidden: false
112       immutable: false
113       annotations:
114         source:
115           type: org.openecomp.annotations.Source
116           properties:
117             vf_module_label:
118             - hot-mog-0108-bs1271
119             source_type: HEAT
120             param_name: oam_flavor_name
121       type: string
122       description: flavor name of OAM instance
123       default: m3.xlarge
124     pd_image_name:
125       label: image name
126       hidden: false
127       immutable: false
128       annotations:
129         source:
130           type: org.openecomp.annotations.Source
131           properties:
132             vf_module_label:
133             - hot-mog-0108-bs1271
134             source_type: HEAT
135             param_name: pd_image_name
136       type: string
137       description: PD image name
138       default: MOG_BASE_8.0
139     packet_mirror_network_name:
140       label: packet mirror network name
141       hidden: false
142       immutable: false
143       annotations:
144         source:
145           type: org.openecomp.annotations.Source
146           properties:
147             vf_module_label:
148             - hot-mog-0108-bs1271
149             source_type: HEAT
150             param_name: packet_mirror_network_name
151       type: string
152       description: name of the network
153       default: mog_packet_1
154     pd_server_names:
155       label: PD server names
156       hidden: false
157       immutable: false
158       annotations:
159         source:
160           type: org.openecomp.annotations.Source
161           properties:
162             vf_module_label:
163             - hot-mog-0108-bs1271
164             source_type: HEAT
165             param_name: pd_server_names
166       type: list
167       description: name of the PD instance
168       default:
169       - ZRDM1MOGX01MPD001
170       - ZRDM1MOGX01MPD002
171       entry_schema:
172         type: string
173     sm_server_names:
174       label: SM server names
175       hidden: false
176       immutable: false
177       annotations:
178         source:
179           type: org.openecomp.annotations.Source
180           properties:
181             vf_module_label:
182             - hot-mog-0108-bs1271
183             source_type: HEAT
184             param_name: sm_server_names
185       type: list
186       description: name of the SM instance
187       default:
188       - ZRDM1MOGX01MSM001
189       - ZRDM1MOGX01MSM002
190       entry_schema:
191         type: string
192     VMME_ps_boot_volume:
193       hidden: false
194       immutable: false
195       annotations:
196         source:
197           type: org.openecomp.annotations.Source
198           properties:
199             vf_module_label:
200             - hot-mog-0108-bs1271
201             source_type: HEAT
202             param_name: VMME_ps_boot_volume
203       type: string
204       default: 43ccf5ba-2d50-427b-a38f-e8c7d8670eee
205     VMME_oam_boot_volume:
206       hidden: false
207       immutable: false
208       annotations:
209         source:
210           type: org.openecomp.annotations.Source
211           properties:
212             vf_module_label:
213             - hot-mog-0108-bs1271
214             source_type: HEAT
215             param_name: VMME_oam_boot_volume
216       type: string
217       default: 4c35b5f1-ce99-4220-a6e2-cda6e2d713a0
218     cm_flavor_name:
219       label: CM flavor name
220       hidden: false
221       immutable: false
222       annotations:
223         source:
224           type: org.openecomp.annotations.Source
225           properties:
226             vf_module_label:
227             - hot-mog-0108-bs1271
228             source_type: HEAT
229             param_name: cm_flavor_name
230       type: string
231       description: flavor name of CM instance
232       default: m3.xlarge
233     sm_image_name:
234       label: image name
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: sm_image_name
245       type: string
246       description: SM image name
247       default: MOG_BASE_8.0
248     cm_image_name:
249       label: image name
250       hidden: false
251       immutable: false
252       annotations:
253         source:
254           type: org.openecomp.annotations.Source
255           properties:
256             vf_module_label:
257             - hot-mog-0108-bs1271
258             source_type: HEAT
259             param_name: cm_image_name
260       type: string
261       description: CM image name
262       default: MOG_BASE_8.0
263     sm_flavor_name:
264       label: SM flavor name
265       hidden: false
266       immutable: false
267       annotations:
268         source:
269           type: org.openecomp.annotations.Source
270           properties:
271             vf_module_label:
272             - hot-mog-0108-bs1271
273             source_type: HEAT
274             param_name: sm_flavor_name
275       type: string
276       description: flavor name of SM instance
277       default: m2.xlarge4
278     ps_server_names:
279       label: PS server names
280       hidden: false
281       immutable: false
282       annotations:
283         source:
284           type: org.openecomp.annotations.Source
285           properties:
286             vf_module_label:
287             - hot-mog-0108-bs1271
288             source_type: HEAT
289             param_name: ps_server_names
290       type: list
291       description: name of the PS instance
292       default:
293       - ZRDM1MOGX01MPS001
294       - ZRDM1MOGX01MPS002
295       - ZRDM1MOGX01MPS003
296       - ZRDM1MOGX01MPS004
297       entry_schema:
298         type: string
299     ps_image_name:
300       label: PS image name
301       hidden: false
302       immutable: false
303       annotations:
304         source:
305           type: org.openecomp.annotations.Source
306           properties:
307             vf_module_label:
308             - hot-mog-0108-bs1271
309             source_type: HEAT
310             param_name: ps_image_name
311       type: string
312       description: PS image name
313       default: MOG_BASE_8.0
314     oam_image_name:
315       label: image name
316       hidden: false
317       immutable: false
318       annotations:
319         source:
320           type: org.openecomp.annotations.Source
321           properties:
322             vf_module_label:
323             - hot-mog-0108-bs1271
324             source_type: HEAT
325             param_name: oam_image_name
326       type: string
327       description: OAM image name
328       default: MOG_BASE_8.0
329     oam_server_names:
330       label: OAM server names
331       hidden: false
332       immutable: false
333       annotations:
334         source:
335           type: org.openecomp.annotations.Source
336           properties:
337             vf_module_label:
338             - hot-mog-0108-bs1271
339             source_type: HEAT
340             param_name: oam_server_names
341       type: list
342       description: name of the OAM instance
343       default:
344       - ZRDM1MOGX01OAM001
345       - ZRDM1MOGX01OAM002
346       entry_schema:
347         type: string
348     ps_flavor_name:
349       label: PS flavor name
350       hidden: false
351       immutable: false
352       annotations:
353         source:
354           type: org.openecomp.annotations.Source
355           properties:
356             vf_module_label:
357             - hot-mog-0108-bs1271
358             source_type: HEAT
359             param_name: ps_flavor_name
360       type: string
361       description: flavor name of PS instance
362       default: m3.xlarge
363     oam_net_name:
364       label: oam network name
365       hidden: false
366       immutable: false
367       annotations:
368         source:
369           type: org.openecomp.annotations.Source
370           properties:
371             vf_module_label:
372             - hot-mog-0108-bs1271
373             source_type: HEAT
374             param_name: oam_net_name
375       type: string
376       description: name of the oam network
377       default: oam_protected_net_0
378   node_templates:
379     packet_mirror_network:
380       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
381       properties:
382         network_name:
383           get_input: packet_mirror_network_name
384     abstract_pd_server:
385       type: org.openecomp.resource.abstract.nodes.pd_server
386       directives:
387       - substitutable
388       properties:
389         compute_pd_server_scheduler_hints:
390         - group: BE_Affinity_group
391         compute_pd_server_availability_zone:
392         - get_input: availabilityzone_name
393         compute_pd_server_name:
394         - get_input:
395           - pd_server_names
396           - 0
397         vm_flavor_name:
398           get_attribute:
399           - network_policy_server
400           - name
401         port_pd01_port_security_groups:
402         - - jsa_security_group
403         port_pd01_port_mac_requirements:
404           mac_count_required:
405             is_required: false
406         vm_image_name:
407           get_input: pd_image_name
408         port_pd01_port_ip_requirements:
409         - ip_version: 4
410           ip_count_required:
411             is_required: false
412           floating_ip_count_required:
413             is_required: false
414         port_pd01_port_network:
415         - get_input: oam_net_name
416         port_pd01_port_network_role_tag: oam
417         compute_pd_server_user_data_format:
418         - RAW
419         service_template_filter:
420           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
421           count: 1
422         index_value:
423           get_property:
424           - SELF
425           - service_template_filter
426           - index_value
427       requirements:
428       - dependency_pd_server:
429           capability: tosca.capabilities.Node
430           node: packet_mirror_network
431           relationship: tosca.relationships.DependsOn
432     abstract_ps_server:
433       type: org.openecomp.resource.abstract.nodes.ps_server
434       directives:
435       - substitutable
436       properties:
437         compute_ps_server_name:
438         - get_input:
439           - ps_server_names
440           - 0
441         compute_ps_server_availability_zone:
442         - get_input: availabilityzone_name
443         compute_ps_server_user_data_format:
444         - RAW
445         compute_ps_server_scheduler_hints:
446         - group: BE_Affinity_group
447         vm_flavor_name:
448           get_attribute:
449           - network_policy_server
450           - name
451         port_pd01_port_security_groups:
452         - - jsa_security_group
453         port_pd01_port_mac_requirements:
454           mac_count_required:
455             is_required: false
456         vm_image_name:
457           get_input: pd_image_name
458         port_pd01_port_ip_requirements:
459         - ip_version: 4
460           ip_count_required:
461             is_required: false
462           floating_ip_count_required:
463             is_required: false
464         port_pd01_port_network:
465         - get_attribute:
466           - network_policy_server
467           - name
468         service_template_filter:
469           substitute_service_template: Nested_ps_serverServiceTemplate.yaml
470           count: 1
471         index_value:
472           get_property:
473           - SELF
474           - service_template_filter
475           - index_value
476       requirements:
477       - dependency_ps_server:
478           capability: tosca.capabilities.Node
479           node: packet_mirror_network
480           relationship: tosca.relationships.DependsOn
481     abstract_oam_server:
482       type: org.openecomp.resource.abstract.nodes.oam_server
483       directives:
484       - substitutable
485       properties:
486         vm_flavor_name:
487           get_attribute:
488           - network_policy_server
489           - name
490         port_pd01_port_security_groups:
491         - - jsa_security_group
492         port_pd01_port_mac_requirements:
493           mac_count_required:
494             is_required: false
495         compute_oam_server_availability_zone:
496         - get_input: availabilityzone_name
497         vm_image_name:
498           get_input: pd_image_name
499         port_pd01_port_ip_requirements:
500         - ip_version: 4
501           ip_count_required:
502             is_required: false
503           floating_ip_count_required:
504             is_required: false
505         port_pd01_port_network:
506         - get_input: oam_net_name
507         compute_oam_server_user_data_format:
508         - RAW
509         compute_oam_server_name:
510         - get_input:
511           - oam_server_names
512           - 0
513         port_pd01_port_network_role_tag: oam
514         compute_oam_server_scheduler_hints:
515         - group: BE_Affinity_group
516         service_template_filter:
517           substitute_service_template: Nested_oam_serverServiceTemplate.yaml
518           count: 1
519         index_value:
520           get_property:
521           - SELF
522           - service_template_filter
523           - index_value
524       requirements:
525       - dependency_oam_server:
526           capability: tosca.capabilities.Node
527           node: packet_mirror_network
528           relationship: tosca.relationships.DependsOn
529     network_policy_server_ps:
530       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
531       properties:
532         name:
533           get_attribute:
534           - abstract_ps_server
535           - ps_server_accessIPv4
536     resources_with_dependOn:
537       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
538       properties: {
539         }
540       requirements:
541       - dependency:
542           capability: feature_oam_server
543           node: abstract_oam_server
544           relationship: tosca.relationships.DependsOn
545       - dependency:
546           capability: feature_pd_server
547           node: abstract_pd_server
548           relationship: tosca.relationships.DependsOn
549       - dependency:
550           capability: feature_ps_server
551           node: abstract_ps_server
552           relationship: tosca.relationships.DependsOn
553     network_policy_server_oam:
554       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
555       properties:
556         name:
557           get_attribute:
558           - abstract_oam_server
559           - oam_server_accessIPv4
560     jsa_security_group:
561       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
562       properties:
563         name: Test-SecurityGroup
564         description: ems security group
565         rules:
566         - protocol: icmp
567           ethertype: IPv6
568           remote_ip_prefix: ::/0
569           direction: ingress
570       requirements:
571       - port:
572           capability: attachment_ps_server_pd01_port
573           node: abstract_ps_server
574           relationship: org.openecomp.relationships.AttachesTo
575       - port:
576           capability: attachment_pd_server_pd01_port
577           node: abstract_pd_server
578           relationship: org.openecomp.relationships.AttachesTo
579       - port:
580           capability: attachment_oam_server_pd01_port
581           node: abstract_oam_server
582           relationship: org.openecomp.relationships.AttachesTo
583     network_policy_server_pd:
584       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
585       properties:
586         name:
587           get_attribute:
588           - abstract_pd_server
589           - pd_server_accessIPv4
590     network_policy_server:
591       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
592       properties:
593         name:
594           get_input: dummy_net_name_1
595   groups:
596     hot-mog-0108-bs1271_group:
597       type: org.openecomp.groups.heat.HeatStack
598       properties:
599         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
600         description: heat template that creates MOG stack
601       members:
602       - packet_mirror_network
603       - network_policy_server_ps
604       - resources_with_dependOn
605       - network_policy_server_oam
606       - jsa_security_group
607       - network_policy_server_pd
608       - network_policy_server
609       - abstract_pd_server
610       - abstract_ps_server
611       - abstract_oam_server
612     BE_Affinity_group:
613       type: tosca.groups.Root
614       members:
615       - abstract_pd_server
616       - abstract_ps_server
617       - abstract_oam_server
618   outputs:
619     out2:
620       description: output_regula
621       value:
622         get_attribute:
623         - abstract_ps_server
624         - ps_server_accessIPv4
625     out3:
626       description: output_regula
627       value:
628         get_attribute:
629         - abstract_oam_server
630         - oam_server_accessIPv4
631     out4:
632       description: output_regula
633       value:
634         get_attribute:
635         - abstract_pd_server
636         - pd_server_pd01_port_device_owner
637     out5:
638       description: output_regula
639       value:
640         get_attribute:
641         - abstract_ps_server
642         - ps_server_pd01_port_device_id
643     out1:
644       description: output_regula
645       value:
646         get_attribute:
647         - abstract_pd_server
648         - pd_server_accessIPv4
649   policies:
650     BE_Affinity_policy:
651       type: org.openecomp.policies.placement.Colocate
652       properties:
653         name: def
654         affinity: host
655       targets:
656       - BE_Affinity_group