047387fe1ca010c65e27f52775864b6f1f97d38b
[sdc/sdc-distribution-client.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >
4   TOSCA template for testing get_attribute with TARGET ans SOURCE keywords.
5
6 topology_template:
7
8   node_templates:
9
10     mysql:
11       type: tosca.nodes.DBMS
12       properties:
13         root_password: rootpw
14         port: 3306
15       requirements:
16         - host:
17             node: db_server
18             relationship:
19               type: tosca.relationships.HostedOn
20               interfaces:
21                 Configure:
22                   pre_configure_source:
23                     implementation: some_script.sh
24                     inputs:
25                       target_test: { get_attribute: [ TARGET, public_address ] }
26                       source_port: { get_attribute: [ SOURCE, tosca_name ] }
27
28     db_server:
29       type: tosca.nodes.Compute
30