8fb7b96452384a0c716755f9b898b1e608fbd3ac
[sdc/sdc-distribution-client.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: TOSCA simple profile with nested property names or indexes.
4
5 imports:
6   - ../custom_types/wordpress.yaml
7   - ../custom_types/db_with_list_param.yaml
8
9 topology_template:
10
11   node_templates:
12
13     wordpress:
14       type: tosca.nodes.WebApplication.WordPress
15       requirements:
16         - host: server
17         - database_endpoint: mysql_database
18       interfaces:
19         Standard:
20           configure:
21             implementation: wordpress/wordpress_configure.sh
22             inputs:
23               wp_endpoint_protocol: { get_property: [ SELF, database_endpoint, ports, user_port, protocol ] }
24               wp_list_prop: { get_property: [ mysql_database, list_prop, 2 ] }
25
26     mysql_database:
27       type: tosca.nodes.DatabaseWithListParam
28       properties:
29         list_prop: [1,2,3]
30       capabilities:
31         database_endpoint:
32           properties:
33             ports:
34               user_port:
35                 protocol: tcp
36                 target: 50000
37                 source: 9000
38       requirements:
39         - host: mysql_dbms
40
41     mysql_dbms:
42       type: tosca.nodes.DBMS
43       requirements:
44         - host: server
45
46     server:
47       type: tosca.nodes.Compute