def show_sls(mods, saltenv='base', test=None, **kwargs):
 __pillar__.update(kwargs.get('pillar', {}))
 __opts__['grains'] = __grains__
 opts = copy.copy(__opts__)
 if salt.utils.test_mode(test=test, **kwargs):
  opts['test'] = True
 else:
  opts['test'] = __opts__.get('test', None)
 st_ = salt.client.ssh.state.SSHHighState(__opts__, __pillar__, __salt__, __context__['fileclient'])
 if isinstance(mods, string_types):
  mods = mods.split(',')
 (high_data, errors) = st_.render_highstate({saltenv: mods})
 (high_data, ext_errors) = st_.state.reconcile_extend(high_data)
 errors += ext_errors
 errors += st_.state.verify_high(high_data)
 if errors:
  return errors
 (high_data, req_in_errors) = st_.state.requisite_in(high_data)
 errors += req_in_errors
 high_data = st_.state.apply_exclude(high_data)
 if errors:
  return errors
 return high_data

def show_sls ( mods , saltenv = 'base' , test = None , ** kwargs ) : __pillar__ . update ( kwargs . get ( 'pillar' , { } ) ) __opts__ [ 'grains' ] = __grains__ opts = copy . copy ( __opts__ ) if salt . utils . test_mode ( test = test , ** kwargs ) : opts [ 'test' ] = True else : opts [ 'test' ] = __opts__ . get ( 'test' , None ) st_ = salt . client . ssh . state . SSHHighState ( __opts__ , __pillar__ , __salt__ , __context__ [ 'fileclient' ] ) if isinstance ( mods , string_types ) : mods = mods . split ( ',' ) ( high_data , errors ) = st_ . render_highstate ( { saltenv : mods } ) ( high_data , ext_errors ) = st_ . state . reconcile_extend ( high_data ) errors += ext_errors errors += st_ . state . verify_high ( high_data ) if errors : return errors ( high_data , req_in_errors ) = st_ . state . requisite_in ( high_data ) errors += req_in_errors high_data = st_ . state . apply_exclude ( high_data ) if errors : return errors return high_data
display the state data from a specific sls or list of sls files on the master cli example: .