| heat_template_version: queens |
| |
| parameters: |
| volume_size: |
| type: number |
| description: Size of volume to attach to instance |
| default: 50 |
| |
| volume_type: |
| type: string |
| description: The type of the volume mapping to a backend, if any. |
| default: standard-iops |
| |
| instance_id: |
| type: string |
| description: Server to attach volume to |
| |
| resources: |
| volume: |
| type: OS::Cinder::Volume |
| properties: |
| volume_type: { get_param: volume_type } |
| size: { get_param: volume_size } |
| description: Volume for stack |
| |
| volume_attachment: |
| type: OS::Cinder::VolumeAttachment |
| properties: |
| volume_id: { get_resource: volume } |
| instance_uuid: { get_param: instance_id } |