Continuing in our ‘week ‘o report processors’ is a Puppet PagerDuty report processor. Puppet PagerDuty sends an alert to the highly cool PagerDuty service notifying of failed Puppet runs with the name of the host that failed and the date. All log entries for your Puppet run are also passed to PagerDuty as part of the API call. The PagerDuty report processor is easy to install:
jsongems on your Puppet master
$ sudo gem install rest-client json
Install puppet-pagerduty as a module in your Puppet master’s module path.
pagerduty_apivariable in a file called
/etc/puppet/pagerduty.yamlfile with the PagerDuty API key for your Puppet service. An example file is included. You will also need to create a Puppet specific service that uses the Generic API in PagerDuty.
Enable pluginsync and reports on your master and clients in
[master] report = true reports = pagerduty pluginsync = true [agent] report = true pluginsync = true
Run the Puppet client and sync the report as a plugin And you’re off with Puppet and PagerDuty integration!