官术网_书友最值得收藏!

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:

Launch a stack from a template and environment file

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

Listing stacks

To list the running stacks, issue the following command:

openstack stack list

Deleting a running stack

To destroy a running stack named myStack, issue the following command:

openstack stack delete myStack

Listing resources in a stack

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

Viewing the outputs of a running Stack

To view the outputs produced by the Stack, issue the following command:

openstack stack output list

To view the details of the specific output, carry out the following command:

openstack stack output show myOutput
主站蜘蛛池模板: 巴南区| 芮城县| 罗源县| 布拖县| 石渠县| 饶河县| 阜新| 韶山市| 西林县| 新乐市| 舟山市| 屏南县| 安顺市| 呼伦贝尔市| 亳州市| 承德市| 定日县| 柘荣县| 沅陵县| 尉氏县| 海阳市| 抚远县| 酉阳| 讷河市| 垦利县| 蓬安县| 北碚区| 沾益县| 南丹县| 绥宁县| 靖江市| 新沂市| 类乌齐县| 台北县| 天柱县| 新化县| 津市市| 曲阳县| 新巴尔虎左旗| 洛川县| 乳山市|