saltstack/salt — Issue #694: pre-config and post-config hooks
Author: ericsnowcurrently
Created: 2012-02-14 21:10:37+00:00
State: open

how about a simple hook mechanism (both on master and minion), triggered just prior to a state.highstate run on a minion and just after that run completes (and reports)? This would be an easy way to do things like restart a minion after updating salt, reporting on the result, or running a sanity check on the just completed run. The hooks would apply to each specific host that matches the state.highstate command and not to the broader command run from the master.

Naturally such hooks could be added to a variety of places across the master and minion code, but I expect that the proposal above would be relatively straightforward, already has a few meaningful use-cases, and can act as evaluation of the idea of hooks.