Skip to content

Instantly share code, notes, and snippets.

@chriscowley
Created May 15, 2015 09:48
Show Gist options
  • Select an option

  • Save chriscowley/14feaa12a8579aeb290a to your computer and use it in GitHub Desktop.

Select an option

Save chriscowley/14feaa12a8579aeb290a to your computer and use it in GitHub Desktop.
Create cinder volume and an instance
heat_template_version: 2014-10-16
description: A simple server to run Jenkins
parameters:
imageid:
type: string
default: Centos-7-x64
description: Image use to boot a server
resources:
jenkins:
type: OS::Nova::Server
properties:
image: { get_param: ImageID }
flavor: m1.tiny
networks:
- network: { get_param: NetID }
jenkins_data:
type: OS::Cinder::Volume
properties:
size: 50G
jenkins_data_att:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid: { get_resource: jenkins }
volume_id: { get_resource: jenkins_data}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment