Rename state.sls runner to state.orchestrate

Aliases "orch" and "sls" added.
This commit is contained in:
Erik Johnson 2014-03-13 21:11:50 -05:00
parent a7a878fea0
commit d98d8f23c6

View File

@ -20,6 +20,8 @@ logger = logging.getLogger(__name__)
def over(saltenv='base', os_fn=None):
'''
.. versionadded:: 0.11.0
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
@ -57,8 +59,10 @@ def over(saltenv='base', os_fn=None):
return overstate.over_run
def sls(mods, saltenv='base', test=None, exclude=None, pillar=None):
def orchestrate(mods, saltenv='base', test=None, exclude=None, pillar=None):
'''
.. versionadded:: 0.17.0
Execute a state run from the master, used as a powerful orchestration
system.
@ -66,8 +70,12 @@ def sls(mods, saltenv='base', test=None, exclude=None, pillar=None):
.. code-block:: bash
salt-run state.sls webserver
salt-run state.sls webserver saltenv=dev test=True
salt-run state.orchestrate webserver
salt-run state.orchestrate webserver saltenv=dev test=True
.. versionchanged:: 2014.1.1
Runner renamed from ``state.sls`` to ``state.orchestrate``
'''
__opts__['file_client'] = 'local'
minion = salt.minion.MasterMinion(__opts__)
@ -81,10 +89,16 @@ def sls(mods, saltenv='base', test=None, exclude=None, pillar=None):
salt.output.display_output(ret, 'highstate', opts=__opts__)
return ret
# Aliases for orchestrate runner
orch = orchestrate
sls = orchestrate
def show_stages(saltenv='base', os_fn=None):
'''
Display the stage data to be executed
.. versionadded:: 0.11.0
Display the OverState's stage data
CLI Examples: