Sha256: 784c11f6bc76a6efe54a84a43bde7f4eee4d5e65c37abdf44d46d3ea83dcc9d7
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
dumblog-chef ============ Rudimentary Chef::Handler for go-dumblog to publish failed chef-client runs to AWS CloudWatch Logs. Credit [Brian Bianco](https://github.com/brianbianco) for the [go-dumblog](https://github.com/brianbianco/go-dumblog) utility. ## Usage Ability to customize AWS CloudWatch Logs group, default: '/chef' ### Install `dumblog-chef` gem ```shell gem install dumblog ``` ### Add to client.rb ```ruby ["dumblog-chef"].each do |lib| begin require lib rescue LoadError Chef::Log.warn "Failed to load #{lib}. This should be resolved after a chef run." end end exception_handlers << DumblogChef::Handler.new('/AWS/CLOUDWATCH/LOGS/GROUP') ``` ## Disclaimer It may work for your use-case out-of-the-box, but it's much more likely you'll need to fork it and customize it for your needs. NOTE: This handler was built to solve a pressing issue in a legacy system utilizing Chef. It assumes the use of IAM roles on AWS Instances with proper policies to publish logs to AWS CloudWatch Logs via [go-dumblog](https://github.com/brianbianco/go-dumblog). It makes assumptions and contains only minimal flexibility with the ability to customize the group for AWS CloudWatch Logs.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dumblog-chef-0.3.0 | README.md |
dumblog-chef-0.1.0 | README.md |