Skip to content

Commit

Permalink
Support TOSCA 1.3 to separate capability Compute from capability Cont…
Browse files Browse the repository at this point in the history
…ainer

ystiaGH-589
  • Loading branch information
trihoangvo committed Feb 4, 2020
1 parent 640ecaf commit 49aa8c6
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions data/tosca/normative-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,15 @@ capability_types:
description: The Node capability indicates the base capabilities of a TOSCA Node Type.

tosca.capabilities.Container:
description: >
The Container capability, when included on a Node Type or Template definition, indicates that the node can act as a container for (or a host for)
one or more other declared Node Types.
derived_from: tosca.capabilities.Root

tosca.capabilities.Compute:
derived_from: tosca.capabilities.Container
description: >
The Container capability, when included on a Node Type or Template definition, indicates that the node can act as a container for
(or a host for) one or more other declared Node Types.
The Compute capability, when included on a Node Type or Template definition, indicates that the node can provide hosting on a named compute resource.
properties:
num_cpus:
type: integer
Expand Down Expand Up @@ -583,7 +588,7 @@ node_types:
occurrences: [ 0, UNBOUNDED ]
capabilities:
host:
type: tosca.capabilities.Container
type: tosca.capabilities.Compute
valid_source_types: [tosca.nodes.SoftwareComponent]
endpoint:
type: tosca.capabilities.Endpoint.Admin
Expand All @@ -610,7 +615,7 @@ node_types:
required: false
requirements:
- host:
capability: tosca.capabilities.Container
capability: tosca.capabilities.Compute
node: tosca.nodes.Compute
relationship: tosca.relationships.HostedOn

Expand All @@ -624,7 +629,7 @@ node_types:
data_endpoint: tosca.capabilities.Endpoint
admin_endpoint: tosca.capabilities.Endpoint.Admin
host:
type: tosca.capabilities.Container
type: tosca.capabilities.Compute
valid_source_types: [ tosca.nodes.WebApplication ]

tosca.nodes.WebApplication:
Expand All @@ -641,7 +646,7 @@ node_types:
type: tosca.capabilities.Endpoint
requirements:
- host:
capability: tosca.capabilities.Container
capability: tosca.capabilities.Compute
node: tosca.nodes.WebServer
relationship: tosca.relationships.HostedOn

Expand All @@ -659,7 +664,7 @@ node_types:
description: the port the DBMS service will listen to for data and requests
capabilities:
host:
type: tosca.capabilities.Container
type: tosca.capabilities.Compute
valid_source_types: [ tosca.nodes.Database ]

tosca.nodes.Database:
Expand All @@ -682,7 +687,7 @@ node_types:
required: false
requirements:
- host:
capability: tosca.capabilities.Container
capability: tosca.capabilities.Compute
node: tosca.nodes.DBMS
relationship: tosca.relationships.HostedOn
capabilities:
Expand Down Expand Up @@ -747,7 +752,7 @@ node_types:
services on a single Compute host.
capabilities:
host:
type: tosca.capabilities.Container
type: tosca.capabilities.Compute
scalable:
type: tosca.capabilities.Scalable

Expand All @@ -756,7 +761,7 @@ node_types:
description: The TOSCA Container Application node represents an application that requires Container-level virtualization technology.
requirements:
- host:
capability: tosca.capabilities.Container
capability: tosca.capabilities.Compute
node: tosca.nodes.Container
relationship: tosca.relationships.HostedOn

Expand Down

0 comments on commit 49aa8c6

Please sign in to comment.