1 tosca_definitions_version: tosca_simple_yaml_1_0
4 TOSCA simple profile with a single Block Storage node shared by 2-Tier Application with custom
5 AttachesTo Type and explicit Relationship Templates.
8 template_name: block-storage-5
9 template_author: TOSCA Simple Profile in YAML
10 template_version: '1.0'
15 derived_from: tosca.relationships.AttachesTo
19 default: /default_location
26 description: Number of CPUs for the server.
28 - valid_values: [ 1, 2, 4, 8 ]
30 type: scalar-unit.size
32 description: Size of the storage to be created.
36 Optional identifier for an existing snapshot to use when creating storage.
40 Block storage mount point (filesystem path).
45 type: tosca.nodes.Compute
50 num_cpus: { get_input: cpus }
61 relationship: storage_attachesto_1
64 type: tosca.nodes.Compute
69 num_cpus: { get_input: cpus }
80 relationship: storage_attachesto_2
83 type: tosca.nodes.BlockStorage
85 size: { get_input: storage_size }
86 snapshot_id: { get_input: storage_snapshot_id }
88 relationship_templates:
93 location: /my_data_location
98 location: /some_other_data_location
102 description: The private IP address of the application's first tier.
103 value: { get_attribute: [ my_web_app_tier_1, private_address ] }
105 description: The private IP address of the application's second tier.
106 value: { get_attribute: [ my_web_app_tier_2, private_address ] }
108 description: The volume id of the block storage instance.
109 value: { get_property: [ my_storage, volume_id ] } # ARIA NOTE: wrong in spec