1 tosca_definitions_version: tosca_simple_yaml_1_0
4 TOSCA simple profile with server and attached block storage using a named Relationship Template for the storage attachment.
10 description: Number of CPUs for the server.
12 - valid_values: [ 1, 2, 4, 8 ]
14 type: scalar-unit.size
15 description: Size of the storage to be created.
19 description: Block storage mount point (filesystem path).
28 num_cpus: { get_input: cpus }
39 # Declare template to use with 'relationship' keyword
40 relationship: storage_attachment
45 size: { get_input: storage_size }
47 relationship_templates:
51 location: { get_input: storage_location }
55 description: The private IP address of the newly created compute instance.
56 value: { get_attribute: [my_server, private_address] }
58 description: The volume id of the block storage instance.
59 value: { get_attribute: [my_storage, volume_id] }