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