使用 saltstack ssh
Using saltstack ssh
使用salt-proxy ssh和直接salt-ssh有区别吗?我很感兴趣,因为根据文档,两者都旨在 运行 远程命令,而无需在终端机器上安装代理。
您不能简单地在代理 minion 上执行 salt-ssh,为此您必须编写自己的到远程系统的自定义 ssh 接口,因为您的代理 minion 可能不支持执行 salt-ssh。
如何在使用 salt-ssh 和 salt-proxy 之间做出选择完全取决于 minion 系统的类型。
如 saltstack 文档中所述 - https://docs.saltstack.com/en/latest/topics/ssh/index.html 和
https://docs.saltstack.com/en/latest/topics/proxyminion/index.html
要使用 salt-ssh,远程系统必须安装 python - 条件之一。比如从centos控制ubuntu.
如 salt-proxy 文档中所述,
Proxy minions are a developing Salt feature that enables controlling
devices that, for whatever reason, cannot run a standard salt-minion.
Examples include network gear that has an API but runs a proprietary
OS, devices with limited CPU or memory, or devices that could run a
minion, but for security reasons, will not.
使用salt-proxy ssh和直接salt-ssh有区别吗?我很感兴趣,因为根据文档,两者都旨在 运行 远程命令,而无需在终端机器上安装代理。
您不能简单地在代理 minion 上执行 salt-ssh,为此您必须编写自己的到远程系统的自定义 ssh 接口,因为您的代理 minion 可能不支持执行 salt-ssh。
如何在使用 salt-ssh 和 salt-proxy 之间做出选择完全取决于 minion 系统的类型。 如 saltstack 文档中所述 - https://docs.saltstack.com/en/latest/topics/ssh/index.html 和 https://docs.saltstack.com/en/latest/topics/proxyminion/index.html
要使用 salt-ssh,远程系统必须安装 python - 条件之一。比如从centos控制ubuntu.
如 salt-proxy 文档中所述,
Proxy minions are a developing Salt feature that enables controlling devices that, for whatever reason, cannot run a standard salt-minion. Examples include network gear that has an API but runs a proprietary OS, devices with limited CPU or memory, or devices that could run a minion, but for security reasons, will not.