Home

Awesome

chef-handler-updated-resources

Chef report handler to display resources updated in the Chef Run.

Installation

This report handler should be installed into the Ruby environment used by Chef. This can be done with /opt/chef/embedded/bin/gem or c:\opscode\embedded\bin\gem. Or, it can be installed using the chef_gem resource.

Usage

Configure /etc/chef/client.rb or other config file:

require 'chef/handler/updated_resources'
report_handlers << SimpleReport::UpdatedResources.new

Optionally, pass an argument specifying a prefix for updated resource messages. The default is ' ' (two spaces). This may make it easier to grep for updated resources, depending on your tooling.

require 'chef/handler/updated_resources'
report_handlers << SimpleReport::UpdatedResources.new('GREPME')

Or, use the chef_handler cookbook.

chef_gem 'chef-handler-updated-resources' do
  compile_time true
end

chef_handler 'SimpleReport::UpdatedResources' do
  source 'chef/handler/updated_resources'
  action :enable
end

License and Author