Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.

Legacy: Puppet activity: Get Manifests

Log in to subscribe to topics and get notified when content changes.

Legacy: Puppet activity: Get Manifests

The Get Manifests activity retrieves a list of the manifests that are part of the installed modules on a Puppet Master or node.

When successful, the activity stores the manifests as a JavaScript array called puppetManifests. Access this JavaScript array in the sensor script by calling the puppetManifests variable. The activity does not add this variable to the workflow scratchpad.

Each object in the array contains:
  • basename: the name of the manifest file.
  • path: the path where the manifest is installed.
  • content: full textual content of the manifest file.
  • classes: JavaScript array of the classes in the manifest. Each class has these fields:
    • name: name of the class.
    • inherits: name of the class that this class inherits, or blank if the class does not inherit anything.
    • params: JavaScript array of the input parameters this class takes. Each parameter has these fields:
      • name: the parameter's name.
      • defaultValue: the parameter's default value, or blank if there is no default value.
Table 1. Input variables
Field Description
Puppet master The IP address of Puppet Master you want to retrieve manifests from.
Sensor script JavaScript that runs after the command executed by the activity completes. Use this script to process any data returned by the command.