artifacts-pruning-managed-manual
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:
technology_rules:
- component: application
technology: ansible
artifact: first.artifact.type
weight: 1
- component: application
technology: ansible
artifact: second.artifact.type
weight: 1
node_templates:
application:
type: application
persistent: true
technology:
- ansible:
artifact: second.artifact.type
artifacts:
- first_artifact:
type: first.artifact.type
file: first_artifact_file
conditions: false
- 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::ansible
artifacts:
second_artifact:
type: second.artifact.type
file: second_artifact_file
|
Last update:
November 18, 2024