update notifier to V3
Update nova-notifier,mistral-notifier to Syntax 3 to replace Syntax 2 Change-Id: I74e51ca8ea8913a22cea3b0d6bec2afc80002c98
This commit is contained in:
@@ -15,7 +15,7 @@ To enable Mistral workflow execution, add mistral to the list of notifiers in
|
|||||||
.. code::
|
.. code::
|
||||||
|
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
notifiers = nova,mistral
|
notifiers = mistral
|
||||||
|
|
||||||
|
|
||||||
Add execute_mistral action
|
Add execute_mistral action
|
||||||
@@ -26,11 +26,10 @@ To execute a Mistral workflow under a certain condition, add an
|
|||||||
|
|
||||||
.. code:: yaml
|
.. code:: yaml
|
||||||
|
|
||||||
- scenario:
|
scenarios:
|
||||||
condition: host_down_alarm_on_host
|
- condition: host_down_alarm [on] host
|
||||||
actions:
|
actions:
|
||||||
action:
|
- execute_mistral:
|
||||||
action_type: execute_mistral
|
|
||||||
properties:
|
|
||||||
workflow: evacuate_host # mandatory. The name of the workflow to be executed
|
workflow: evacuate_host # mandatory. The name of the workflow to be executed
|
||||||
hostname: host1 # optional. A list of properties to be passed to the workflow
|
input:
|
||||||
|
host_name: host1 # optional. A list of properties to be passed to the workflow
|
||||||
|
@@ -32,15 +32,11 @@ In order to support this use case, the user should perform the following:
|
|||||||
.. code:: yaml
|
.. code:: yaml
|
||||||
|
|
||||||
scenarios:
|
scenarios:
|
||||||
- scenario:
|
- condition: host_down_alarm [on] host
|
||||||
condition: host_down_alarm_on_host
|
|
||||||
actions:
|
actions:
|
||||||
action:
|
- mark_down:
|
||||||
action_type : mark_down
|
|
||||||
action_target:
|
|
||||||
target: host
|
target: host
|
||||||
|
|
||||||
|
|
||||||
For more information about the mark-down action, see the Vitrage templates
|
For more information about the mark-down action, see the Vitrage templates
|
||||||
documentation: templates_
|
documentation: templates_
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user