View file contents on a Salt Stack minion

catsaltstack

How do I output the contents of a file on all my minions using Salt Stack?

The only 'pull' functionality I can find is in this minion push commit, but this requires configuration changes on the master.

Best Answer

Solution using cmd.run module:

salt '*' cmd.run 'cat /path/to/file'