vitrage/doc/source/contributor/mistral-config.rst
Q.hongtao b7d3821c7d update notifier to V3
Update nova-notifier,mistral-notifier to Syntax 3 to replace Syntax 2
Change-Id: I74e51ca8ea8913a22cea3b0d6bec2afc80002c98
2020-08-22 11:12:12 +08:00

36 lines
942 B
ReStructuredText

=====================
Mistral Configuration
=====================
Vitrage can be configured to execute Mistral (the OpenStack Workflow service)
workflows based on certain topology or alarm conditions.
Enable Mistral Workflow Execution
---------------------------------
To enable Mistral workflow execution, add mistral to the list of notifiers in
/etc/vitrage/vitrage.conf file:
.. code::
[DEFAULT]
notifiers = mistral
Add execute_mistral action
--------------------------
To execute a Mistral workflow under a certain condition, add an
'execute_mistral' action to a template file:
.. code:: yaml
scenarios:
- condition: host_down_alarm [on] host
actions:
- execute_mistral:
workflow: evacuate_host # mandatory. The name of the workflow to be executed
input:
host_name: host1 # optional. A list of properties to be passed to the workflow