#NEWLINE# def orchestrate_high( data , test = None , queue = False , pillar = None , **kwargs ) : #NEWLINE# #INDENT# '\n    Execute a single state orchestration routine\n\n    .. versionadded:: 2015.5.0\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt-run state.orchestrate_high \'{\n            stage_one:\n                {salt.state: [{tgt: "db*"}, {sls: postgres_setup}]},\n            stage_two:\n                {salt.state: [{tgt: "web*"}, {sls: apache_setup}, {\n                    require: [{salt: stage_one}],\n                }]},\n            }\'\n    ' #NEWLINE# if ( ( pillar is not None ) and ( not isinstance ( pillar , dict ) ) ) : #NEWLINE# #INDENT# raise SaltInvocationError ( 'Pillar data must be formatted as a dictionary' ) #NEWLINE# #UNINDENT# __opts__ [ 'file_client' ] = 'local' #NEWLINE# minion = salt . minion . MasterMinion ( __opts__ ) #NEWLINE# running = minion . functions [ 'state.high' ] ( data , test = None , queue = False , pillar = pillar , ** kwargs ) #NEWLINE# ret = { #NEWLINE# #INDENT# minion . opts [ 'id' ] : running , #NEWLINE# #UNINDENT# } #NEWLINE# __jid_event__ . fire_event ( { #NEWLINE# #INDENT# 'data' : ret , #NEWLINE# 'outputter' : 'highstate' , #NEWLINE# #UNINDENT# } , 'progress' ) #NEWLINE# return ret