Denis Egorenko | e09856a | 2021-11-01 13:52:46 +0400 | [diff] [blame] | 1 | heat_template_version: queens |
| 2 | |
| 3 | parameters: |
| 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 | |
| 18 | resources: |
| 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 } |