Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign SubscriptStore NameLoad Index Str Call NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign SubscriptStore NameLoad Index Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr Str Dict body Assign NameStore Str Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args defaults body Expr Str Assign SubscriptStore NameLoad Index Str NameLoad Return Call NameLoad decorator_list FunctionDef arguments args defaults body Return Dict Str Str decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr Str body If CompareIn Str NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Assign NameStore NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore BinOpAdd Str NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body AugAssignAdd NameStore BinOpAdd Str SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return Call NameLoad NameLoad decorator_list
N/A N/A 
    This is a simple proxy-minion designed to connect to and communicate with
    a server that exposes functionality via SSH.
    This can be used as an option when the device does not provide
    an api over HTTP and doesn't have the python stack to run a minion.
 __future__ absolute_import N/A json N/A logging salt.utils.vt_helper SSHConnection salt.utils.vt TerminalException N/A __proxyenabled__ N/A ssh_sample N/A DETAILS N/A N/A log N/A N/A logging getLogger __file__ __virtual__ N/A N/A N/A N/A N/A 
    Only return if all the modules are available
     N/A N/A N/A log info ssh_sample proxy __virtual__() called... N/A True N/A init N/A N/A opts N/A N/A N/A 
    Required.
    Can be used to initialize the server connection.
     N/A N/A N/A N/A DETAILS N/A server N/A SSHConnection host N/A N/A __opts__ N/A proxy N/A host username N/A N/A __opts__ N/A proxy N/A username password N/A N/A __opts__ N/A proxy N/A password N/A N/A out err N/A N/A N/A DETAILS N/A server sendline help N/A N/A DETAILS N/A initialized True N/A N/A N/A TerminalException N/A e N/A N/A N/A N/A log error e N/A False N/A initialized N/A N/A N/A N/A N/A 
    Since grains are loaded in many different places and some of those
    places occur before the proxy can be initialized, return whether
    our init() function has been called
     N/A N/A N/A DETAILS get initialized False N/A grains N/A N/A N/A N/A N/A 
    Get the grains from the proxied device
     N/A N/A N/A N/A DETAILS get grains_cache N/A N/A N/A cmd info N/A N/A out err N/A N/A N/A DETAILS N/A server sendline cmd N/A N/A DETAILS N/A grains_cache N/A parse out N/A N/A DETAILS N/A grains_cache N/A grains_refresh N/A N/A N/A N/A N/A 
    Refresh the grains from the proxied device
     N/A N/A DETAILS N/A grains_cache None N/A N/A grains N/A fns N/A N/A N/A N/A N/A N/A details This key is here because a function in grains/ssh_sample.py called fns() here in the proxymodule. N/A ping N/A N/A N/A N/A N/A 
    Required.
    Ping the device on the other end of the connection
     N/A N/A N/A N/A out err N/A N/A N/A DETAILS N/A server sendline help N/A True N/A N/A N/A TerminalException N/A e N/A N/A N/A N/A log error e N/A False N/A shutdown N/A N/A opts N/A N/A N/A 
    Disconnect
     N/A N/A N/A N/A DETAILS N/A server close_connection N/A parse N/A N/A out N/A N/A N/A 
    Extract json from out.

    Parameter
        out: Type string. The data returned by the
        ssh command.
     N/A jsonret N/A N/A in_json False N/A ln_ N/A N/A out split N/A N/A N/A { ln_ N/A N/A in_json True N/A in_json N/A N/A N/A N/A jsonret append ln_ N/A N/A } ln_ N/A N/A in_json False N/A N/A N/A json loads N/A N/A join jsonret N/A package_list N/A N/A N/A N/A N/A 
    List "packages" by executing a command via ssh
    This function is called in response to the salt command

    ..code-block::bash
        salt target_minion pkg.list_pkgs

     N/A N/A out err N/A N/A N/A DETAILS N/A server sendline pkg_list
 N/A N/A parse out N/A package_install N/A N/A name N/A kwargs N/A N/A 
    Install a "package" on the ssh server
     N/A cmd N/A pkg_install  name N/A N/A N/A kwargs get version False N/A N/A cmd N/A N/A kwargs N/A version N/A N/A out err N/A N/A N/A DETAILS N/A server sendline cmd N/A N/A parse out N/A package_remove N/A N/A name N/A N/A N/A 
    Remove a "package" on the ssh server
     N/A cmd N/A pkg_remove  name N/A N/A out err N/A N/A N/A DETAILS N/A server sendline cmd N/A N/A parse out N/A service_list N/A N/A N/A N/A N/A 
    Start a "service" on the ssh server

    .. versionadded:: 2015.8.2
     N/A cmd ps N/A N/A out err N/A N/A N/A DETAILS N/A server sendline cmd N/A N/A parse out N/A service_start N/A N/A name N/A N/A N/A 
    Start a "service" on the ssh server

    .. versionadded:: 2015.8.2
     N/A cmd N/A start  name N/A N/A out err N/A N/A N/A DETAILS N/A server sendline cmd N/A N/A parse out N/A service_stop N/A N/A name N/A N/A N/A 
    Stop a "service" on the ssh server

    .. versionadded:: 2015.8.2
     N/A cmd N/A stop  name N/A N/A out err N/A N/A N/A DETAILS N/A server sendline cmd N/A N/A parse out N/A service_restart N/A N/A name N/A N/A N/A 
    Restart a "service" on the ssh server

    .. versionadded:: 2015.8.2
     N/A cmd N/A restart  name N/A N/A out err N/A N/A N/A DETAILS N/A server sendline cmd N/A N/A parse out N/A