766ca87554f34827db01168ac44667606b86622f
[sdc/sdc-distribution-client.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 imports:
4   - test_example_app_substitution_mappings.yaml
5
6 topology_template:
7   description: >
8      Test template showing valid output section containing attribute defined
9      in the substitution mappings in the imported yaml file.
10
11   inputs:
12     mq_server_ip:
13       type: string
14       default: 127.0.0.1
15       description: IP address of the message queuing server to receive messages from.
16     mq_server_port:
17       type: integer
18       default: 8080
19       description: Port to be used for receiving messages.
20
21   node_templates:
22     sustitute_app:
23       type: example.app
24       properties:
25         mq_server_ip: { get_input:  mq_server_ip }
26         receiver_port: { get_input: mq_server_port }
27
28   outputs:
29     receiver_ip:
30       description: private IP address of the message receiver application
31       value: { get_attribute: [ sustitute_app, receiver_ip ] }