artifacts-pruning-managed-rules-host
Description
Pruning via rules also works if no host is present. In this case, the technology and the artifact form a circle, while the application provides the presence impulse since its anchor.
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
host :
derived_from : tosca.nodes.Root
metadata :
vintner_abstract : 'true'
topology_template :
variability :
qualities :
- component : application
technology : ansible
artifact : first.artifact.type
hosting :
- host
weight : 1
- component : application
technology : terraform
artifact : second.artifact.type
hosting :
- host
weight : 0
node_templates :
application :
type : application
anchor : true
artifacts :
- first_artifact :
type : first.artifact.type
file : first_artifact_file
- second_artifact :
type : second.artifact.type
file : second_artifact_file
requirements :
- host : host
host :
type : host
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
host :
derived_from : tosca.nodes.Root
metadata :
vintner_abstract : 'true'
topology_template :
node_templates :
application :
type : application~application#first.artifact.type::ansible@host
requirements :
- host : host
artifacts :
first_artifact :
type : first.artifact.type
file : first_artifact_file
host :
type : host
Last update:
May 21, 2025