Skip to content

scenario-worker-worker-true

Description

  • agent and worker hosted on a virtual machine
  • virtual machine is only present if either agent or worker is present
  • agent is only present if the virtual machine is present, thus, circle

  • worker is present, thus, all components are present

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
            optimization_topology: true
    node_templates:
        agent:
            type: agent
            conditions:
                host_presence: SELF
            requirements:
                - host: vm
        worker:
            type: worker
            conditions: true
            requirements:
                - host: vm
        vm:
            type: vm

Variability-Resolved Service Template

The following variability-resolved service template is expected.

tosca_definitions_version: tosca_simple_yaml_1_3
topology_template:
    node_templates:
        agent:
            type: agent
            requirements:
                - host: vm
        worker:
            type: worker
            requirements:
                - host: vm
        vm:
            type: vm

Last update: November 18, 2024