Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 569 Bytes

tmp.md

File metadata and controls

27 lines (20 loc) · 569 Bytes

Deploy a procedure to clean directories like /tmp/.

attributes/tmp.rb
recipes/tmp.rb
templates/*/tmpreaper.conf.erb
tests/roles/sys_tmp_test.rb

Attributes

All attributes in node.sys.tmp:

  • reaper configures tmpreaper in /etc/tmpreaper.conf see manual.

Example:

[...SNIP...]
"sys" => {
  "tmp" => {
    "reaper" => {
      "max_age" => "8d",
      "protected_patterns" => [],
      "dirs" => ['/tmp/','/var/tmp'],
      "options" => '--runtime=1800'
    }
  }
  [...SNIP...]