Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

logadm (2) Versions 0.2.0

Installs/Configures logadm

Policyfile
Berkshelf
Knife
cookbook 'logadm', '~> 0.2.0', :supermarket
cookbook 'logadm', '~> 0.2.0'
knife supermarket install logadm
knife supermarket download logadm
README
Dependencies
Quality 33%

Logadm Cookbook

Provides a logadm resource to create/delete cron jobs for log rotation
and management.

Requirements

Chef version 0.10.10+.

Platform

  • SmartOS (presumably other SunOS)

Resources/Providers

logadm

Manage logadm.

Actions

  • :create: create a named log entry
  • :delete: delete a named log entry

Attribute Parameters

  • :name: name attribute. Name of the log to set logadm rules to manage
  • :manual_command: override all settings with one-liner command
  • :path: path to log
  • :count: number of
  • :size: size is number followed by bytes...kilobytes...etc
  • :period: time period to rotate logs
  • :copy: copy and truncate
  • :template: template for naming of logs
  • :gzip: specify count of which log to start compressing ( default 1 )

Providers

  • Chef::Provider::Logadm: shortcut resource logadm

Usage

Examples

# create a logadm entry
logadm "chef-client" do
  path "/var/log/chef/client.log"
  copy true
  size "1b"
  period "7d"
  action :create  
end

# nginx -C 5 -c -s 100m '/var/log/nginx/{access,error}.log'
logadm "nginx" do
  path "/var/log/nginx/{localhost.access,error}.log"
  copy true
  size "100m"
  count 5
  gzip 1
  action :create    
end

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.2.0 passed this metric

Contributing File Metric
            

0.2.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
            

0.2.0 failed this metric

FC064: Ensure issues_url is set in metadata: logadm/metadata.rb:1
FC065: Ensure source_url is set in metadata: logadm/metadata.rb:1
FC066: Ensure chef_version is set in metadata: logadm/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: logadm/providers/default.rb:46
FC085: Resource using new_resource.updated_by_last_action to converge resource: logadm/providers/default.rb:61
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.2.0 passed this metric

Testing File Metric
            

0.2.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
            

0.2.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