Categories: None [Edit]
chef-rabbit
= DESCRIPTION:
Provides a Chef handler which can report run status, including any changes that were made, to a rabbit server. In the case of failed runs a backtrace will be included in the details reported. Based on the Graylog Gelf handler by Jon Wood (<[email protected]>) https://github.com/jellybob/chef-gelf
= REQUIREMENTS:
* A Rabbit server running somewhere.
= USAGE:
This example makes of the chef_handler cookbook, place some thing like this in cookbooks/chef_handler/recipes/rabbit.rb and add it to your run list.
include_recipe "chef_handler::default"
gem_package "chef-rabbit" do
action :nothing
end.run_action(:install)
# Make sure the newly installed Gem is loaded.
Gem.clear_paths
require 'chef/rabbit'
chef_handler "Chef::RABBIT::Handler" do
source "chef/rabbit"
arguments({
:connection => {
:host => "your_rabbit_server",
:user => "rabbit_user",
:pass => "rabbit_pass",
:vhost => "/stuff"
}
:queue => {
:name => "some_queue",
:params => {
:durable => true,
...
}
},
:exchange => {
:name => "some_exchange",
:params => {
:durable => true,
...
}
},
:timestamp_tag => "@timestamp"
})
supports :exception => true, :report => true
end.run_action(:enable)
Arguments take the form of an options hash, with the following options:
* :connection - http://rubybunny.info/articles/connecting.html
* :queue - rabbit queue info to use. name is set to "chef-client" + durable = true by default
* :exchange - rabbit exchange to use .default_exchange + durable = true by default
* :timestamp_tag - tag for timestamp "timestamp" by default
* :blacklist ({}) - A hash of cookbooks, resources and actions to ignore in the change list.
= BLACKLISTING:
Some resources report themselves as having updated on every run even ...
Total
Ranking: 24,840 of 182,878
Downloads: 51,191
Daily
Ranking: 50,918 of 182,869
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|
Depends on
Rank | Downloads | Name |
---|---|---|
701 | 60,237,518 | bunny |
708 | 59,673,296 | amq-protocol |
1,305 | 24,860,430 | chef |
Owners
# | Gravatar | Handle |
---|---|---|
1 | mtn_randruscavage | |
2 | breakyboy |