Updated example

While technically correct, I felt the example caused assumptions that generated confusion later in the text.
This commit is contained in:
Michael Lustfield 2016-09-26 16:38:56 -07:00 committed by GitHub
parent 067b2a2529
commit bdecd2c140

View File

@ -94,13 +94,16 @@ API and the runner system. In this example, a command is published to the
.. code-block:: yaml
{% if data['data']['orchestrate'] == 'refresh' %}
orchestrate_run:
runner.state.orchestrate
{% if data['data']['custom_var'] == 'runit' %}
call_runit_orch:
runner.state.orchestrate:
- mods: _orch/runit
{% endif %}
This example will execute the state.orchestrate runner and initiate an
orchestrate execution.
This example will execute the state.orchestrate runner and intiate an execution
of the runit orchestrator located at ``/srv/salt/_orch/runit.sls``. Using
``_orch/`` is any arbitrary path but it is recommended to avoid using "orchestrate"
as this is most likely to cause confusion.
The Goal of Writing Reactor SLS Files
=====================================