Saltstack - Preview Highstate

Is there any way to see which files will be served to the minister on state.highstate? I know that you can run state.show_highstate, but this is not the result that I am looking for. For example, inside /path/to/recurse/dir/I have foo.txtand 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_highstateand it will show me the contents foo.txtand bar.txt. Does anyone know how to get around this without a simple start state.highstate?

+4
source share
1 answer

If you can run the state in the minion, but just do not want to apply any changes, you can add test=Trueto your command:

salt '*' state.highstate test=True

highstate , . , , .

+4

All Articles