salt.runners.ssh
A Runner module interface on top of the salt-ssh Python API.
This allows for programmatic use from salt-api, the Reactor, Orchestrate, etc.
-
New in version 2015.5.0.
Changed in version 2017.7.0: The
expr_form
argument has been renamed totgt_type
, earlier releases must useexpr_form
.Execute a single command via the salt-ssh subsystem and return all routines at once
A wrapper around the
SSHClient.cmd
method.
salt.runners.ssh.cmd(tgt, fun, arg=(), timeout=None, tgt_type='glob', kwarg=None)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/runners/all/salt.runners.ssh.html