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

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
主站蜘蛛池模板: 普安县| 西昌市| 东阳市| 万荣县| 普兰县| 通道| 彩票| 兰坪| 泊头市| 泊头市| 青河县| 皋兰县| 井陉县| 肇州县| 万全县| 曲水县| 新安县| 瑞安市| 海宁市| 于田县| 怀集县| 垫江县| 南昌县| 开原市| 舟曲县| 来凤县| 吉木萨尔县| 务川| 枝江市| 华阴市| 绥化市| 赣州市| 乃东县| 左云县| 揭阳市| 个旧市| 宜宾县| 同仁县| 阿巴嘎旗| 彭山县| 汽车|