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 (48) Versions 3.0.12

Installs logrotate package and provides a resource for managing logrotate configs

Policyfile
Berkshelf
Knife
cookbook 'logrotate', '= 3.0.12', :supermarket
cookbook 'logrotate', '= 3.0.12'
knife supermarket install logrotate
knife supermarket download logrotate
README
Dependencies
Changelog
Quality 50%

logrotate Cookbook

Cookbook Version
CI State
OpenCollective
OpenCollective
License

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

Maintainers

This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.

Requirements

Platforms

Should work on any platform that includes a 'logrotate' package and writes logrotate configuration to /etc/logrotate.d.

Tested on:

  • Ubuntu / Debian
  • CentOS
  • Amazon Linux
  • openSUSE Leap

Chef

  • Chef 12.5+

Resources

  • [logrotate_app](documentation/logrotate_app.md)
  • [logrotate_global](documentation/logrotate_global.md)
  • [logrotate_package](documentation/logrotate_package.md)

Usage

The package resource will ensure logrotate is always up to date by default.

To create application specific logrotate configs, use the logrotate_app resource. 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
  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
  path      ['/var/log/tomcat/myapp.log', '/opt/local/tomcat/catalina.out']
  frequency 'daily'
  create    '644 root adm'
  rotate    7
end

To specify which logrotate options, specify the options as an array:

logrotate_app 'tomcat-myapp' do
  path      '/var/log/tomcat/myapp.log'
  options   ['missingok', 'delaycompress', 'notifempty']
  frequency 'daily'
  rotate    30
  create    '644 root adm'
end

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website
https://opencollective.com/sous-chefs/sponsor/1/website
https://opencollective.com/sous-chefs/sponsor/2/website
https://opencollective.com/sous-chefs/sponsor/3/website
https://opencollective.com/sous-chefs/sponsor/4/website
https://opencollective.com/sous-chefs/sponsor/5/website
https://opencollective.com/sous-chefs/sponsor/6/website
https://opencollective.com/sous-chefs/sponsor/7/website
https://opencollective.com/sous-chefs/sponsor/8/website
https://opencollective.com/sous-chefs/sponsor/9/website

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

logrotate Cookbook CHANGELOG

This file is used to list changes made in each version of the logrotate cookbook

3.0.12 - 2023-02-14

3.0.11 - 2023-02-14

Standardise files with files in sous-chefs/repo-management

3.0.10 - 2022-12-06

Standardise files with files in sous-chefs/repo-management

Standardise files with files in sous-chefs/repo-management

3.0.9 - 2022-02-17

  • Standardise files with files in sous-chefs/repo-management

3.0.8 - 2022-02-08

  • Remove delivery folder

3.0.7 - 2022-02-01

  • Update tested platforms

3.0.6 - 2022-01-14

  • Do not sort options as the order can be important

3.0.5 - 2021-11-03

  • Add CentOS Stream 8 to CI pipeline

3.0.4 - 2021-08-30

  • Standardise files with files in sous-chefs/repo-management

3.0.3 - 2021-06-01

  • Standardise files with files in sous-chefs/repo-management

3.0.2 - 2021-05-12

  • Fix passing options to global path declarations

3.0.1 - 2021-05-12

  • Update chef_version to >= 15.3 to require unifed_mode works

3.0.0 - 2021-05-10

  • Replace recipes and attributes with Chef 17 compliant resources
    • Remove attributes
    • Remove recipes
    • Replace default recipe with package and global resource
    • Enable unified_mode on all resources.

2.3.0 - 2021-02-10

  • Sous Chefs Adoption
  • Fix cookstyle issues
  • mdl and yamlint fixes
  • Audit kitchen platforms

2.2.3 (2020-06-02)

  • Remove opensuse platform from metadata.rb as it's no longer valid - @tas50
  • Don't fail on deprecated properties - @tas50
  • Require Chef 12.15+ - @tas50
  • Standardise files with files in chef-cookbooks/repo-management - @xorimabot
  • Resolved deprecations to provide Chef Infra Client 16 compatibility - @xorimabot
  • Resolved cookstyle error: resources/app.rb:17:1 warning: ChefDeprecations/ResourceUsesOnlyResourceName

2.2.2 (2019-10-01)

  • Update build badge with chef-cookbooks namespace - @jasonwbarnett
  • Use our standard delivery config and stop testing with Foodcritic - @tas50
  • Switch the maintainer over to Chef Software - @tas50
  • Remove deprecated metadata fields - @tas50
  • Remove ChefSpec matchers that are autogenerated now - @tas50
  • Use Ubuntu 18.04 in the specs not 16.04 - @tas50
  • Update the kitchen configs with the latest platforms - @tas50
  • Add updated testing.md and contributing.md files - @tas50

