运行 使用主支柱数据对 minion 进行本地盐调用

Running salt-call locally on minion with master pillar data

我正在尝试 运行 在本地 salt-minion 上创建一个 sls 文件。我使用 salt-call --local state.sls <my_sls_filename> 命令。

但是我尝试获取的 pillar 数据在 salt-master 上可用。

如果我删除 --local 然后 salt 在 master 上查找状态文件。

关于如何在运行宁salt-call --local

时获取主支柱数据的任何想法

谢谢

您看过 Salt Masterless Quickstart 文档了吗?

它似乎满足了您的要求,即 运行 当地的盐州,没有主人。

它说为了 运行 无主你的 pillar 数据也需要在本地 minion 上。

The --local flag tells the salt-minion to look for the state tree in the local file system and not to contact a Salt Master for instructions.

所以我很确定你正在尝试做的事情违背了使用 --local 标志

的目的