Salt Reactor

Listen to an events on master.

salt-run state.event pretty=True

Sent event from anywhere

salt-call event.send 'foo' '{orchestrate: refresh}' 

Fires this


salt/auth       {
    "_stamp": "2015-11-23T16:22:17.353060", 
    "act": "accept", 
    "id": "ubuntu1404.vanilla.robotice.cz", 
    "result": true
}
foo     {
    "_stamp": "2015-11-23T16:22:17.849150", 
    "cmd": "_minion_event", 
    "data": {
        "__pub_fun": "event.send", 
        "__pub_jid": "20151123172218498516", 
        "__pub_pid": 31345, 
        "__pub_tgt": "salt-call", 
        "orchestrate": "refresh"
    }, 
    "id": "ubuntu1404.vanilla.robotice.cz", 
    "pretag": null, 
    "tag": "foo"
}
salt/job/20151123172217875702/ret/ubuntu1404.vanilla.robotice.cz        {
    "_stamp": "2015-11-23T16:22:17.877595", 
    "arg": [
        "foo", 
        "{orchestrate: refresh}"
    ], 
    "cmd": "_return", 
    "fun": "event.send", 
    "fun_args": [
        "foo", 
        "{orchestrate: refresh}"
    ], 
    "id": "ubuntu1404.vanilla.robotice.cz", 
    "jid": "20151123172217875702", 
    "retcode": 0, 
    "return": true, 
    "tgt": "ubuntu1404.vanilla.robotice.cz", 
    "tgt_type": "glob"
 

Salt non-root

https://docs.saltstack.com/en/latest/ref/configuration/nonroot.html