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