Allow passing pillarenv into state.orchestrate

This commit is contained in:
Borys Pierov 2016-03-15 14:58:42 -04:00
parent 3a0f1f69b3
commit 336242fa12

View File

@ -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: