Puppet and OpsGenie

James Turnbull bio photo By James Turnbull Comment

I’ve written a report processor for sending notifications of failed runs to Opsgenie. You can find the module on the Forge and the code on GitHub.

Like most of my report processors the instructions are fairly simple:

  1. Install puppet-opsgenie as a module in your Puppet master’s module path.

  2. Update the key and recipients variables in the opsgenie.yaml file with your customer API key and the recipients for any alerts.

  3. Enable pluginsync and reports on your master and clients in puppet.conf

    [master]
    report = true
    reports = opsgenie
    pluginsync = true
    [agent]
    report = true
    pluginsync = true
    
  4. Run the Puppet client and sync the report as a plugin