cookbook 'chef-sar', '~> 0.0.1'
chef-sar (1) Versions 0.0.1 Follow2
Installs/Configures sar
cookbook 'chef-sar', '~> 0.0.1', :supermarket
knife supermarket install chef-sar
knife supermarket download chef-sar
sar
Description
This cookbook installs sysstat, enables it and allows you to configure the frequency at which it collects statistics.
Attributes
node['sar']['enabled'] - If sysstat logging is enabled (Default: true)
node['sar']['sa1_options'] - Configure sa1_options for systat config (Default: '-S DISK')
node['sar']['sa2_options'] - Configure sa2_options for systat config (Default: '')
node['sar']['cron']['run_every_minutes'] - Sets time between statistic collection cron job (Default: 2)
Usage
Clone cookbook repository as sar
Somewhere in your recipe, include the sar recipe and add it as a dependency in your metadata.rb
metadata.rb
depends 'chef-sar'
your_recipe.rb
include_recipe 'chef-sar'
Platforms
This has been tested on Ubuntu but should work on Debian like systems and maybe others. If there is a need for this on another system, I'd be glad to implemenet functionality for this.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.0.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.0.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
Foodcritic Metric
0.0.1 failed this metric
FC053: Metadata uses the deprecated "recommends" keyword: chef-sar/metadata.rb:14
FC064: Ensure issues_url is set in metadata: chef-sar/metadata.rb:1
FC065: Ensure source_url is set in metadata: chef-sar/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef-sar/metadata.rb:1
FC069: Ensure standardized license defined in metadata: chef-sar/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.1 passed this metric
Testing File Metric
0.0.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
Version Tag Metric
0.0.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.0.1 failed this metric
0.0.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
Foodcritic Metric
0.0.1 failed this metric
FC053: Metadata uses the deprecated "recommends" keyword: chef-sar/metadata.rb:14
FC064: Ensure issues_url is set in metadata: chef-sar/metadata.rb:1
FC065: Ensure source_url is set in metadata: chef-sar/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef-sar/metadata.rb:1
FC069: Ensure standardized license defined in metadata: chef-sar/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.1 passed this metric
Testing File Metric
0.0.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
Version Tag Metric
0.0.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.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: chef-sar/metadata.rb:1
FC065: Ensure source_url is set in metadata: chef-sar/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef-sar/metadata.rb:1
FC069: Ensure standardized license defined in metadata: chef-sar/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.0.1 passed this metric
Testing File Metric
0.0.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
Version Tag Metric
0.0.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.0.1 failed this metric
0.0.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