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 implied relationships.
8 template_name: block-storage-4
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.
41 type: tosca.nodes.Compute
46 num_cpus: { get_input: cpus }
57 relationship: MyAttachesTo
60 type: tosca.nodes.Compute
65 num_cpus: { get_input: cpus }
79 location: /some_other_data_location
82 type: tosca.nodes.BlockStorage
84 size: { get_input: storage_size }
85 snapshot_id: { get_input: storage_snapshot_id }
89 description: The private IP address of the application's first tier.
90 value: { get_attribute: [ my_web_app_tier_1, private_address ] }
92 description: The private IP address of the application's second tier.
93 value: { get_attribute: [ my_web_app_tier_2, private_address ] }
95 description: The volume id of the block storage instance.
96 value: { get_property: [ my_storage, volume_id ] } # ARIA NOTE: wrong in spec