Created
May 15, 2015 09:48
-
-
Save chriscowley/14feaa12a8579aeb290a to your computer and use it in GitHub Desktop.
Create cinder volume and an instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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