technologies-operations
Variable Service Template
The variability of the following variable service template shall be resolved.
| tosca_definitions_version: tosca_variability_1_0_rc_3
artifact_types:
first.artifact.type:
derived_from: tosca.artifacts.Root
second.artifact.type:
derived_from: tosca.artifacts.Root
node_types:
application:
derived_from: tosca.nodes.Root
topology_template:
variability:
qualities:
- component: application
technology: ansible
artifact: first.artifact.type
weight: 0
- component: application
technology: terraform
artifact: second.artifact.type
operations:
- create
weight: 1
node_templates:
application:
type: application
anchor: true
interfaces:
management:
operations:
create: implementation
artifacts:
- first_artifact:
type: first.artifact.type
file: first_artifact_file
- second_artifact:
type: second.artifact.type
file: second_artifact_file
|
Variability-Resolved Service Template
The following variability-resolved service template is expected.
| tosca_definitions_version: tosca_simple_yaml_1_3
artifact_types:
first.artifact.type:
derived_from: tosca.artifacts.Root
second.artifact.type:
derived_from: tosca.artifacts.Root
node_types:
application:
derived_from: tosca.nodes.Root
topology_template:
node_templates:
application:
type: application~application#second.artifact.type::terraform
interfaces:
management:
operations:
create: implementation
artifacts:
second_artifact:
type: second.artifact.type
file: second_artifact_file
|
Last update:
May 9, 2025