To use Heat to orchestrate multiple composite cloud applications on your OpenStack configuration, you need to define a Heat Orchestration Template (HOT). A HOT template contains specifications that you must fill out. The parameters you provide are read when you run the process to create resource types and other advanced functionality.
For the HOT template specifications and their descriptions, see http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#hot-spec.
For information about how to write a HOT template, see http://docs.openstack.org/developer/heat/template_guide/hot_guide.html#hot-guide.
To deploy a HOT template, use the following command:
# heat stack-create -f template
where template includes the full path of the template's location.
The following example shows the contents of a HOT template named stack3 which creates three private networks with subnets.
heat_template_version: 2013-05-23
description: Create a few networks.
resources:
heat_net1:
type:OS::Neutron::Net
properties:
name:heat_net1
heat_subnet1:
type:OS::Neutron::Subnet
properties:
name:heat_subnet1
network_id: { get_resource: heat_net1 }
cidr: 192.168.50.0/24
heat_net2:
type:OS::Neutron::Net
properties:
name: heat_net2
heat_subnet2:
type:OS::Neutron::Subnet
properties:
name:heat_subnet2
network_id: { get_resource: heat_net2 }
cidr: 192.168.51.0/24
heat_net3:
type:OS::Neutron::Net
properties:
name: heat_net3
heat_subnet3:
type:OS::Neutron::Subnet
properties:
name:heat_subnet3
network_id: { get_resource: heat_net3 }
cidr: 192.168.52.0/24