Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Puppet activity: Get Modules

Puppet activity: Get Modules

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

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

Each object in the array contains these fields:
  • name: the name of the installed module.
  • path: the path where the module is installed.
Table 1. Input variables
Field Description
Puppet master The IP address of the Puppet Master that contains the module you want to retrieve.
Sensor script JavaScript that runs after the command executed by the activity completes. You can use this script to process any data returned by the command.

This site is scheduled for a small content update on Tuesday, December 18th, between the hours of 4:00pm and 8:00pm Pacific Time (Dec 19 00:00 – Dec 19 4:00 UTC). Access to this site may be slightly delayed during that time.