Skip to content

Instantly share code, notes, and snippets.

@ShawnClake
Last active November 29, 2017 14:51
Show Gist options
  • Save ShawnClake/85a68a78463e8282b695067f03e472cf to your computer and use it in GitHub Desktop.
Save ShawnClake/85a68a78463e8282b695067f03e472cf to your computer and use it in GitHub Desktop.
OpenStack Heat Template - 2i_1n
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
subnet_cidr:
type: string
description: CIDR for this network
resources:
internal_net:
type: OS::Neutron::Net
internal_subnet:
type: OS::Neutron::Subnet
properties:
network_id: { get_resource: internal_net }
cidr: { get_param: subnet_cidr }
ip_version: 4
server1:
type: https://gist.githubusercontent.com/ShawnClake/317cdf8af48d380a13b7098cfe49c240/raw/5be551368d31d24a3050335226ffd875941259c2/openstack-heat-template-1i.yaml
properties:
key_name: { get_param: key_name }
flavor_name: { get_param: flavor_name }
image_name: { get_param: image_name }
networks: { get_resource: internal_net }
server2:
type: https://gist.githubusercontent.com/ShawnClake/317cdf8af48d380a13b7098cfe49c240/raw/5be551368d31d24a3050335226ffd875941259c2/openstack-heat-template-1i.yaml
properties:
key_name: { get_param: key_name }
flavor_name: { get_param: flavor_name }
image_name: { get_param: image_name }
networks: { get_resource: internal_net }
@ShawnClake
Copy link
Author

JSON Template Structure

{
  "template": {
    "network-a": {
      "instance-1": {},
      "instance-2": {}
    }
  }
}

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