Skip to content

technologies-optimization-double

Variable Service Template

The variability of the following variable service template shall be resolved.

tosca_definitions_version: tosca_variability_1_0
topology_template:
    variability:
        options:
            mode: semantic-loose
            node_default_condition_mode: incomingnaive-host
            hosting_stack_constraint: true
            optimization_topology: true
            optimization_technologies: true
            technology_pruning: true
    node_templates:
        container:
            type: container
            persistent: true
            technology:
                - ansible:
                      conditions: true
                - terraform:
                      conditions: true
            requirements:
                - relation:
                      node: container_host
                      conditions: false
        container_host:
            type: container_host
        container_host_agent:
            type: container_host_agent
            requirements:
                - host:
                      node: container_host
        another:
            type: another
            technology:
                - ansible:
                      conditions: true

Variability-Resolved Service Template

The following variability-resolved service template is expected.

1
2
3
4
5
6
7
tosca_definitions_version: tosca_simple_yaml_1_3
topology_template:
    node_templates:
        container:
            type: container~container::ansible
        another:
            type: another~another::ansible

Last update: December 4, 2024