Skip to main content

sendToPuppet

A Workflow Engine function that sends an automation request to Puppet.

This function relates directly to configurations from your Puppet integration.

sendToPuppet requires a setPuppetAutomation function that precedes it in your workflow.

This function is typically the last action in your workflow. After this action completes you can forward your alert or Situation data to another workflow. For example, if you want to send alert data to another automation tool.

This function is available as a feature of the Add-ons v1.3 download and later.

This function is only available for automation alert and automation Situation workflows.

Back to Workflow Engine Functions Reference.

Arguments

Workflow Engine function sendToPuppet has no arguments.

Example

The following example demonstrates typical use of Workflow Engine function sendToPuppet. It assumes you have set up and configured the following:

  • A Puppet integration with the name "Puppet1".

  • A setPuppetAutomation function where you have defined the automation solution, instance, and payload. You must configure these before you invoke sendToPuppet in your workflow.

Set the following:

  • Forwarding Behavior: Always Forward.

If the request is successful, the function sets the alert or Situation's custom info status field to Pending. Otherwise, it sets to Failed. Automation results from the Puppet automation tool send back through either a Moolet Informs module or direct update to custom info. See Puppet for more information.