1 tosca_definitions_version: tosca_simple_yaml_1_0
4 Service template with topology_template, act as a nested system inside another system.
10 description: Template of a database including its hosting stack.
15 description: IP address of the message queuing server to receive messages from.
18 description: Port to be used for receiving messages.
21 description: Number of CPUs for the server.
23 - valid_values: [ 1, 2, 4, 8 ]
25 substitution_mappings:
26 node_type: example.TransactionSubsystem
28 message_receiver: [ app, message_receiver ]
30 database_endpoint: [ app, database ]
41 server_ip: { get_input: mq_server_ip }
47 type: tosca.nodes.WebServer
51 port_name: { get_input: receiver_port }
57 type: tosca.nodes.Compute
62 num_cpus: { get_input: my_cpus }
73 description: private IP address of the message receiver application
74 value: { get_attribute: [ server, private_address ] }
75 # It seems current _process_intrisic_function can not handle more than 2 arguments, save it for later
77 # description: Port of the message receiver endpoint
78 # value: { get_attribute: [ app, data_endpoint, port_name ] }
82 members: [ websrv, server ]
83 type: tosca.groups.Root