- List connected minions:salt '*' test.ping- Execute a highstate on all connected minions:salt '*' state.highstate- Upgrade packages using the OS package manager (apt, yum, brew) on a subset of minions:salt '*.domain.com' pkg.upgrade- Execute an arbitrary command on a particular minion:salt '[minion_id]' cmd.run "ls "
salt '*' [ options ] sys.doc
salt -E '.*' [ options ] sys.doc cmd
salt -G 'os:Arch.*' [ options ] test.ping
salt -C 'G@os:Arch.* and webserv* or G@kernel:FreeBSD' [ options ] test.ping
Salt allows for commands to be executed across a swath of remote systems in parallel. This means that remote systems can be both controlled and queried with ease.
This was changed in version 0.9.8 to accept glob expressions instead of regular expression. To use regular expression matching with grains use the --grain-pcre option.
Using the Range option requires that a range server is set up and the location of the range server is referenced in the master configuration file.
Pass in an alternative outputter to display the return of data. This outputter can be any of the available outputters: grains, highstate, json, key, overstatestage, pprint, raw, txt, yaml Some outputters are formatted only for data returned from specific functions, for instance the grains outputter will not work for non grains data. If an outputter is used that does not support the data passed into it, then Salt will fall back on the pprint outputter and display the return data using the python pprint library.
salt(7) salt-master(1) salt-minion(1)
Thomas S. Hatch <firstname.lastname@example.org> and many others, please see the Authors file
2013, Thomas S. Hatch
salt-call(1), salt-cp(1), salt-run(1), salt-syndic(1)