Skip to content

persistent-persistent

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:
            node_default_condition: true
            node_default_condition_mode: incoming-host
            relation_default_condition: true
            relation_default_condition_mode: source-target
            type_default_condition: true
            hosting_stack_constraint: true
    node_templates:
        worker:
            type: worker
            persistent: true
            requirements:
                - host:
                      node: vm
        vm:
            type: vm
            requirements:
                - host:
                      node: hypervisor
        hypervisor:
            type: hypervisor

Variability-Resolved Service Template

The following variability-resolved service template is expected.

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

Last update: November 18, 2024