diff --git a/doc/source/contributor/mistral-config.rst b/doc/source/contributor/mistral-config.rst index 0f1d616ce..5dfc4ec24 100644 --- a/doc/source/contributor/mistral-config.rst +++ b/doc/source/contributor/mistral-config.rst @@ -15,7 +15,7 @@ To enable Mistral workflow execution, add mistral to the list of notifiers in .. code:: [DEFAULT] - notifiers = nova,mistral + notifiers = mistral Add execute_mistral action @@ -26,11 +26,10 @@ To execute a Mistral workflow under a certain condition, add an .. code:: yaml - - scenario: - condition: host_down_alarm_on_host + scenarios: + - condition: host_down_alarm [on] host actions: - action: - action_type: execute_mistral - properties: - 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 + - 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 diff --git a/doc/source/contributor/nova-notifier.rst b/doc/source/contributor/nova-notifier.rst index 8349dd799..a2eec1595 100644 --- a/doc/source/contributor/nova-notifier.rst +++ b/doc/source/contributor/nova-notifier.rst @@ -23,23 +23,19 @@ In order to support this use case, the user should perform the following: .. code:: yaml - [DEFAULT] - notifiers = nova + [DEFAULT] + notifiers = nova 2. Determine, in the Vitrage templates, what condition(s) indicates that the host is down. For example: .. code:: yaml - scenarios: - - scenario: - condition: host_down_alarm_on_host - actions: - action: - action_type : mark_down - action_target: - target: host - + scenarios: + - condition: host_down_alarm [on] host + actions: + - mark_down: + target: host For more information about the mark-down action, see the Vitrage templates documentation: templates_