saltstack/salt — Issue #297: Hooks infrastructure
Author: pcarrier
Created: 2011-11-29 02:11:46+00:00
State: open

Hooks would be simple modules that declare which actions they attach to using a meta-method like __virtual__() (evaluated on start or reload).

They could get called on various minion and/or master events.

Eg:
* minion starts,
* master starts,
* before minion connects to the master,
* after minion connects successfully to the master,
* after minion fails connecting to the master,
* after master gets a new subscriber,
* after minion receives an action,
* minion receives an action that it will execute

It could be helpful for tracing, but not only.
For example on minion connection, the master or minion could decide whether a highstate should be applied immediately or not.