db4109d81a6966f56429d61d53f18a8da9027537
[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_subinterface_indicator:
417         - false
418         port_pd01_port_network_role_tag: oam
419         compute_pd_server_user_data_format:
420         - RAW
421         service_template_filter:
422           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
423           count: 1
424         index_value:
425           get_property:
426           - SELF
427           - service_template_filter
428           - index_value
429       requirements:
430       - dependency_pd_server:
431           capability: tosca.capabilities.Node
432           node: packet_mirror_network
433           relationship: tosca.relationships.DependsOn
434     abstract_ps_server:
435       type: org.openecomp.resource.abstract.nodes.ps_server
436       directives:
437       - substitutable
438       properties:
439         compute_ps_server_name:
440         - get_input:
441           - ps_server_names
442           - 0
443         compute_ps_server_availability_zone:
444         - get_input: availabilityzone_name
445         compute_ps_server_user_data_format:
446         - RAW
447         compute_ps_server_scheduler_hints:
448         - group: BE_Affinity_group
449         vm_flavor_name:
450           get_attribute:
451           - network_policy_server
452           - name
453         port_pd01_port_security_groups:
454         - - jsa_security_group
455         port_pd01_port_mac_requirements:
456           mac_count_required:
457             is_required: false
458         vm_image_name:
459           get_input: pd_image_name
460         port_pd01_port_ip_requirements:
461         - ip_version: 4
462           ip_count_required:
463             is_required: false
464           floating_ip_count_required:
465             is_required: false
466         port_pd01_port_network:
467         - get_attribute:
468           - network_policy_server
469           - name
470         port_pd01_port_subinterface_indicator:
471         - false
472         service_template_filter:
473           substitute_service_template: Nested_ps_serverServiceTemplate.yaml
474           count: 1
475         index_value:
476           get_property:
477           - SELF
478           - service_template_filter
479           - index_value
480       requirements:
481       - dependency_ps_server:
482           capability: tosca.capabilities.Node
483           node: packet_mirror_network
484           relationship: tosca.relationships.DependsOn
485     abstract_oam_server:
486       type: org.openecomp.resource.abstract.nodes.oam_server
487       directives:
488       - substitutable
489       properties:
490         vm_flavor_name:
491           get_attribute:
492           - network_policy_server
493           - name
494         port_pd01_port_security_groups:
495         - - jsa_security_group
496         port_pd01_port_mac_requirements:
497           mac_count_required:
498             is_required: false
499         compute_oam_server_availability_zone:
500         - get_input: availabilityzone_name
501         vm_image_name:
502           get_input: pd_image_name
503         port_pd01_port_ip_requirements:
504         - ip_version: 4
505           ip_count_required:
506             is_required: false
507           floating_ip_count_required:
508             is_required: false
509         port_pd01_port_network:
510         - get_input: oam_net_name
511         port_pd01_port_subinterface_indicator:
512         - false
513         compute_oam_server_user_data_format:
514         - RAW
515         compute_oam_server_name:
516         - get_input:
517           - oam_server_names
518           - 0
519         port_pd01_port_network_role_tag: oam
520         compute_oam_server_scheduler_hints:
521         - group: BE_Affinity_group
522         service_template_filter:
523           substitute_service_template: Nested_oam_serverServiceTemplate.yaml
524           count: 1
525         index_value:
526           get_property:
527           - SELF
528           - service_template_filter
529           - index_value
530       requirements:
531       - dependency_oam_server:
532           capability: tosca.capabilities.Node
533           node: packet_mirror_network
534           relationship: tosca.relationships.DependsOn
535     network_policy_server_ps:
536       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
537       properties:
538         name:
539           get_attribute:
540           - abstract_ps_server
541           - ps_server_accessIPv4
542     resources_with_dependOn:
543       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
544       properties: {
545         }
546       requirements:
547       - dependency:
548           capability: feature_oam_server
549           node: abstract_oam_server
550           relationship: tosca.relationships.DependsOn
551       - dependency:
552           capability: feature_pd_server
553           node: abstract_pd_server
554           relationship: tosca.relationships.DependsOn
555       - dependency:
556           capability: feature_ps_server
557           node: abstract_ps_server
558           relationship: tosca.relationships.DependsOn
559     network_policy_server_oam:
560       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
561       properties:
562         name:
563           get_attribute:
564           - abstract_oam_server
565           - oam_server_accessIPv4
566     jsa_security_group:
567       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
568       properties:
569         name: Test-SecurityGroup
570         description: ems security group
571         rules:
572         - protocol: icmp
573           ethertype: IPv6
574           remote_ip_prefix: ::/0
575           direction: ingress
576       requirements:
577       - port:
578           capability: attachment_ps_server_pd01_port
579           node: abstract_ps_server
580           relationship: org.openecomp.relationships.AttachesTo
581       - port:
582           capability: attachment_pd_server_pd01_port
583           node: abstract_pd_server
584           relationship: org.openecomp.relationships.AttachesTo
585       - port:
586           capability: attachment_oam_server_pd01_port
587           node: abstract_oam_server
588           relationship: org.openecomp.relationships.AttachesTo
589     network_policy_server_pd:
590       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
591       properties:
592         name:
593           get_attribute:
594           - abstract_pd_server
595           - pd_server_accessIPv4
596     network_policy_server:
597       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
598       properties:
599         name:
600           get_input: dummy_net_name_1
601   groups:
602     hot-mog-0108-bs1271_group:
603       type: org.openecomp.groups.heat.HeatStack
604       properties:
605         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
606         description: heat template that creates MOG stack
607       members:
608       - packet_mirror_network
609       - network_policy_server_ps
610       - resources_with_dependOn
611       - network_policy_server_oam
612       - jsa_security_group
613       - network_policy_server_pd
614       - network_policy_server
615       - abstract_pd_server
616       - abstract_ps_server
617       - abstract_oam_server
618     BE_Affinity_group:
619       type: tosca.groups.Root
620       members:
621       - abstract_pd_server
622       - abstract_ps_server
623       - abstract_oam_server
624   outputs:
625     out2:
626       description: output_regula
627       value:
628         get_attribute:
629         - abstract_ps_server
630         - ps_server_accessIPv4
631     out3:
632       description: output_regula
633       value:
634         get_attribute:
635         - abstract_oam_server
636         - oam_server_accessIPv4
637     out4:
638       description: output_regula
639       value:
640         get_attribute:
641         - abstract_pd_server
642         - pd_server_pd01_port_device_owner
643     out5:
644       description: output_regula
645       value:
646         get_attribute:
647         - abstract_ps_server
648         - ps_server_pd01_port_device_id
649     out1:
650       description: output_regula
651       value:
652         get_attribute:
653         - abstract_pd_server
654         - pd_server_accessIPv4
655   policies:
656     BE_Affinity_policy:
657       type: org.openecomp.policies.placement.Colocate
658       properties:
659         name: def
660         affinity: host
661       targets:
662       - BE_Affinity_group