[heat-api-cfn heat-engine python-heat-client]. Es un servicio para orquestar múltiples aplicaciones compuestas en la nube mediante plantillas, a través de una API ReST nativa de OpenStack y una API de consulta compatible con CloudFormation.
Ejemplo sencillo de una plantilla
$ nano mi_plantilla.yaml
heat_template_version: 2018-03-02
description: Simple template to deploy a single instance
parameters:
key_name:
type: string
description: Name of key-pair to be used for compute instance
image_id:
type: string
description: Image to be used for compute instance
instance_type:
type: string
description: Type of instance (flavor) to be used
network_name:
type: string
description: The network to be used
resources:
my_instance:
type: OS::Nova::Server
properties:
key_name: { get_param: key_name }
image: { get_param: image_id }
flavor: { get_param: instance_type }
networks:
- network: { get_param: network_name }
# service heat-api restart
Estas acciones se comunican con el servicio heat-api, que a su vez se coordina con el motor de orquestación para realizar las operaciones solicitadas.
$ openstack stack create -t mi_plantilla.yaml --parameter key_name=mi_llave --parameter image_id=mi_imagen --parameter instance_type=m1.small --parameter network_name=mi_red mi_stack
$ openstack stack list
$ openstack stack show mi_stack