1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
|
tosca_definitions_version: tosca_simple_yaml_1_1_0
description: >
TOSCA simple profile common types. To be included by default in all templates.
data_types:
#see 5.3.1
tosca.datatypes.Root:
description: The TOSCA root Data Type all other TOSCA base Data Types derive from
#from 5.3.2
tosca.datatypes.Credential:
derived_from: tosca.datatypes.Root
properties:
protocol:
type: string
required: false
token_type:
type: string
default: password
token:
type: string
keys:
type: map
required: false
entry_schema: string
user:
type: string
required: false
#from 5.3.3
tosca.datatypes.TimeInterval:
derived_from: tosca.datatypes.Root
properties:
start_time:
type: timestamp
required: true
end_time:
type: timestamp
required: true
#from 5.3.4
tosca.datatypes.network.NetworkInfo:
derived_from: tosca.datatypes.Root
properties:
network_name:
type: string
network_id:
type: string
addresses:
type: list
entry_schema: string
#from 5.3.5
tosca.datatypes.network.PortInfo:
derived_from: tosca.datatypes.Root
properties:
port_name:
type: string
port_id:
type: string
network_id:
type: string
mac_address:
type: string
addresses:
type: list
entry_schema: string
#from 5.3.6
tosca.datatypes.network.PortDef:
derived_from: integer
constraints:
- in_range: [ 1, 65535 ]
#from 5.3.7
tosca.datatypes.network.PortSpec:
derived_from: tosca.datatypes.Root
properties:
protocol:
type: string
required: true
default: tcp
constraints:
- valid_values: [ udp, tcp, igmp ]
target:
#I think the intent was (same for source):
#type: tosca.datatypes.network.PortDef
type: integer
entry_schema: tosca.datatypes.network.PortDef
target_range:
type: range
constraints:
- in_range: [ 1, 65535 ]
source:
type: integer
entry_schema: tosca.datatypes.network.PortDef
source_range:
type: range
constraints:
- in_range: [ 1, 65535 ]
capability_types:
#from 5.5.1
tosca.capabilities.Root:
description: The TOSCA root Capability Type all other TOSCA base Capability Types derive from
#from 5.5.2
tosca.capabilities.Node:
derived_from: tosca.capabilities.Root
#from 5.5.3
tosca.capabilities.Compute:
derived_from: tosca.capabilities.Root
properties:
name:
type: string
required: false
num_cpus:
type: integer
required: false
constraints:
- greater_or_equal: 1
cpu_frequency:
type: scalar-unit.frequency
required: false
constraints:
- greater_or_equal: 0.1 GHz
disk_size:
type: scalar-unit.size
required: false
constraints:
- greater_or_equal: 0 MB
mem_size:
type: scalar-unit.size
required: false
constraints:
- greater_or_equal: 0 MB
#from 5.5.4
tosca.capabilities.Network:
derived_from: tosca.capabilities.Root
properties:
name:
type: string
required: false
#from 5.5.5
tosca.capabilities.Storage:
derived_from: tosca.capabilities.Root
properties:
name:
type: string
required: false
#from 5.5.6
tosca.capabilities.compute.Container:
derived_from: tosca.capabilities.Compute
#from 5.5.7
tosca.capabilities.Endpoint:
derived_from: tosca.capabilities.Root
properties:
protocol:
type: string
default: tcp
port:
type: tosca.datatypes.network.PortDef
required: false
secure:
type: boolean
default: false
url_path:
type: string
required: false
port_name:
type: string
required: false
network_name:
type: string
required: false
default: PRIVATE
initiator:
type: string
default: source
constraints:
- valid_values: [ source, target, peer ]
ports:
type: map
required: false
constraints:
- min_length: 1
entry_schema: tosca.datatypes.network.PortSpec
attributes:
ip_address:
type: string
#from 5.5.8
tosca.capabilities.Endpoint.Public:
derived_from: tosca.capabilities.Endpoint
properties:
# Change the default network_name to use the first public network found
network_name:
type: string
default: PUBLIC
floating:
description: >
indicates that the public address should be allocated from a pool of floating IPs that are associated with the network.
type: boolean
default: false
status: experimental
dns_name:
description: The optional name to register with DNS
type: string
required: false
status: experimental
#from 5.5.9
tosca.capabilities.Endpoint.Admin:
derived_from: tosca.capabilities.Endpoint
# Change Endpoint secure indicator to true from its default of false
properties:
secure:
type: boolean
default: true
constraints:
- equal: true
#from 5.5.10
tosca.capabilities.Endpoint.Database:
derived_from: tosca.capabilities.Endpoint
#from 5.5.11
tosca.capabilities.Attachment:
derived_from: tosca.capabilities.Root
#from 5.5.12
tosca.capabilities.OperatingSystem:
derived_from: tosca.capabilities.Root
properties:
architecture:
type: string
required: false
type:
type: string
required: false
distribution:
type: string
required: false
version:
type: version
required: false
#from 5.5.13
tosca.capabilities.Scalable:
derived_from: tosca.capabilities.Root
properties:
min_instances:
type: integer
default: 1
max_instances:
type: integer
default: 1
default_instances:
type: integer
#from C.3.11
tosca.capabilities.network.Bindable:
derived_from: tosca.capabilities.Node
relationship_types:
#from 5.7.1
tosca.relationships.Root:
description: The TOSCA root Relationship Type all other TOSCA base Relationship Types derive from
attributes:
tosca_id:
type: string
tosca_name:
type: string
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
#from 5.7.2
tosca.relationships.DependsOn:
derived_from: tosca.relationships.Root
valid_target_types: [ tosca.capabilities.Node ]
#from 5.7.3
tosca.relationships.HostedOn:
derived_from: tosca.relationships.Root
valid_target_types: [ tosca.capabilities.compute.Container ]
#from 5.7.4
tosca.relationships.ConnectsTo:
derived_from: tosca.relationships.Root
valid_target_types: [ tosca.capabilities.Endpoint ]
properties:
credential:
type: tosca.datatypes.Credential
required: false
#from 5.7.5
tosca.relationships.AttachesTo:
derived_from: tosca.relationships.Root
valid_target_types: [ tosca.capabilities.Attachment ]
properties:
location:
type: string
constraints:
- min_length: 1
device:
type: string
required: false
#from 5.7.6
tosca.relationships.RoutesTo:
derived_from: tosca.relationships.ConnectsTo
valid_target_types: [ tosca.capabilities.Endpoint ]
interface_types:
#from 5.8.3
tosca.interfaces.Root:
# derived_from: tosca.entity.Root
description: The TOSCA root Interface Type all other TOSCA base Interface Types derive from
#from 5.8.4
tosca.interfaces.node.lifecycle.Standard:
derived_from: tosca.interfaces.Root
create:
description: Standard lifecycle create operation.
configure:
description: Standard lifecycle configure operation.
start:
description: Standard lifecycle start operation.
stop:
description: Standard lifecycle stop operation.
delete:
description: Standard lifecycle delete operation.
#from 5.8.5
tosca.interfaces.relationship.Configure:
derived_from: tosca.interfaces.Root
pre_configure_source:
description: Operation to pre-configure the source endpoint.
pre_configure_target:
description: Operation to pre-configure the target endpoint.
post_configure_source:
description: Operation to post-configure the source endpoint.
post_configure_target:
description: Operation to post-configure the target endpoint.
add_target:
description: Operation to notify the source node of a target node being added via a relationship.
add_source:
description: Operation to notify the target node of a source node which is now available via a relationship.
target_changed:
description: Operation to notify source some property or attribute of the target changed
remove_target:
description: Operation to remove a target node.
node_types:
#from 5.9.1
tosca.nodes.Root:
description: The TOSCA Node Type all other TOSCA base Node Types derive from
attributes:
tosca_id:
type: string
tosca_name:
type: string
state:
type: string
capabilities:
feature:
type: tosca.capabilities.Node
requirements:
- dependency:
capability: tosca.capabilities.Node
node: tosca.nodes.Root
relationship: tosca.relationships.DependsOn
occurrences: [ 0, UNBOUNDED ]
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
#from 5.9.2
tosca.nodes.Compute:
derived_from: tosca.nodes.Root
attributes:
private_address:
type: string
public_address:
type: string
networks:
type: map
#entry schema for attribute has a string value as per A.5.9 ..
#the standard document defines it as a map similar to the property definition ..
entry_schema: tosca.datatypes.network.NetworkInfo
ports:
type: map
entry_schema: tosca.datatypes.network.PortInfo
requirements:
- local_storage:
capability: tosca.capabilities.Attachment
node: tosca.nodes.BlockStorage
relationship: tosca.relationships.AttachesTo
occurrences: [0, UNBOUNDED]
capabilities:
host:
type: tosca.capabilities.compute.Container
valid_source_types: [tosca.nodes.SoftwareComponent]
endpoint:
type: tosca.capabilities.Endpoint.Admin
os:
type: tosca.capabilities.OperatingSystem
scalable:
type: tosca.capabilities.Scalable
binding:
type: tosca.capabilities.network.Bindable
#from 5.9.3
tosca.nodes.SoftwareComponent:
derived_from: tosca.nodes.Root
properties:
# domain-specific software component version
component_version:
type: version
required: false
admin_credential:
type: tosca.datatypes.Credential
required: false
requirements:
- host:
capability: tosca.capabilities.compute.Container
node: tosca.nodes.Compute
relationship: tosca.relationships.HostedOn
#from 5.9.4
tosca.nodes.WebServer:
derived_from: tosca.nodes.SoftwareComponent
capabilities:
# Private, layer 4 endpoints
data_endpoint: tosca.capabilities.Endpoint
admin_endpoint: tosca.capabilities.Endpoint.Admin
host:
type: tosca.capabilities.compute.Container
valid_source_types: [ tosca.nodes.WebApplication ]
#from 5.9.5
tosca.nodes.WebApplication:
derived_from: tosca.nodes.Root
properties:
context_root:
type: string
capabilities:
app_endpoint:
type: tosca.capabilities.Endpoint
requirements:
- host:
capability: tosca.capabilities.compute.Container
node: tosca.nodes.WebServer
relationship: tosca.relationships.HostedOn
#from 5.9.6
tosca.nodes.DBMS:
derived_from: tosca.nodes.SoftwareComponent
properties:
root_password:
type: string
required: false
description: the optional root password for the DBMS service
port:
type: integer
required: false
description: the port the DBMS service will listen to for data and requests
capabilities:
host:
type: tosca.capabilities.compute.Container
valid_source_types: [ tosca.nodes.Database ]
#from 5.9.7
tosca.nodes.Database:
derived_from: tosca.nodes.Root
properties:
name:
type: string
description: the logical name of the database
port:
type: integer
description: the port the underlying database service will listen to for data
user:
type: string
description: the optional user account name for DB administration
required: false
password:
type: string
description: the optional password for the DB user account
required: false
requirements:
- host:
capability: tosca.capabilities.compute.Container
node: tosca.nodes.DBMS
relationship: tosca.relationships.HostedOn
capabilities:
database_endpoint:
type: tosca.capabilities.Endpoint.Database
#from 5.9.8
tosca.nodes.ObjectStorage:
derived_from: tosca.nodes.Root
properties:
name:
type: string
size:
type: scalar-unit.size
constraints:
- greater_or_equal: 0 GB
maxsize:
type: scalar-unit.size
constraints:
- greater_or_equal: 0 GB
capabilities:
storage_endpoint:
type: tosca.capabilities.Endpoint
#from 5.9.9
tosca.nodes.BlockStorage:
derived_from: tosca.nodes.Root
properties:
size:
type: scalar-unit.size
constraints:
- greater_or_equal: 1 MB
volume_id:
type: string
required: false
snapshot_id:
type: string
required: false
capabilities:
attachment:
type: tosca.capabilities.Attachment
#from 5.9.10
tosca.nodes.Container.Runtime:
derived_from: tosca.nodes.SoftwareComponent
capabilities:
host:
type: tosca.capabilities.compute.Container
scalable:
type: tosca.capabilities.Scalable
#from 5.9.11
tosca.nodes.Container.Application:
derived_from: tosca.nodes.Root
requirements:
- host:
capability: tosca.capabilities.compute.Container
# node: tosca.nodes.Container !invalid node reference!
relationship: tosca.relationships.HostedOn
#from 5.9.12
tosca.nodes.LoadBalancer:
derived_from: tosca.nodes.Root
properties:
# TBD
algorithm:
type: string
required: false
status: experimental
capabilities:
client:
type: tosca.capabilities.Endpoint.Public
occurrences: [0, UNBOUNDED]
description: the Floating (IP) clients on the public network can connect to
requirements:
- application:
capability: tosca.capabilities.Endpoint
relationship: tosca.relationships.RoutesTo
occurrences: [0, UNBOUNDED]
# correction by jora: requirement defintion does not allow for a description entry
# description: Connection to one or more load balanced applications
artifact_types:
#from 5.4.1
tosca.artifacts.Root:
description: The TOSCA Artifact Type all other TOSCA Artifact Types derive from
#from 5.4.2
tosca.artifacts.File:
derived_from: tosca.artifacts.Root
#from 5.4.3
tosca.artifacts.Deployment:
derived_from: tosca.artifacts.Root
description: TOSCA base type for deployment artifacts
#from 5.4.3.3
tosca.artifacts.Deployment.Image:
derived_from: tosca.artifacts.Deployment
#from 5.4.3.4
tosca.artifacts.Deployment.Image.VM:
derived_from: tosca.artifacts.Deployment.Image
description: Virtual Machine (VM) Image
#from 5.4.4
tosca.artifacts.Implementation:
derived_from: tosca.artifacts.Root
description: TOSCA base type for implementation artifacts
#from 5.4.4.3
tosca.artifacts.Implementation.Bash:
derived_from: tosca.artifacts.Implementation
description: Script artifact for the Unix Bash shell
mime_type: application/x-sh
file_ext: [ sh ]
#from 5.4.4.4
tosca.artifacts.Implementation.Python:
derived_from: tosca.artifacts.Implementation
description: Artifact for the interpreted Python language
mime_type: application/x-python
file_ext: [ py ]
#from 5.9
group_types:
tosca.groups.Root:
description: The TOSCA Group Type all other TOSCA Group Types derive from
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
#from 5.10
policy_types:
tosca.policies.Root:
description: The TOSCA Policy Type all other TOSCA Policy Types derive from
tosca.policies.Placement:
derived_from: tosca.policies.Root
description: The TOSCA Policy Type definition that is used to govern placement of TOSCA nodes or groups of nodes.
tosca.policies.Scaling:
derived_from: tosca.policies.Root
description: The TOSCA Policy Type definition that is used to govern scaling of TOSCA nodes or groups of nodes.
tosca.policies.Update:
derived_from: tosca.policies.Root
description: The TOSCA Policy Type definition that is used to govern update of TOSCA nodes or groups of nodes.
tosca.policies.Performance:
derived_from: tosca.policies.Root
description: The TOSCA Policy Type definition that is used to declare performance requirements for TOSCA nodes or groups of nodes.
|