mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Updated example
While technically correct, I felt the example caused assumptions that generated confusion later in the text.
This commit is contained in:
parent
067b2a2529
commit
bdecd2c140
@ -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
|
||||
=====================================
|
||||
|
Loading…
Reference in New Issue
Block a user