Skip to content

Instantly share code, notes, and snippets.

@venumurthy
Forked from kopparam/simple_server.yaml
Created July 17, 2014 10:07
Show Gist options
  • Save venumurthy/4bea30658f9c7c6f8bb9 to your computer and use it in GitHub Desktop.
Save venumurthy/4bea30658f9c7c6f8bb9 to your computer and use it in GitHub Desktop.
heat_template_version: 2013-05-23
description: Simple template to deploy a single compute instance
parameters:
key_name:
type: string
label: Key Name
description: Name of key-pair to be used for compute instance
image_id:
type: string
label: Image ID
description: Image to be used for compute instance
instance_type:
type: string
label: Instance Type
description: Type of instance (flavor) to be used
resources:
my_instance:
type: OS::Nova::Server
properties:
key_name: { get_param: key_name }
image: { get_param: image_id }
flavor: { get_param: instance_type }
outputs:
instance_ip:
description: The IP address of the deployed instance
value: { get_attr: [my_instance, first_address] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment