#NEWLINE# def get_salt_vars( ) : #NEWLINE# #INDENT# '\n    Return all the Salt-usual double-under data structures for a minion\n    ' #NEWLINE# __opts__ = salt . config . client_config ( os . environ . get ( 'SALT_MINION_CONFIG' , '/etc/salt/minion' ) ) #NEWLINE# if ( ( 'grains' not in __opts__ ) or ( not __opts__ [ 'grains' ] ) ) : #NEWLINE# #INDENT# __opts__ [ 'grains' ] = salt . loader . grains ( __opts__ ) #NEWLINE# #UNINDENT# if ( ( 'file_client' not in __opts__ ) or ( not __opts__ [ 'file_client' ] ) ) : #NEWLINE# #INDENT# __opts__ [ 'file_client' ] = 'local' #NEWLINE# #UNINDENT# if ( ( 'id' not in __opts__ ) or ( not __opts__ [ 'id' ] ) ) : #NEWLINE# #INDENT# __opts__ [ 'id' ] = 'saltsh_mid' #NEWLINE# #UNINDENT# __salt__ = salt . loader . minion_mods ( __grains__ ) #NEWLINE# __grains__ = __opts__ [ 'grains' ] #NEWLINE# if ( __opts__ [ 'file_client' ] == 'local' ) : #NEWLINE# #INDENT# __pillar__ = salt . pillar . get_pillar ( __opts__ , __grains__ , __opts__ . get ( 'id' ) , __opts__ . get ( 'environment' ) ) . compile_pillar ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# __pillar__ = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# JINJA = ( lambda x , **y : jinja2 . Template ( x ) . render ( grains = __grains__ , salt = __salt__ , opts = __opts__ , pillar = __pillar__ , ** y ) ) #NEWLINE# return locals ( )