saltstack/salt — Issue #727: Support "signals" when certain events happen
Author: SEJeff
Created: 2012-02-21 16:44:27+00:00
State: open

The way django implements this concept seems ideal for salt: https://docs.djangoproject.com/en/dev/topics/signals

I briefly mentioned this in issue #409.

Some uses that seem perfect for signals would be:

* New minion requests a key
* New minion key is accepted via salt-key
* Minion authentication
* Minion authentication failure (wrong key)
* Minion disconnect

Then you could "subscribe" a module or state to a specific signal. This would be a kind of cool way to do something like:
* run ```state.highstate``` when a minion first connects to the master
* notify a list of `failover masters` a new minion key has been accepted and that they should request it from the `main master`
* run script to add minion $foo to $monitoring_system after it has been added to salt. This would be FANTASTIC for "cloud" use cases and on-demand infrastructure.