
Common OpenStack orchestration tasks
This section outlines a number of common tasks using the OpenStack Orchestration (Heat) service to launch stacks (orchestrated environments using Heat). For more information on Heat and orchestration, refer to Chapter 9, OpenStack Orchestration Using Heat and Ansible.
Getting ready
Ensure that you have the OpenStack clients installed, as described in the first recipes of this chapter.
How to do it…
Carry out the following steps to create and use Heat templates in OpenStack to create orchestrated environments:
To launch a stack from a heat orchestration template (hot), issue the following command:
openstack stack create --template myStack.yml --environment myStack-Env.yml myStack
To destroy a running stack named myStack
, issue the following command:
openstack stack delete myStack
To list the resources in a running stack, issue the following command:
openstack stack resource list
To list the details of a specific resource, for example, named myResource
, issue the following command:
openstack stack resource show myResource