2.2.1 (2019-10-01)

  • Avoid deprecation warnings in the chefspecs - @tas50
  • Resolve foodcritic license warning - @tas50
  • There's no need to define a default action in a custom resource - @tas50
  • Move templates out of default dir and remove node name - @tas50
  • Remove the mention of Ruby 2.0 in the contributing docs - @tas50
  • Add initial kitchen-dokken config - @tas50
  • Use our standard chefignore file - @tas50
  • Rename fake recipe to test and definitions -> resources - @tas50
  • Convert to inspec from serverspec - @tas50
  • Remove the default test kitchen suite since global includes it - @tas50
  • Remove references to the definition from the metadata - @tas50
  • Expand platforms we test on in Test Kitchen - @tas50
  • Remove unused prep recipe - @tas50
  • Add suse platforms to the metadata now that we test them - @tas50
  • Format readme and remove references to the definition - @tas50
  • Fix alignment for multiple scripts - @shoekstra
  • Ignore FC109 - @shoekstra
  • Update /var/log/btmp default permissions - @jasonwbarnett

2.2.0

  • The compat_resource dependency was removed. This means we now require Chef 12.5 or higher. It also means we now better support Chef 13.
  • The global configuration now supports scripts.
  • The package install action (upgrade by default) is now configurable via an attribute.
  • The development environment now more closely follows modern cookbook practices.
  • ChefSpec matcher now correctly calls ChefSpec.define_matcher.

2.1.0

  • Restore cookbook parameter for logrotate_app resource due to popular demand.
  • Add a template_name parameter to replace the 1.x template parameter. The name template can't be used inside a resource without conflicting with an attribute of the same name.
  • Fix exception when options specified as a string rather than an array

2.0.0

  • Convert the logrotate_app definition to a resource
  • Accept all options included in logrotate 3.9.2
  • The cookbook parameter to logrotate_app is no longer accepted.

1.9.2

  • Fix deprecation warnings from ChefSpec

1.9.1

  • Fixes regression in the sharedscripts logrotate_app parameter (Bug #69)

1.9.0

  • All configuration options from the logrotate 3.8.8 manual page can be used by the global configuration and the logrotate_app definition.
  • Berkshelf is no longer a development dependency of the logrotate cookbook.
  • Rubocop lint failures have been resolved.

1.8.0

  • su parameter now supported in global config.
  • firstaction and lastaction attributes documented in the README
  • rotate attribute documented in the README
  • Use hash-rocket syntax in rspec matcher to maintain 1.9 support.

1.7.0

  • Use raise rather than Application.fatal! to prevent killing a daemonized chef-client
  • Chefspec matcher for logrotate_app definition
  • Support the following options: compressoptions, maxage, shred/shredcycles, extension, tabooext
  • Add Solaris support

1.6.0

  • Fix documentation error
  • Support for options "compresscmd", "uncompresscmd", "compressext"
  • Allow nodateext as parameter for logrotate_app definition
  • Move to chefspec ~> 3.0

1.5.0

  • Fix missing end tag in template
  • Don't re-initialize constants.
  • Fix rubocop finding
  • [COOK-3911] Allow to use maxsize parameter.
  • [COOK-4000] Allow to use dateyesterday option.
  • [COOK-4024] Allow to use su parameter.
  • [COOK-4175] Allows use of the dateformat parameter.
  • Loosen test-kitchen version constraint
  • Add rvm files to gitignore

1.4.0

  • COOK-3632 - Raise Exception when adding more than one invalid option
  • COOK-3141 - Do not duplicate template entires for multiple paths
  • COOK-3034 - Update logrotate_app params to accept arrays and strings
  • COOK-2646 - Add ability to choose file mode for logrotate template

1.3.0

  • COOK-3341 - Add optional frequency and rotate params when defined globally
  • COOK-3298 - Use Array instead of respond_to?(:each)
  • COOK-3285 - Change logrotate.d config file mode to 0644
  • COOK-3250 - Add minsize
  • COOK-3274 - Fix README typo that suggested the opposite action

  • COOK-2923 - Add olddir option

  • COOK-1651 - Add dateext ability

1.2.2

  • [COOK-2872]: Add firstaction/lastaction ability to logrotate
  • [COOK-2908]: Argument error in logrotate_app definition

1.2.0

  • [COOK-2401] - Add the ability to manage the global logrotate configuration

1.1.0

  • [COOK-2218] - Logrotate size parameter

1.0.2

  • [COOK-1027] - Add support for pre-/post-rotate commands
  • [COOK-1338] - Update log rotate for more flexibility of rotate options
  • [COOK-1598] - "Create" isn't a mandatory option

Collaborator Number Metric
            

3.0.12 passed this metric

Contributing File Metric
            

3.0.12 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

Cookstyle Metric
            

3.0.12 passed this metric

No Binaries Metric
            

3.0.12 passed this metric

Testing File Metric
            

3.0.12 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
            

3.0.12 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