blob: f0dc1a9c285f97c19d5da30575b301d8b88ac069 [file] [log] [blame]
Denis Egorenkoe09856a2021-11-01 13:52:46 +04001heat_template_version: queens
2
3parameters:
4 volume_size:
5 type: number
6 description: Size of volume to attach to instance
7 default: 50
8
9 volume_type:
10 type: string
11 description: The type of the volume mapping to a backend, if any.
12 default: standard-iops
13
14 instance_id:
15 type: string
16 description: Server to attach volume to
17
18resources:
19 volume:
20 type: OS::Cinder::Volume
21 properties:
22 volume_type: { get_param: volume_type }
23 size: { get_param: volume_size }
24 description: Volume for stack
25
26 volume_attachment:
27 type: OS::Cinder::VolumeAttachment
28 properties:
29 volume_id: { get_resource: volume }
30 instance_uuid: { get_param: instance_id }