cookbook 'syslog_handler', '~> 0.1.8'
syslog_handler (4) Versions 0.1.8 Follow1
Installs/Configures syslog_handler
cookbook 'syslog_handler', '~> 0.1.8', :supermarket
knife supermarket install syslog_handler
knife supermarket download syslog_handler
syslog_handler Cookbook
Report and Error handler for Opscode Chef to log the basic essential information.
Example output from an example syslog log file:
Aug 2 17:04:05 web33-x9 chef[13072]: status=success total_resources=171 updated_resources=6 elapsed_time=117.646907
Based roughly on the graphite_handler
code from Ian Meyer, Peter Donald, et al.
Requirements
As usual for handlers, the chef_handler cookbook is mandatory (it must be able to be referenced, so in the Chef Server case, it must be uploaded to the server).
Attributes
['chef_client']['handler']['syslog']['identity']
: Syslog lines show as this identity. Type: String. Defaut:'chef'
.['chef_client']['handler']['syslog']['facility']
: Syslog under this syslog facility. Type: Ruby variable (constant fromSyslog::Constants
). Default:Syslog::LOG_DAEMON
['chef_client']['handler']['syslog']['fail_priority']
: Syslog as this priority on Chef run failure. Type: Ruby variable (constant fromSyslog::Constants
). Default:Syslog::LOG_ERR
['chef_client']['handler']['syslog']['success_priority']
: Syslog as this priority on Chef run success. Type: Ruby variable (constant fromSyslog::Constants
). Default:Syslog::LOG_INFO
Usage
Just include syslog_handler
very early (if not first) in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[syslog_handler]" ] }
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Submit a Pull Request using Github
License and Authors
The MIT License (MIT)
Copyright (c) 2013-2014 Charles J Blaine
Contributions by: Sergio Rodriguez, "laistu" on GitHub, Olivier Bazoud
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Dependent cookbooks
chef_handler >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
CHANGELOG for syslog_handler
This file is used to list changes made in each version of syslog_handler.
0.1.8:
- Don't require the syslog module on Windows
0.1.5:
- Syslog exception info when there's a failure
- Log exception info when there's a Syslog failure
0.1.4:
- There was no 0.1.4 really
0.1.3:
- Use 'action :nothing' for the resource declaration in the default recipe so as to not trigger the resource enabling twice. It happens already as part of the end.run_action()
0.1.2:
- Added 'supports' and 'depends' data to metadata.rb
0.1.1:
- Typo in syslog priority variable
0.1.0:
- Initial release of syslog_handler
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
0.1.8 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.8 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
0.1.8 failed this metric
FC064: Ensure issues_url is set in metadata: syslog_handler/metadata.rb:1
FC065: Ensure source_url is set in metadata: syslog_handler/metadata.rb:1
FC066: Ensure chef_version is set in metadata: syslog_handler/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: syslog_handler/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.8 passed this metric
Testing File Metric
0.1.8 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
0.1.8 passed this metric
0.1.8 failed this metric
0.1.8 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
0.1.8 failed this metric
FC064: Ensure issues_url is set in metadata: syslog_handler/metadata.rb:1
FC065: Ensure source_url is set in metadata: syslog_handler/metadata.rb:1
FC066: Ensure chef_version is set in metadata: syslog_handler/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: syslog_handler/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.8 passed this metric
Testing File Metric
0.1.8 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
0.1.8 passed this metric
0.1.8 failed this metric
FC065: Ensure source_url is set in metadata: syslog_handler/metadata.rb:1
FC066: Ensure chef_version is set in metadata: syslog_handler/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: syslog_handler/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.8 passed this metric
Testing File Metric
0.1.8 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
0.1.8 passed this metric
0.1.8 failed this metric
0.1.8 passed this metric