Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I query nodegroups and file_roots on salt-master?

Tags:

salt-project

I have a few nodegroups set in a separate master.d/*.conf file and can correctly target them. I was wondering if there is a mechanism on the salt master to list nodegroups and their members without having to look through the master file or master.d/*.conf files. Is there a way to list file_roots too without having to look through files?

like image 365
Johnathan Herndon Avatar asked Dec 18 '25 12:12

Johnathan Herndon


1 Answers

i'm not sure that there is some way to get nodegroup file contents, but there are some methods to look into file_roots content:

salt-run fileserver.file_list

should run on the master. There are some similar commands, i'm not sure which one you exactly need.

salt-run fileserver.dir_list

salt-run fileserver.envs

you can see more about salt-run through the document

like image 187
sel-fish Avatar answered Dec 23 '25 06:12

sel-fish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!