DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame^] | 1 | heat_template_version: 2013-05-23 |
| 2 | description: create a Nova instance, a Cinder volume and attach the volume to the instance. |
| 3 | |
| 4 | parameters: |
| 5 | nova_instance: |
| 6 | type: string |
| 7 | label: Instance name or ID |
| 8 | description: ID of the vm to use for the disk to be attached too |
| 9 | volume_size: |
| 10 | type: number |
| 11 | label: GB |
| 12 | description: Size of the volume to be created. |
| 13 | resources: |
| 14 | cinder_volume: |
| 15 | type: OS::Cinder::Volume |
| 16 | properties: |
| 17 | size: { get_param: volume_size } |
| 18 | volume_attachment: |
| 19 | type: OS::Cinder::VolumeAttachment |
| 20 | properties: |
| 21 | volume_id: { get_resource: cinder_volume } |
| 22 | instance_uuid: { get_param: nova_instance } |