1 tosca_definitions_version: tosca_simple_yaml_1_0
4 TOSCA simple profile with server and attached block storage using a custom AttachesTo Relationship
8 template_name: block-storage-2
9 template_author: TOSCA Simple Profile in YAML
10 template_version: '1.0'
15 derived_from: AttachesTo
22 description: Number of CPUs for the server.
24 - valid_values: [ 1, 2, 4, 8 ]
26 type: scalar-unit.size
27 description: Size of the storage to be created.
32 Optional identifier for an existing snapshot to use when creating storage.
35 description: Block storage mount point (filesystem path).
45 num_cpus: { get_input: cpus }
56 # Declare custom AttachesTo type using the 'relationship' keyword
58 type: MyCustomAttachesTo
60 location: { get_input: storage_location }
65 size: { get_input: storage_size }
66 snapshot_id: { get_input: storage_snapshot_id }
70 description: The private IP address of the newly created compute instance.
71 value: { get_attribute: [ my_server, private_address ] }
74 description: The volume id of the block storage instance.
75 value: { get_property: [ my_storage, volume_id ] } # ARIA NOTE: wrong in spec