Skip to content

Instantly share code, notes, and snippets.

@kisoku
Created June 13, 2012 19:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kisoku/2925977 to your computer and use it in GitHub Desktop.
chef_gem "chef-handler-mail"
gem "chef-handler-mail"
chef_handler "MailHandler" do
source 'chef/handler/mail'
arguments :to_address => "root"
action :nothing
end.run_action(:enable)
@kisoku
Copy link
Author

kisoku commented Jun 13, 2012

[Wed, 13 Jun 2012 12:20:56 -0700] INFO: Loading cookbooks [chef_handler, mail_handler]
[Wed, 13 Jun 2012 12:20:56 -0700] INFO: Chef Handlers will be at: /srv/chef/handlers
[Wed, 13 Jun 2012 12:20:56 -0700] INFO: Processing remote_directory[/srv/chef/handlers] action create (chef_handler::default line 23)
[Wed, 13 Jun 2012 12:20:56 -0700] INFO: Processing cookbook_file[/srv/chef/handlers/README] action create (dynamically defined)
[Wed, 13 Jun 2012 12:20:56 -0700] INFO: Processing chef_gem[chef-handler-mail] action install (mail_handler::default line 22)
[Wed, 13 Jun 2012 12:20:56 -0700] INFO: Processing chef_handler[Chef::Handler::Mail] action enable (mail_handler::default line 24)
[Wed, 13 Jun 2012 12:20:56 -0700] ERROR: Running exception handlers
[Wed, 13 Jun 2012 12:20:56 -0700] FATAL: Saving node information to /srv/chef/file_store/failed-run-data.json
[Wed, 13 Jun 2012 12:20:56 -0700] ERROR: Exception handlers complete
[Wed, 13 Jun 2012 12:20:56 -0700] FATAL: Stacktrace dumped to /srv/chef/file_store/chef-stacktrace.out
[Wed, 13 Jun 2012 12:20:56 -0700] FATAL: LoadError: no such file to load -- chef/handler/mail.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment