使用 salt-proxy ssh 和直接使用 salt-ssh 有区别吗?我很感兴趣,因为根据文档,两者都旨在在没有在终端机器上安装代理的情况下运行远程命令。
最佳答案
您不能简单地在代理 minion 上执行 salt-ssh,为此您必须为远程系统编写自己的自定义 ssh 接口(interface),因为您的代理 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 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.
关于ssh - 使用 saltstack ssh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43932177/