An exception handler for OpsCode Chef runs (GitHub Gists & IRC)
Ruby
Pull request Compare This branch is 31 commits behind portertech:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
MIT-LICENSE.txt
README.org
Rakefile
chef-irc-snitch.gemspec

README.org

Install

gem install chef-irc-snitch

Usage

Configure Chef to Use The Handler

Append the following to your Chef client configs (‘/etc/chef/client.rb’)

# Notify admins via IRC when a Chef run fails
require 'chef-irc-snitch'

irc_uri = "irc://nick:password@irc.domain.com:6667/#admins"
github_user = "foobar"
github_token = "asKkwqofovX3shBmtMf8EWhDzSr7ouUb"
enable_ssl = true

irc_handler = IRCSnitch.new(irc_uri, github_user, github_token, enable_ssl)
exception_handlers << irc_handler

License

Chef-IRC-Snitch is released under the MIT license.