Last active
August 29, 2015 14:04
-
-
Save kopparam/bac768788125916cc40e to your computer and use it in GitHub Desktop.
Simple Heat template (HOT)
This file contains 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: 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