tosca_definitions_version: tosca_simple_yaml_1_3

description: Template for deploying a single server with predefined properties.

topology_template:
  node_templates:
    my_server:
      type: tosca.nodes.Compute
      capabilities:
        host:
          properties:
            num_cpus: 1
            disk_size: 10 GB
            mem_size: 512 MB
        os:
          properties:
            architecture: x86_64
            type: linux
            distribution: ubuntu
            version: 16.04
  outputs:
    private_ip:
      description: The private IP address of the deployed server.
      value: { get_attribute: [my_server, private_address] }
