1ca69caf20f57b3bb8302f5ee41494b1188e2d28
[sdc/sdc-distribution-client.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >
4   TOSCA simple profile to test the get property function with HOST parameter
5
6 imports:
7   - ../custom_types/compute_with_prop.yaml
8
9 topology_template:
10   inputs:
11     db_name:
12       type: string
13       description: The name of the database.
14       default: wordpress
15     db_user:
16       type: string
17       description: The user name of the DB user.
18       default: wp_user
19     db_pwd:
20       type: string
21       description: The WordPress database admin account password.
22       default: wp_pass
23     db_root_pwd:
24       type: string
25       description: Root password for MySQL.
26     db_port:
27       type: PortDef
28       description: Port for the MySQL database.
29       default: 3306
30
31   node_templates:
32
33     mysql_database:
34       type: tosca.nodes.Database
35       properties:
36         name: { get_input: db_name }
37         user: { get_input: db_user }
38         password: { get_input: db_pwd }
39       capabilities:
40         database_endpoint:
41           properties:
42             port: { get_input: db_port }
43       requirements:
44         - host: mysql_dbms
45       interfaces:
46         Standard:
47           configure:
48             implementation: mysql/mysql_database_configure.sh
49             inputs:
50               db_port: { get_property: [ HOST, port ] }
51               test: { get_property: [ HOST, test ] }
52
53     mysql_dbms:
54       type: tosca.nodes.DBMS
55       properties:
56         root_password: { get_input: db_root_pwd }
57         port: { get_input: db_port }
58       requirements:
59         - host: server
60
61     server:
62       type: tosca.nodes.ComputeWithProp
63       properties:
64         test: 1
65