summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser/toscaparser/tests/data/functions/test_token.yaml
blob: 495a9301fe2a2ad513158808d03866ce6929037b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
tosca_definitions_version: tosca_simple_yaml_1_0

description: Template for deploying a single server with token function.

topology_template:
  node_templates:
    server:
      type: tosca.nodes.Compute

  outputs:
    url:
      description: Get the first part of the ip
      value: { token: [ get_attribute: [ server, public_address ],
                         '.' ,
                         0 ] }