cookbook 'log_rotations', '~> 1.0.0'
log_rotations (2) Versions 1.0.0 Follow2
Rotates logs
cookbook 'log_rotations', '~> 1.0.0', :supermarket
knife supermarket install log_rotations
knife supermarket download log_rotations
LogRotations
This cookbook provides an extremely simple way to create log rotations via
attributes. It depends on the logrotate cookbook. Simple example:
override_attributes( :log_rotations => [ {:name => 'chef-client', :path => '/var/log/chef/client.log'}, {:name => 'nginx', :path => '/var/log/nginx/access.log', :frequency => 'daily'} ] )
Useful keys within the hash:
- name - required
- path - required
- frequency - defaults to 'weekly'
- rotate - defaults to 30
- create - defaults to '644 root root'
Cookbook Info
Repo: https://github.com/hw-cookbooks/log_rotations
IRC: Freenode @ #heavywater
Dependent cookbooks
logrotate >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
1.0.0 passed this metric
Contributing File Metric
1.0.0 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.0 failed this metric
FC064: Ensure issues_url is set in metadata: log_rotations/metadata.rb:1
FC065: Ensure source_url is set in metadata: log_rotations/metadata.rb:1
FC066: Ensure chef_version is set in metadata: log_rotations/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: log_rotations/metadata.rb:1
FC069: Ensure standardized license defined in metadata: log_rotations/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.0 passed this metric
Testing File Metric
1.0.0 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.0 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
1.0.0 passed this metric
1.0.0 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.0 failed this metric
FC064: Ensure issues_url is set in metadata: log_rotations/metadata.rb:1
FC065: Ensure source_url is set in metadata: log_rotations/metadata.rb:1
FC066: Ensure chef_version is set in metadata: log_rotations/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: log_rotations/metadata.rb:1
FC069: Ensure standardized license defined in metadata: log_rotations/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.0 passed this metric
Testing File Metric
1.0.0 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.0 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
1.0.0 failed this metric
FC065: Ensure source_url is set in metadata: log_rotations/metadata.rb:1
FC066: Ensure chef_version is set in metadata: log_rotations/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: log_rotations/metadata.rb:1
FC069: Ensure standardized license defined in metadata: log_rotations/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.0 passed this metric
Testing File Metric
1.0.0 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.0 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
1.0.0 failed this metric
1.0.0 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