문제

When I do highstate at minion, there is a strange error. I suspect, that the pillar data on the minion may not be right. Can I somehow dump the pillar data from minion?

도움이 되었습니까?

해결책

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)

다른 팁

To see the pillar data

salt '*' pillar.data

It's good idea to refresh the pillar data first using

salt '*' saltutil.refresh_pillar

Also using :

salt '*' pillar.items

Will show you all pillars node by node

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top