Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

gelf_handler (5) Versions 1.0.6

Installs/Configures a Chef handler which reports run failures and to a GELF server. Derived from Jon Woods gem.

Policyfile
Berkshelf
Knife
cookbook 'gelf_handler', '~> 1.0.6', :supermarket
cookbook 'gelf_handler', '~> 1.0.6'
knife supermarket install gelf_handler
knife supermarket download gelf_handler
README
Dependencies
Quality 17%

Description

Build Status

A cookbook that a handler that sends chef run results to a GELF server such as
Logstash or Graylog. If you have the ohai-system_pacakges
plugin installed, it will also send package statistics.

Requirements

The chef_handler cookbook.

Attributes

This cookbook uses the following attributes to configure how it is installed.

  • node['chef_client']['handler']['gelf']['host'] - The gelf server host. Defaults to nil.
  • node['chef_client']['handler']['gelf']['port'] - The gelf server port. Defaults to 12201.
  • node['chef_client']['handler']['gelf']['facility'] - The facility under which to report. Defaults to 'chef-client'.
  • node['chef_client']['handler']['gelf']['report_host'] - The host to report messages as coming from. Defaults to node['fqdn'].
  • node['chef_client']['handler']['gelf']['blacklist'] - A hash of cookbooks, resources and actions to ignore in the change list.. Defaults to {}.

Usage

Set the host and port properties on the node and include the "gelf_handler::default" recipe.

Blacklisting

Some resources report themselves as having updated on every run even if nothing changed, or
are just things you don't care about. To reduce the amount of noise in your logs these can be
ignored by providing a blacklist. In this example we don't want to be told about the GELF handler
being activated:

node['chef_client']['handler']['gelf']['blacklist'] =
{"chef_handler" => {"chef_handler" => [ "nothing", "enable" ]}

Credits

The handler was originally written by Jon Wood and was converted to a cookbook by Peter Donald.

Dependent cookbooks

chef_handler >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

1.0.6 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.0.6 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

1.0.6 failed this metric

FC052: Metadata uses the deprecated "suggests" keyword: gelf_handler/metadata.rb:10
FC064: Ensure issues_url is set in metadata: gelf_handler/metadata.rb:1
FC065: Ensure source_url is set in metadata: gelf_handler/metadata.rb:1
FC066: Ensure chef_version is set in metadata: gelf_handler/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: gelf_handler/metadata.rb:1
FC069: Ensure standardized license defined in metadata: gelf_handler/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: gelf_handler/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

1.0.6 passed this metric

Testing File Metric
            

1.0.6 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.0.6 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number