
The templates is used for testing topology template functions. They contain most of the features provided by topology template. But still need improvement as the development of the TOSCA spec going on. subsystem.yaml is used to test elements in topology template. system.yaml is used to test substitution mapping. For it is not well defined currently, it will be implemented later. definition.yaml provides definitions required by the above two files. partially implements: bp tosca-topology-template Change-Id: I73006bb2880a69d20b647db750d806c87d0edfeb
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
tosca_definitions_version: tosca_simple_yaml_1_0_0
|
|
|
|
topology_template:
|
|
description: Template of online transaction processing service.
|
|
|
|
node_templates:
|
|
mq:
|
|
type: example.QueuingSubsystem
|
|
# properties:
|
|
# to be updated when substitution_mapping is implemented
|
|
# capabilities:
|
|
# message_queue_endpoint:
|
|
# to be updated when substitution_mapping is implemented
|
|
requirements:
|
|
- receiver: trans1
|
|
- receiver: trans2
|
|
|
|
trans1:
|
|
type: example.TransactionSubsystem
|
|
properties:
|
|
mq_server_ip: { get_attribute: [ mq, server_ip ] }
|
|
receiver_port: 8080
|
|
# capabilities:
|
|
# message_receiver:
|
|
# to be updated when substitution_mapping is implemented
|
|
requirements:
|
|
- database_endpoint: dbsys
|
|
|
|
trans2:
|
|
type: example.TransactionSubsystem
|
|
properties:
|
|
mq_server_ip: { get_attribute: [ mq, server_ip ] }
|
|
receiver_port: 8080
|
|
# capabilities:
|
|
# message_receiver:
|
|
# to be updated when substitution_mapping is implemented
|
|
requirements:
|
|
- database_endpoint: dbsys
|
|
|
|
dbsys:
|
|
type: example.DatabaseSubsystem
|
|
# properties:
|
|
# to be updated when substitution_mapping is implemented
|
|
# capabilities:
|
|
# database_endpoint:
|
|
# to be updated when substitution_mapping is implemented |