File: test_token.yaml

package info (click to toggle)
python-tosca-parser 2.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,920 kB
  • sloc: python: 11,185; sh: 144; makefile: 26
file content (15 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (5)
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 ] }