cookbook 'chef-client_syslog', '~> 0.1.1'
chef-client_syslog (2) Versions 0.1.1 Follow6
chef-client log to syslog
cookbook 'chef-client_syslog', '~> 0.1.1', :supermarket
knife supermarket install chef-client_syslog
knife supermarket download chef-client_syslog
chef-client_syslog cookbook
Send chef-client log to syslog.
reference from: https://gist.github.com/3616423
Requirements
chef-client cookbook
syslog-logger gem (will be installed)
Usage
add run_list recipe[chef-client_syslog::default]
Suggegsions
Use with cookbook[monit_bin]
Add monitoring setting for monit like below.
<pre><code> "monit": {
"process": {
"targets": {
"chef-client": {
"type": "pid",
"pidfile": "/var/run/chef-client.pid",
"start_program": "/usr/bin/chef-client -d -i 1800 -s 300 -l warn -P /var/run/chef-client.pid",
"stop_program": "/bin/bash -c '/bin/kill cat /var/run/chef-client.pid
'",
"policies": [
"if 2 restarts within 3 cycles then timeout"
]
}
}
}
} </code></pre>
chef-client daemon is watched by monit and controled under monit.
monit start/stop chef-client
Attributes
- default['chef_client']['log']['syslog_facility'] = '::Syslog::LOG_DAEMON'
The syslog facility to log to
- default['chef_client']['log']['syslog_progname'] = 'chef-client'
The program name reported to syslog
Recipes
- default
Author
Author:: HiganWorks LLC (sawanoboriyu@higanworks.com)
Dependent cookbooks
chef-client >= 3.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
0.1.1 failed this metric
Contributing File Metric
0.1.1 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
0.1.1 failed this metric
Foodcritic Metric
0.1.1 failed this metric
FC064: Ensure issues_url is set in metadata: chef-client_syslog/metadata.rb:1
FC065: Ensure source_url is set in metadata: chef-client_syslog/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef-client_syslog/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: chef-client_syslog/metadata.rb:1
FC104: Use the :run action in ruby_block instead of :create: chef-client_syslog/recipes/default.rb:40
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.1 failed this metric
FC065: Ensure source_url is set in metadata: chef-client_syslog/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef-client_syslog/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: chef-client_syslog/metadata.rb:1
FC104: Use the :run action in ruby_block instead of :create: chef-client_syslog/recipes/default.rb:40
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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
0.1.1 failed this metric
Version Tag Metric
0.1.1 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
0.1.1 failed this metric