1 tosca_definitions_version: tosca_simple_yaml_1_0
4 Database subsystem, which is service template with topology_template,
5 act as a nested system inside another system and also act as stand
6 alone service template.
12 description: Template of a database including its hosting stack.
17 description: the user name of database.
21 description: the port of database.
25 description: the name of database.
29 description: Number of CPUs for the server.
32 - valid_values: [ 1, 2, 4, 8 ]
34 substitution_mappings:
35 node_type: example.DatabaseSubsystem
37 database_endpoint: [ db_app, database_endpoint ]
41 type: tosca.nodes.Database
43 user: { get_input: user }
44 port: { get_input: port }
45 name: { get_input: name }
55 type: tosca.nodes.DBMS
58 root_password: 123456789
64 type: tosca.nodes.Compute
69 num_cpus: { get_input: my_cpus }
80 # description: private IP address of the database application
81 # value: { get_attribute: [ server, private_address ] }
82 # It seems current _process_intrisic_function can not handle more than 2 arguments, save it for later
84 # description: Port of the message receiver endpoint
85 # value: { get_attribute: [ app, data_endpoint, port_name ] }
89 members: [ dbms, server ]
90 type: tosca.groups.Root