Is there a way to stop Heat before adding or deleting resources?
Hi, I want to stop Heat before adding or deleting resources is there a way to do it and how?
First time here? Check out the FAQ!
Hi, I want to stop Heat before adding or deleting resources is there a way to do it and how?
You can add pre-create and pre-delete hooks on resources. These are specified in the resource_registry
section of an environment file, like so:
resource_registry:
resources:
my_server:
hooks: pre-delete
my_database:
hooks: [pre-create, pre-delete]
Wildcards in resource names are allowed.
When Heat reaches the resource to create/delete it, it will pause until you use the openstack stack hook clear
command to prompt Heat to continue (or until the stack times out). You can determine when Heat is paused at a hook using the openstack stack hook poll
command, or configure notifications on a Zaqar queue.
Asked: 2017-02-27 03:32:08 -0600
Seen: 529 times
Last updated: Feb 27 '17