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

logrotate (50) Versions 0.8.2

Installs logrotate package and provides a resource for managing logrotate configs

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

DESCRIPTION

Manages the logrotate package and provides a definition to manage application specific logrotate configuration.

REQUIREMENTS

Should work on any platform that includes a 'logrotate' package and writes logrotate configuration to /etc/logrotate.d. Tested on Ubuntu, Debian and Red Hat/CentOS.

DEFINITIONS

  • logrotate_app

This definition can be used to drop off customized logrotate config files on a per application basis.

The definition takes the following params:

  • path: specifies a single path (string) or multiple paths (array) that should have logrotation stanzas created in the config file. No default, this must be specified.
  • enable: true/false, if true it will create the template in /etc/logrotate.d.
  • frequency: sets the frequency for rotation. Default value is 'weekly'. Valid values are: daily, weekly, monthly, yearly, see the logrotate man page for more information.
  • template: sets the template source, default is "logrotate.erb".
  • cookbook: select the template source from the specified cookbook. By default it will use the cookbook where the definition is used.
  • create: creation parameters for the logrotate "create" config, follows the form "mode owner group".

See USAGE below.

USAGE

The default recipe will ensure logrotate is always up to date.

To create application specific logrotate configs, use the logrotate_app definition. For example, to rotate logs for a tomcat application named myapp that writes its log file to /var/log/tomcat/myapp.log:

logrotate_app "tomcat-myapp" do
  cookbook "logrotate"
  path "/var/log/tomcat/myapp.log"
  frequency "daily"
  rotate 30
  create "644 root adm"
end

To rotate multiple logfile paths, specify the path as an array:

logrotate_app "tomcat-myapp" do
  cookbook "logrotate"
  path [ "/var/log/tomcat/myapp.log", "/opt/local/tomcat/catalina.out" ]
  frequency "daily"
  create "644 root adm"
  rotate 7
end

LICENSE AND AUTHOR

Author:: Scott M. Likens (scott@likens.us)
Author:: Joshua Timberman (joshua@opscode.com)
Copyright:: 2009, Scott M. Likens
Copyright:: 2011, Opscode, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

apache2 Applicable Versions
apache_spark Applicable Versions
apache_spark_ng Applicable Versions
application_ruby Applicable Versions
askbot Applicable Versions
atop Applicable Versions
autopatch_ii Applicable Versions
baragon Applicable Versions
baseserver Applicable Versions
bd_nxlog Applicable Versions
cerner_kafka Applicable Versions
cerner_tomcat Applicable Versions
chef-client Applicable Versions
chef-client 3.1.0
chef-client 3.1.2
chef-client 3.2.0
chef-client 3.2.2
chef-client 3.3.0
chef-client 3.3.2
chef-client 3.3.3
chef-client 3.3.4
chef-client 3.3.6
chef-client 3.3.8
chef-client 3.4.0
chef-client 3.5.0
chef-client 3.5.2
chef-client 3.6.0
chef-client 3.7.0
chef-client 3.8.0
chef-client 3.8.1
chef-client 3.8.2
chef-client 3.9.0
chef-client 4.0.0
chef-client 4.1.0
chef-client 4.1.1
chef-client 4.2.0
chef-client 4.2.1
chef-client 4.2.2
chef-client 4.2.3
chef-client 4.2.4
chef-client 4.3.0
chef-client 4.3.1
chef-client 4.3.2
chef-client 4.3.3
chef-client 4.4.0
chef-client 4.5.0
chef-client 4.5.1
chef-client 4.5.2
chef-client 4.5.3
chef-client 4.5.4
chef-client 4.6.0
chef-client 5.0.0
chef-client 6.0.0
chef-client 7.0.0
chef-client 7.0.1
chef-client 7.0.2
chef-client 7.0.3
chef-client 7.1.0
chef-client 7.2.0
chef-client 7.2.1
chef-client 8.0.0
chef-client 8.0.1
chef-client 8.0.2
chef-client 8.1.0
chef-client 8.1.1
chef-client 8.1.2
chef-client 8.1.3
chef-client 8.1.4
chef-client 8.1.5
chef-client 8.1.6
chef-client 8.1.7
chef-client 8.1.8
chef-client 9.0.0
chef-client 9.0.1
chef-client 9.0.2
chef-client 9.0.3
chef-client 9.0.4
chef-client 9.0.5
chef-client 10.0.0
chef-client 10.0.1
chef-client 10.0.2
chef-client 10.0.3
chef-client 10.0.4
chef-client 10.0.5
chef-client 10.1.0
chef-client 10.1.2
chef-client 11.0.0
chef-client 11.0.1
chef-client 11.0.2
chef-client 11.0.3
chef-client 11.0.4
chef-client 11.0.5
chef-client 11.1.0
chef-client 11.1.1
chef-client 11.1.2
chef-client 11.1.3
chef-client 11.2.0
chef-client 11.3.0
chef-client 11.3.1
chef-client 11.3.2
chef-client 11.3.3
chef-client 11.3.4
chef-client 11.3.5
chef-client 11.3.6
chef-client 11.4.0
chef-client 11.5.0
chef-client 12.0.0
chef-client 12.0.1
chef-client 12.1.0
chef-client 12.2.0
chef-client 12.3.0
chef-client 12.3.1
chef-client 12.3.2
chef-client 12.3.3
chef-client 12.3.4
chef_changereport_handler Applicable Versions
clamav Applicable Versions
cloudfoundry Applicable Versions
cloudfoundry_service Applicable Versions
common_linux Applicable Versions
cyclesafe_chef Applicable Versions
elk_forwarder Applicable Versions
errbit-server Applicable Versions
et_haproxy Applicable Versions
flapjack Applicable Versions
github_connector Applicable Versions
gitlab Applicable Versions
gitlab-shell Applicable Versions
guardian Applicable Versions
ice Applicable Versions
jmxtrans Applicable Versions
librenms Applicable Versions
librenms-ng Applicable Versions
log_rotations Applicable Versions
logstash Applicable Versions
lxd Applicable Versions
magento-ng Applicable Versions
magentostack Applicable Versions
mercury Applicable Versions
mineos Applicable Versions
mysql_logrotate Applicable Versions
mysqler Applicable Versions
ngx Applicable Versions
nodestack Applicable Versions
noosfero Applicable Versions
openresty Applicable Versions
opsworks_ruby Applicable Versions
piwik Applicable Versions
puma Applicable Versions
rabbitmq Applicable Versions
rubycas Applicable Versions
rundeck-alt Applicable Versions
serf Applicable Versions
simple_passenger Applicable Versions
singularity Applicable Versions
sinopia Applicable Versions
ssm_agent Applicable Versions
stegosoc Applicable Versions
stig Applicable Versions
storj Applicable Versions
sturdy_ssm_agent Applicable Versions
verdaccio Applicable Versions
yumrepo_server Applicable Versions
zabbix-ruby-client Applicable Versions
zf2 Applicable Versions

No quality metric results found