xlab-si/xopera-opera

View on GitHub
examples/outputs/service.yaml

Summary

Maintainability
Test Coverage
tosca_definitions_version: tosca_simple_yaml_1_3

node_types:
  my_node_type:
    derived_from: tosca.nodes.Root
    attributes:
      my_attribute:
        type: string
        default: my_default_attribute_default
    properties:
      my_property:
        type: integer
    interfaces:
      Standard:
        operations:
          create: playbooks/create.yaml

topology_template:
  node_templates:
    my_node:
      type: my_node_type
      properties:
        my_property: 123

  outputs:
    output_prop:
      description: Example of property output
      value: { get_property: [ my_node, my_property ] }
    output_attr:
      description: Example of attribute output
      value: { get_attribute: [ my_node, my_attribute ] }