blob: c20d4e4850ba0ac473408dbe71d3d3df569876ec [file] [log] [blame]
DR695Hccff30b2017-02-17 18:44:24 -05001heat_template_version: 2013-05-23
2description: create a Nova instance, a Cinder volume and attach the volume to the instance.
3
4parameters:
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.
13resources:
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 }