I already searched the doc and was not able to find an satisfying answer. Is it possible to get something like salt 'machine' state.list. To get all states that could be potentially applied?
I know there is the high state / top / lowstate, but if i want to search for a particular state i always need to go through the folder structure manually.
States in the salt belt include Alaska, Connecticut, Delaware, Illinois, Indiana, Iowa, Kansas, Kentucky, Maine, Maryland, Massachusetts, Michigan, Minnesota, Missouri, Nebraska, New Hampshire, New Jersey, New York, North Dakota, Ohio, Pennsylvania, Rhode Island, South Dakota, Vermont, Virginia, West Virginia, ...
A “highstate” is a way for Salt to dynamically determine which Salt Formulas should be applied to a certain minion. To start with you execute a “highstate” like this: salt 'minion01' state.highstate. This command causes the Minion to download and examine a file from the Salt Master called the “top file”.
All user-created Salt state (SLS) files are saved on the SUSE Manager Server, in the /srv/susemanager/salt/ directory. Within that directory, each organization has a sub-directory.
On your Salt master, run the following command to apply the Top file: salt '*' state. apply #calling state. apply with no arguments starts a highstate.
Use salt '*' state.show_sls '*'
on master and
salt-call state.show_sls '*'
on minions
I use this...
Is a little one liner command you can set as an alias
cd /srv/salt; tree -fC -P '*.sls' --noreport * | sed 's/.sls//g' | sed 's|\/|.|g'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With