mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Allow passing pillarenv into state.orchestrate
This commit is contained in:
parent
3a0f1f69b3
commit
336242fa12
@ -15,7 +15,12 @@ from salt.exceptions import SaltInvocationError
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def orchestrate(mods, saltenv='base', test=None, exclude=None, pillar=None):
|
||||
def orchestrate(mods,
|
||||
saltenv='base',
|
||||
test=None,
|
||||
exclude=None,
|
||||
pillar=None,
|
||||
pillarenv=None):
|
||||
'''
|
||||
.. versionadded:: 0.17.0
|
||||
|
||||
@ -33,6 +38,7 @@ def orchestrate(mods, saltenv='base', test=None, exclude=None, pillar=None):
|
||||
|
||||
salt-run state.orchestrate webserver
|
||||
salt-run state.orchestrate webserver saltenv=dev test=True
|
||||
salt-run state.orchestrate webserver saltenv=dev pillarenv=aws
|
||||
|
||||
.. versionchanged:: 2014.1.1
|
||||
|
||||
@ -53,7 +59,8 @@ def orchestrate(mods, saltenv='base', test=None, exclude=None, pillar=None):
|
||||
saltenv,
|
||||
test,
|
||||
exclude,
|
||||
pillar=pillar)
|
||||
pillar=pillar,
|
||||
pillarenv=pillarenv)
|
||||
ret = {'data': {minion.opts['id']: running}, 'outputter': 'highstate'}
|
||||
res = salt.utils.check_state_result(ret['data'])
|
||||
if res:
|
||||
|
Loading…
Reference in New Issue
Block a user