Skip to content

Instantly share code, notes, and snippets.

@pratikmallya
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pratikmallya/b6be647475a5f0aa2172 to your computer and use it in GitHub Desktop.
Save pratikmallya/b6be647475a5f0aa2172 to your computer and use it in GitHub Desktop.
heat_template_version: 2013-05-23
resources:
volume:
type: OS::Cinder::Volume
properties:
size: 75
volume_attachment:
type: OS::Cinder::VolumeAttachment
properties:
volume_id: { get_resource: volume }
instance_uuid: { get_resource: instance }
instance:
type: OS::Nova::Server
properties:
image: Debian 7 (Wheezy) (PVHVM)
flavor: 2 GB General Purpose v1
user_data_format: RAW
user_data: |
#!/bin/bash -x
python -m SimpleHTTPServer 80
outputs:
private_ip:
value: { get_attr: [ instance, networks, { get_param: private_network }, 0] }
description: App Node Private IP
service_ip:
value: { get_attr: [ instance, networks, private, 0] }
description: App Node Private IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment