salt/doc/ref/cli/salt.rst

118 lines
3.3 KiB
ReStructuredText
Raw Normal View History

2011-05-23 06:58:49 +00:00
========
``salt``
========
Synopsis
========
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
2011-05-23 06:58:49 +00:00
Description
===========
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.
Options
=======
.. program:: salt
.. include:: _includes/common-options.rst
2011-05-23 06:58:49 +00:00
.. include:: _includes/timeout-option.rst
.. |timeout| replace:: 5
2011-05-23 06:58:49 +00:00
2013-02-27 21:07:39 +00:00
.. option:: -s, --static
2012-03-19 18:38:23 +00:00
By default as of version 0.9.8 the salt command returns data to the
console as it is received from minions, but previous releases would return
data only after all data was received. To only return the data with a hard
timeout and after all minions have returned then use the static option.
2013-03-23 21:49:00 +00:00
.. option:: --async
2014-11-03 20:26:28 +00:00
Instead of waiting for the job to run on minions only print the job id of
2013-03-23 21:49:00 +00:00
the started execution and complete.
.. option:: --state-output=STATE_OUTPUT
.. versionadded:: 0.17
2014-11-03 19:54:39 +00:00
Override the configured state_output value for minion output. Default:
full
.. option:: --subset=SUBSET
2014-11-03 19:54:39 +00:00
Execute the routine on a random subset of the targeted minions. The
minions will be verified that they have the named function before
executing.
.. option:: -v VERBOSE, --verbose
Turn on verbosity for the salt call, this will cause the salt command to
print out extra data like the job id.
2014-08-07 14:12:47 +00:00
.. option:: --hide-timeout
2014-08-07 14:12:47 +00:00
Instead of showing the return data for all minions. This option
prints only the online minions which could be reached.
2012-03-19 18:38:23 +00:00
.. option:: -b BATCH, --batch-size=BATCH
Instead of executing on all targeted minions at once, execute on a
progressive set of minions. This option takes an argument in the form of
an explicit number of minions to execute at once, or a percentage of
minions to execute on.
2012-10-23 20:31:12 +00:00
.. option:: -a EAUTH, --auth=EAUTH
Pass in an external authentication medium to validate against. The
credentials will be prompted for. Can be used with the -T option.
.. option:: -T, --make-token
Used in conjunction with the -a option. This creates a token that allows
for the authenticated user to send commands without needing to
re-authenticate.
.. option:: --return=RETURNER
2014-11-03 19:54:39 +00:00
Choose an alternative returner to call on the minion, if an alternative
2012-08-30 23:02:55 +00:00
returner is used then the return will not come back to the command line
but will be sent to the specified return system.
2012-12-14 13:28:39 +00:00
.. option:: -d, --doc, --documentation
Return the documentation for the module functions available on the minions
.. option:: --args-separator=ARGS_SEPARATOR
2014-11-03 19:54:39 +00:00
Set the special argument used as a delimiter between command arguments of
compound commands. This is useful when one wants to pass commas as
arguments to some of the commands in a compound command.
.. include:: _includes/logging-options.rst
.. |logfile| replace:: /var/log/salt/master
.. |loglevel| replace:: ``warning``
.. include:: _includes/target-selection.rst
.. include:: _includes/extended-target-selection.rst
.. include:: _includes/output-options.rst
2012-03-19 18:38:23 +00:00
2011-05-23 06:58:49 +00:00
See also
========
:manpage:`salt(7)`
:manpage:`salt-master(1)`
:manpage:`salt-minion(1)`