state.show_top equivalent to list applicable pillars on a minion

159 views
Skip to first unread message

HRX

unread,
Jul 9, 2017, 2:21:51 AM7/9/17
to Salt-users
Hi,
I was wondering if there is a command to run on the salt minion to list applicable top level pillars for that minion.

When I run pillar.items, I get every targeted pillars and data.

Thanks

Thomas Phipps

unread,
Jul 9, 2017, 2:59:03 AM7/9/17
to Salt-users
https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.pillar.html#salt.runners.pillar.show_top

remember pillars are rendered on the master so you needed to look at the runners. 

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/f511e044-1431-4def-aa35-2d2c3c18e791%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

HRX

unread,
Jul 10, 2017, 12:30:47 PM7/10/17
to Salt-users
Thank you, that's very useful.

So when I ran "salt-run pillar.show_top <minion-id>", I see it only included non-external pillars (local pillars from file_roots location)
We have some AWS S3 based external pillars, which get dumped if I were to run "salt-run pillar.show_pillar" but they don't show up with "pillar.show_top".
Reply all
Reply to author
Forward
0 new messages