skip to content
james@kartar:~/2011/05/puppet-campfire

Puppet Campfire

Releasing the second report processor of the week, this one notifies a Campfire room when a Puppet run fails and pastes in the log output

1 min read

# written 15 years ago; commands, versions and links may have changed

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.

Campfire Notification

$ whoami

I'm James Turnbull. I lead engineering teams, build products, and write on technology. More about me.