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


fb_tmpclean (1) Versions 0.0.1

Install/Configures tmp file cleaning

cookbook 'fb_tmpclean', '~> 0.0.1'
cookbook 'fb_tmpclean', '~> 0.0.1', :supermarket
knife cookbook site install fb_tmpclean
knife cookbook site download fb_tmpclean
Quality 44%

fb_tmpclean Cookbook

This cookbook allows you to customize how you would like directories cleaned to ensure more appropriate filesystem cleanup.


Supports three platforms: * CentOS = tmpwatch * Debian = tmpreaper * OS X = tmpreaper


  • node['fb_tmpclean']['default_files']
  • node['fb_tmpclean']['directories']
  • node['fb_tmpclean']['excludes']
  • node['fb_tmpclean']['timestamptype']
  • node['fb_tmpclean']['extra_lines']


Anywhere, in any cookbook, you can set tmpclean to be tuned to the needs of a tier or server. By default, tmpclean takes time in hours, or you may suffix with m (minutes), h (hours), or d (days).

The attributes are used like this:


This is the lifetime of the files that are cleaned up by default by the respective packages. It defaults to 240, and the files covered are:

  • CentOS Includes (if exists) /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}


This is a hash of directories you'd like cleaned and the lifetime of files.

Add other entries as you need.


This is an array of files to exclude from cleaning in all directories listed in node['fb_tmpclean']['directories'].

Both tmpwatch (CentOS) and tmpreaper (Debian, OS X) use shell patterns for excludes. However, these "shell patterns" differ subtly on the two platforms, so test carefully. The defaults for excludes change per platform.

When the cron job is built, each of the excludes is appended to the list of directories with a slash appended to the directory name. An exclusion of /tmp/file with a directory of /tmp will result in a -X of /tmp//tmp/file. The way the options are constructed, each exclusion is appended to each directory to create absolute paths.

for dir in directories:
    for exclusion in exclusions:
        print '-X ' + dir + '/' + exclusions


By default we tell tmpwatch (in CentOS) to use mtime, but you can change this by setting node['fb_tmpclean']['timestamptype'] to atime.

This setting has no effect on Debian and Mac OS X.


An array of extra lines that will be put, verbatim, into the config file.


node.default['fb_tmpclean']['directories']['/home/zuck'] = 1
node.default['fb_tmpclean']['extra_lines'] << "LINE"


A boolean value which determines whether or not tmpwatch will remove special filetypes.


  • default_files = 240 hours
  • excludes are set per-platform based on the tool's defaults. See `attributes/default.rb'
  • remove_special_files defaults to false to avoid a default case that may be dangerous

Dependent cookbooks

fb_helpers >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric

0.0.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

0.0.1 passed this metric

Foodcritic Metric

0.0.1 failed this metric

FC064: Ensure issues_url is set in metadata: fb_tmpclean/metadata.rb:1
FC066: Ensure chef_version is set in metadata: fb_tmpclean/metadata.rb:1
Run with Foodcritic Version 12.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric

0.0.1 failed this metric

fb_tmpclean does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric

0.0.1 passed this metric

Publish Metric

0.0.1 passed this metric

Supported Platforms Metric

0.0.1 passed this metric

Testing File Metric

0.0.1 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, and your repo must contain a file

Version Tag Metric

0.0.1 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, and your repo must include a tag that matches this cookbook version number