12

当我在 minion 上做 highstate 时,出现了一个奇怪的错误。我怀疑,关于奴才的支柱数据可能不正确。我可以以某种方式从 minion 中转储支柱数据吗?

4

3 回答 3

20

As you said in your answer to your own question,

salt '*' pillar.data

will show all the data. However, you have some additional useful commands:

salt '*' pillar.raw

will show the raw data as it's loaded into the __pillar__ dict.

salt '*' pillar.get <key>

will show you the value of some key in pillar, with the ability to default to a certain value if the key doesn't exist. (The default is super useful when you're using pillar when templating states)

于 2013-06-11T23:27:27.287 回答
2

还使用:

盐 '*'pillar.items

将逐个节点向您展示所有支柱

于 2013-12-11T23:25:12.353 回答
2

查看支柱数据

salt '*' pillar.data

最好先使用刷新支柱数据

salt '*' saltutil.refresh_pillar
于 2013-06-11T16:33:09.920 回答