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

Installs/Configures logadm

Policyfile
Berkshelf
Knife
cookbook 'logadm', '= 0.1.1', :supermarket
cookbook 'logadm', '= 0.1.1'
knife supermarket install logadm
knife supermarket download logadm
README
Dependencies
Quality -%

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.

No quality metric results found