Contents

Puppet Campfire

Contents

Our second report processor of the week notifies a Campfire room when a Puppet run fails. It also pastes in the log output from that run into your Campfire room - defaulting to the first room in your lobby. It’s easy to install and configure.

Firstly, it requires the tinder gem to be installed on your Puppet master:

$ sudo gem install tinder

You can then install puppet-campfire as a module in your Puppet master’s modulepath.

Update the domain and token variables in the /etc/puppet/campfire.yaml with your Campfire subdomain, for example puppetlabs, and your Campfire token. An example file is included. Then enable pluginsync and reports on your master and clients in puppet.conf including specifying the campfire report.

[master]
report = true
reports = campfire
pluginsync = true
[agent]
report = true
pluginsync = true

Finally, run the Puppet client and sync the report as a plugin and hey presto you’re logging failures to Campfire.

/images/posts/2011/05/campfire_notification-300x89.png