Skip to content

Instantly share code, notes, and snippets.

@ShawnClake
Last active November 29, 2017 14:50
Show Gist options
  • Save ShawnClake/317cdf8af48d380a13b7098cfe49c240 to your computer and use it in GitHub Desktop.
Save ShawnClake/317cdf8af48d380a13b7098cfe49c240 to your computer and use it in GitHub Desktop.
OpenStack Heat Template - 1i
heat_template_version: 2017-02-24
parameters:
key_name:
type: string
description: Name of a KeyPair
flavor_name:
type: string
description: Name of a Flavor
image_name:
type: string
description: Name of an Image
networks:
type: comma_delimited_list
description: Network IDs
resources:
server:
type: OS::Nova::Server
properties:
key_name: { get_param: key_name }
image: { get_param: image_name }
flavor: { get_param: flavor_name }
networks:
repeat:
for_each:
<%nwork%>: { get_param: networks }
template:
network: <%nwork%>
security_groups:
- default
- ssh
@ShawnClake
Copy link
Author

JSON Template Structure

{
  "template": {
    "instance-1": {}
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment