Skip to content

Instantly share code, notes, and snippets.

@therve
Created February 26, 2014 14:55
Show Gist options
  • Select an option

  • Save therve/9230895 to your computer and use it in GitHub Desktop.

Select an option

Save therve/9230895 to your computer and use it in GitHub Desktop.
heat_template_version: 2013-05-23
parameters:
volume_size:
type: number
description: The size of the created volume
resources:
myvolume:
type: OS::Cinder::Volume
properties:
size: {get_param: volume_size}
myserver:
type: OS::Nova::Server
properties:
flavor: m1.small
image: Fedora-x86_64-20-20131211.1-sda
key_name: heat
myattachment:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid: {get_resource: myserver}
volume_id: {get_resource: myvolume}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment