A convenience system to manage reactors
Beginning in the 2017.7 release, the reactor runner requires that the reactor
system is running. This is accomplished one of two ways, either
by having reactors configured or by including
reactor in the
engine configuration for the Salt master.
add(event, reactors, saltenv='base', test=None)¶
Add a new reactor
salt-run reactor.add 'salt/cloud/*/destroyed' reactors='/srv/reactor/destroy/*.sls'
delete(event, saltenv='base', test=None)¶
Delete a reactor
salt-run reactor.delete 'salt/cloud/*/destroyed'
Return whether the running reactor is acting as a leader (responding to events).
List currently configured reactors
Set the current reactor to act as a leader (responding to events). Defaults to True
salt-run reactor.set_leader True