[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / lib / openecomp-sdc-enrichment-lib / openecomp-sdc-enrichment-core / src / test / resources / extractServiceComposition / onlyComponents / expectedOutput / OnlyComponentsST_01.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5   NeutronPortGlobalTypes:
6     file: NeutronPortGlobalTypesServiceTemplate.yaml
7   NeutronNetGlobalTypes:
8     file: NeutronNetGlobalTypesServiceTemplate.yaml
9   CommonGlobalTypes:
10     file: CommonGlobalTypesServiceTemplate.yaml
11   CinderVolumeGlobalTypes:
12     file: CinderVolumeGlobalTypesServiceTemplate.yaml
13   ContrailNetworkRuleGlobalType:
14     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
15   NeutronSecurityRulesGlobalTypes:
16     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
17   NovaServerGlobalTypes:
18     file: NovaServerGlobalTypesServiceTemplate.yaml
19   ContrailVirtualNetworkGlobalType:
20     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
21   AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 node_types:
24   org.openecomp.resource.vfc.nodes.heat.pcrf_psm:
25     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
26     capabilities:
27       instance:
28         type: org.openecomp.capabilities.metric.Ceilometer
29         description: Existence of instance
30         properties:
31           name:
32             type: string
33             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
34             required: true
35             default: instance
36             status: SUPPORTED
37           description:
38             type: string
39             description: Description of the metric
40             required: false
41             status: SUPPORTED
42           unit:
43             type: string
44             description: Unit of the metric value
45             required: true
46             default: instance
47             status: SUPPORTED
48           type:
49             type: string
50             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
51             required: true
52             default: Gauge
53             status: SUPPORTED
54           category:
55             type: string
56             description: Category of the metric, for an example, compute, disk, network, storage and etc.
57             required: false
58             default: compute
59             status: SUPPORTED
60       memory:
61         type: org.openecomp.capabilities.metric.Ceilometer
62         description: Volume of RAM allocated to the instance
63         properties:
64           name:
65             type: string
66             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
67             required: true
68             default: memory
69             status: SUPPORTED
70           description:
71             type: string
72             description: Description of the metric
73             required: false
74             status: SUPPORTED
75           unit:
76             type: string
77             description: Unit of the metric value
78             required: true
79             default: MB
80             status: SUPPORTED
81           type:
82             type: string
83             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
84             required: true
85             default: Gauge
86             status: SUPPORTED
87           category:
88             type: string
89             description: Category of the metric, for an example, compute, disk, network, storage and etc.
90             required: false
91             default: compute
92             status: SUPPORTED
93       cpu:
94         type: org.openecomp.capabilities.metric.Ceilometer
95         description: CPU time used
96         properties:
97           name:
98             type: string
99             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
100             required: true
101             default: cpu
102             status: SUPPORTED
103           description:
104             type: string
105             description: Description of the metric
106             required: false
107             status: SUPPORTED
108           unit:
109             type: string
110             description: Unit of the metric value
111             required: true
112             default: ns
113             status: SUPPORTED
114           type:
115             type: string
116             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
117             required: true
118             default: Cumulative
119             status: SUPPORTED
120           category:
121             type: string
122             description: Category of the metric, for an example, compute, disk, network, storage and etc.
123             required: false
124             default: compute
125             status: SUPPORTED
126   org.openecomp.resource.vfc.nodes.heat.pcm:
127     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
128     capabilities:
129       instance:
130         type: org.openecomp.capabilities.metric.Ceilometer
131         description: Existence of instance
132         properties:
133           name:
134             type: string
135             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
136             required: true
137             default: instance
138             status: SUPPORTED
139           description:
140             type: string
141             description: Description of the metric
142             required: false
143             status: SUPPORTED
144           unit:
145             type: string
146             description: Unit of the metric value
147             required: true
148             default: instance
149             status: SUPPORTED
150           type:
151             type: string
152             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
153             required: true
154             default: Gauge
155             status: SUPPORTED
156           category:
157             type: string
158             description: Category of the metric, for an example, compute, disk, network, storage and etc.
159             required: false
160             default: compute
161             status: SUPPORTED
162       memory:
163         type: org.openecomp.capabilities.metric.Ceilometer
164         description: Volume of RAM allocated to the instance
165         properties:
166           name:
167             type: string
168             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
169             required: true
170             default: memory
171             status: SUPPORTED
172           description:
173             type: string
174             description: Description of the metric
175             required: false
176             status: SUPPORTED
177           unit:
178             type: string
179             description: Unit of the metric value
180             required: true
181             default: MB
182             status: SUPPORTED
183           type:
184             type: string
185             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
186             required: true
187             default: Gauge
188             status: SUPPORTED
189           category:
190             type: string
191             description: Category of the metric, for an example, compute, disk, network, storage and etc.
192             required: false
193             default: compute
194             status: SUPPORTED
195       cpu:
196         type: org.openecomp.capabilities.metric.Ceilometer
197         description: CPU time used
198         properties:
199           name:
200             type: string
201             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
202             required: true
203             default: cpu
204             status: SUPPORTED
205           description:
206             type: string
207             description: Description of the metric
208             required: false
209             status: SUPPORTED
210           unit:
211             type: string
212             description: Unit of the metric value
213             required: true
214             default: ns
215             status: SUPPORTED
216           type:
217             type: string
218             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
219             required: true
220             default: Cumulative
221             status: SUPPORTED
222           category:
223             type: string
224             description: Category of the metric, for an example, compute, disk, network, storage and etc.
225             required: false
226             default: compute
227             status: SUPPORTED
228 topology_template:
229   inputs:
230     Internal2_name:
231       label: Internal2_name
232       hidden: false
233       immutable: false
234       type: string
235       description: Internal2_name
236     Internal1_shared:
237       label: Internal1_shared
238       hidden: false
239       immutable: false
240       type: string
241       description: Internal1_shared
242     FSB1_volume_name:
243       label: FSB1_volume
244       hidden: false
245       immutable: false
246       type: string
247       description: FSB1_volume_1
248     jsa_cidr:
249       label: jsa_cidr
250       hidden: false
251       immutable: false
252       type: string
253       description: jsa_cidr
254       default: 107.243.7.128/26
255     availabilityzone_name:
256       label: availabilityzone_name
257       hidden: false
258       immutable: false
259       type: string
260       description: availabilityzone_name
261     fsb1-name:
262       label: FSB1_name
263       hidden: false
264       immutable: false
265       type: string
266       description: FSB1_name
267     pcm_image_name:
268       label: pcm_image_name
269       hidden: false
270       immutable: false
271       type: string
272       description: pcm_image_name
273     Internal2_external:
274       label: Internal2_external
275       hidden: false
276       immutable: false
277       type: string
278       description: Internal2_external
279     Internal2_forwarding_mode:
280       label: Internal2_forwarding_mode
281       hidden: false
282       immutable: false
283       type: string
284       description: Internal2_forwarding_mode
285     pcrf_psm_flavor_name:
286       label: pcrf_psm_flavor_name
287       hidden: false
288       immutable: false
289       type: string
290       description: pcrf_psm_flavor_name
291     pcrf_psm_image_name:
292       label: pcrf_psm_image_name
293       hidden: false
294       immutable: false
295       type: string
296       description: pcrf_psm_image_name
297     FSB_1_image:
298       label: MME_FSB1
299       hidden: false
300       immutable: false
301       type: string
302       description: MME_FSB1_15B-CP04-r5a01
303     volume_size:
304       label: volume size
305       hidden: false
306       immutable: false
307       type: float
308       description: my volume size 320GB
309     fsb1-Internal1-mac:
310       label: FSB1_internal_mac
311       hidden: false
312       immutable: false
313       type: string
314       description: FSB1_internal_mac
315     Internal2_shared:
316       label: Internal2_shared
317       hidden: false
318       immutable: false
319       type: string
320       description: Internal2_shared
321     pcm_server_name:
322       label: pcm_server_name
323       hidden: false
324       immutable: false
325       type: string
326       description: pcm_server_name
327     Internal1_net_name:
328       label: Internal1_net_name
329       hidden: false
330       immutable: false
331       type: string
332       description: Internal1_net_name
333     oam_net_name:
334       label: oam_net_name
335       hidden: false
336       immutable: false
337       type: string
338       description: oam_net_name
339     fsb1-flavor:
340       label: FSB1_flavor
341       hidden: false
342       immutable: false
343       type: string
344       description: FSB1_flavor
345     fsb1-Internal2-mac:
346       label: FSB1_internal_mac
347       hidden: false
348       immutable: false
349       type: string
350       description: FSB1_internal_mac
351     volume_type:
352       label: volume type
353       hidden: false
354       immutable: false
355       type: string
356       description: volume type Gold
357     fsb1-zone:
358       label: FSB1_zone
359       hidden: false
360       immutable: false
361       type: string
362       description: FSB1_zone
363     fsb_zone:
364       label: FSB1_zone
365       hidden: false
366       immutable: false
367       type: string
368       description: FSB1_zone
369     security_group_name:
370       hidden: false
371       immutable: false
372       type: list
373       description: CMAUI1, CMAUI2 server names
374       entry_schema:
375         type: String
376     jsa_net_name:
377       label: jsa_net_name
378       hidden: false
379       immutable: false
380       type: string
381       description: jsa_net_name
382       default: jsa_log_net_0
383     pcrf_psm_server_name:
384       label: pcrf_psm_server_name
385       hidden: false
386       immutable: false
387       type: string
388       description: pcrf_psm_server_name
389     pcm_flavor_name:
390       label: pcm_flavor_name
391       hidden: false
392       immutable: false
393       type: string
394       description: pcm_flavor_name
395     oam_net_id:
396       label: oam_net_id
397       hidden: false
398       immutable: false
399       type: string
400       description: oam_net_id
401     fsb2-Internal1-mac:
402       label: FSB1_internal_mac
403       hidden: false
404       immutable: false
405       type: string
406       description: FSB1_internal_mac
407     Internal1_forwarding_mode:
408       label: Internal1_forwarding_mode
409       hidden: false
410       immutable: false
411       type: string
412       description: Internal1_forwarding_mode
413     pcrf_cps_net_name:
414       label: pcrf_cps_net_name
415       hidden: false
416       immutable: false
417       type: string
418       description: pcrf_cps_net_name
419     cps_net_name:
420       label: cps_net_name
421       hidden: false
422       immutable: false
423       type: string
424       description: cps_net_name
425     pcrf_security_group_name:
426       hidden: false
427       immutable: false
428       type: list
429       description: CMAUI1, CMAUI2 server names
430       entry_schema:
431         type: String
432     Internal1_external:
433       label: Internal1_external
434       hidden: false
435       immutable: false
436       type: string
437       description: Internal1_external
438   node_templates:
439     nova_local_type_pcm1:
440       type: org.openecomp.resource.vfc.nodes.heat.pcm
441       properties:
442         flavor:
443           get_input: pcm_flavor_name
444         availability_zone:
445           get_input: availabilityzone_name
446         image:
447           get_input: pcm_image_name
448         config_drive: 'True'
449         user_data_format: RAW
450         name:
451           get_input: pcm_server_name
452         user_data: UNSUPPORTED_RESOURCE_server_init
453     nova_local_type_pcm2:
454       type: org.openecomp.resource.vfc.nodes.heat.pcm
455       properties:
456         flavor:
457           get_input: pcm_flavor_name
458         availability_zone:
459           get_input: availabilityzone_name
460         image:
461           get_input: pcm_image_name
462         config_drive: 'True'
463         user_data_format: RAW
464         name:
465           get_input: pcm_server_name
466         user_data: UNSUPPORTED_RESOURCE_server_init
467     nova_local_type_pcrf_psm:
468       type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm
469       properties:
470         flavor:
471           get_input: pcm_flavor_name
472         availability_zone:
473           get_input: availabilityzone_name
474         image:
475           get_input: pcm_image_name
476         config_drive: 'True'
477         user_data_format: RAW
478         name:
479           get_input: pcm_server_name
480         user_data: UNSUPPORTED_RESOURCE_server_init
481     nova_global_type1:
482       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
483       properties:
484         flavor:
485           get_input: fsb1-flavor
486         availability_zone:
487           get_input: fsb_zone
488         name:
489           get_input: fsb1-name
490     nova_global_type2:
491       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
492       properties:
493         flavor:
494           get_input: fsb1-flavor
495         availability_zone:
496           get_input: fsb_zone
497         metadata:
498           write_files:
499           - path: /etc/sysconfig/network-scripts/ifcfg-eth0
500             permissions: '0644'
501             content:
502               str_replace:
503                 template:
504                   get_artifact:
505                   - SELF
506                   - nimbus-ethernet
507                 params:
508                   $dev: eth0
509                   $netmask:
510                     get_input: cps_net_mask
511                   $ip:
512                     get_input: cps_net_ip
513           - path: /etc/sysconfig/network-scripts/ifcfg-eth1
514             permissions: '0644'
515             content:
516               str_replace:
517                 template:
518                   get_artifact:
519                   - SELF
520                   - nimbus-ethernet-gw
521                 params:
522                   $dev: eth1
523                   $netmask:
524                     get_input: oam_net_mask
525                   $gateway:
526                     get_input: oam_net_gw
527                   $ip:
528                     get_input: oam_net_ip
529         name:
530           get_input: fsb1-name
531       artifacts:
532         nimbus-ethernet-gw:
533           type: tosca.artifacts.Deployment
534           file: ../Artifacts/nimbus-ethernet-gw
535         nimbus-ethernet:
536           type: tosca.artifacts.Deployment
537           file: ../Artifacts/nimbus-ethernet
538   groups:
539     ep-jsa_net:
540       type: org.openecomp.groups.heat.HeatStack
541       properties:
542         heat_file: ../Artifacts/ep-jsa_net.yaml
543         description: |
544           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
545       members:
546       - nova_local_type_pcm1
547       - nova_local_type_pcm2
548       - nova_local_type_pcrf_psm
549       - nova_global_type1
550       - nova_global_type2