Reputation: 1383
Is there a way to preview what files will be served to a minion on a state.highstate
? I know that you can run state.show_highstate
, but that is not the output I am looking for. For example, inside /path/to/recurse/dir/
I have foo.txt
and bar.txt
and in my sls file I have
/path/to/recurse/dir/:
file.recurse:
- source: salt://dir/
I would like to run state.preview_highstate
and it would show me the contents of foo.txt
and bar.txt
. Does anyone know how to go about this without just running state.highstate
?
Upvotes: 6
Views: 873
Reputation: 2202
If you are able to run the state on the minion but just don't want to apply any changes you can append the test=True
to your command:
salt '*' state.highstate test=True
This will run the highstate on the minion but will not make any changes to the system. Changes that would be applied are shown in yellow.
Upvotes: 6