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