Salt table lists all available states

I was already looking for a document and could not find a satisfactory answer. Is it possible to get something like a salt "machine" state.list. To get all the states that could potentially be applied?

I know that there is a high state / top / lowstate, but if I want to search for a specific state, I always need to manually view the folder structure.

+7
source share
2 answers

I use this ...

A small liner command that you can set as an alias

cd /srv/salt; tree -fC -P '*.sls' --noreport * | sed 's/.sls//g' | sed 's|\/|.|g' 
0
source

Use salt '*' state.show_sls '*'on master and salt-call state.show_sls '*'minions

+1
source

Source: https://habr.com/ru/post/1649009/


All Articles