Change fire event command

Since 0.17.0, the ability to send a event payload with a more complex data structure than a string
This commit is contained in:
pengyao 2013-11-30 11:59:47 +08:00
parent 1c3e23db72
commit 409d7e8c18

View File

@ -68,20 +68,20 @@ command line:
.. code-block:: bash
salt-call event.fire 'message to be sent in the event' 'tag'
salt-call event.fire '{"data": "message to be sent in the event"}' 'tag'
To fire an event to be sent to the master, from the minion:
.. code-block:: bash
salt-call event.fire_master 'message for the master' 'tag'
salt-call event.fire_master '{"data": "message for the master"}' 'tag'
If a process is listening on the minion, it may be useful for a user on the
master to fire an event to it:
.. code-block:: bash
salt minionname event.fire 'message for the minion' 'tag'
salt minionname event.fire '{"data": "message for the minion"}' 'tag'
Firing Events From Code