puppetlabs/puppetdb — pull request #238 by grimradical (2012-07-26 16:41:33+00:00)
Title: Auto deactivation of stale nodes

Adds the `node-ttl-days` parameter, which defines how long a node can continue without seeing new activity (new catalogs, facts, etc) before it's automatically deactivated during a garbage-collection run.

The default behavior is the same as before: no automatic deactivation of anything.

This patchset also contains some necessary intermediate fixes:

* It removes use of `current_timestamp` from our code, to standardize on JVM time for DB interaction
* It creates a few new abstractions for command submission