puppetlabs/puppetdb — pull request #368 by cprice-puppet (2012-11-30 01:47:47+00:00)
Title: Garbage collection for reports

This commit does the following:

* Introduces a function for deleting reports that
are older than a specified number of days.
* Adds a `report-ttl` config param
* Adds a `node-ttl` config param and documents it as the preferred
setting, while maintaining backward compatibility with the
`node-ttl-days` setting
* Calls report cleanup from the `sweep-database` function so that
reports will be cleaned up periodically.
* Adds unit tests, acceptance tests, and docs to all of the above.