salt/doc/man/salt.1

325 lines
9.3 KiB
Groff
Raw Normal View History

2014-06-30 21:04:53 +00:00
.\" Man page generated from reStructuredText.
.
.TH "SALT" "1" "March 10, 2015" "2014.7.2-280-g6ac6a53" "Salt"
2011-04-02 03:47:31 +00:00
.SH NAME
salt \- salt
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
2011-04-02 03:47:31 +00:00
.SH SYNOPSIS
.INDENT 0.0
.INDENT 3.5
salt \(aq*\(aq [ options ] sys.doc
.sp
salt \-E \(aq.*\(aq [ options ] sys.doc cmd
.sp
2012-01-04 03:23:30 +00:00
salt \-G \(aqos:Arch.*\(aq [ options ] test.ping
.sp
2014-06-30 21:04:53 +00:00
salt \-C \fI\%\(aqG@os\fP:Arch.* and webserv* or \fI\%G@kernel\fP:FreeBSD\(aq [ options ] test.ping
.UNINDENT
.UNINDENT
2011-04-02 03:47:31 +00:00
.SH DESCRIPTION
.sp
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.
2011-04-02 03:47:31 +00:00
.SH OPTIONS
.INDENT 0.0
2011-04-02 03:47:31 +00:00
.TP
2013-09-17 23:58:01 +00:00
.B \-\-version
Print the version of Salt that is running.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-versions\-report
Show program\(aqs dependencies and version number, and then exit
.UNINDENT
.INDENT 0.0
.TP
.B \-h, \-\-help
2013-09-17 23:58:01 +00:00
Show the help message and exit
.UNINDENT
.INDENT 0.0
.TP
.B \-c CONFIG_DIR, \-\-config\-dir=CONFIG_dir
The location of the Salt configuration directory. This directory contains
the configuration files for Salt master and minions. The default location
2014-06-30 21:04:53 +00:00
on most systems is \fB/etc/salt\fP\&.
.UNINDENT
.INDENT 0.0
2011-04-02 03:47:31 +00:00
.TP
.B \-t TIMEOUT, \-\-timeout=TIMEOUT
2013-02-12 19:02:51 +00:00
The timeout in seconds to wait for replies from the Salt minions. The
2013-05-03 20:45:26 +00:00
timeout number specifies how long the command line client will wait to
2013-09-17 23:58:01 +00:00
query the minions and check on running jobs. Default: 5
.UNINDENT
.INDENT 0.0
2011-04-02 03:47:31 +00:00
.TP
2013-05-03 20:45:26 +00:00
.B \-s, \-\-static
2012-03-19 19:02:36 +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.
.UNINDENT
.INDENT 0.0
.TP
2013-05-03 20:45:26 +00:00
.B \-\-async
Instead of waiting for the job to run on minions only print the jod id of
the started execution and complete.
.UNINDENT
.INDENT 0.0
.TP
2013-09-17 23:58:01 +00:00
.B \-\-state\-output=STATE_OUTPUT
2014-01-02 19:54:34 +00:00
New in version 0.17.
2014-06-30 21:04:53 +00:00
2014-01-02 19:54:34 +00:00
.sp
2013-09-17 23:58:01 +00:00
Override the configured state_output value for minion output. Default:
full
.UNINDENT
.INDENT 0.0
.TP
.B \-\-subset=SUBSET
Execute the routine on a random subset of the targeted minions. The
minions will be verified that they have the named function before
executing.
.UNINDENT
.INDENT 0.0
.TP
.B \-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.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-show\-timeout
Instead of only showing the return data from the online minions this option
also prints the names of the minions which could not be reached.
.UNINDENT
.INDENT 0.0
.TP
2012-03-19 19:02:36 +00:00
.B \-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.
.UNINDENT
.INDENT 0.0
.TP
2012-10-23 20:36:13 +00:00
.B \-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.
.UNINDENT
.INDENT 0.0
.TP
.B \-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.
.UNINDENT
.INDENT 0.0
.TP
2013-09-17 23:58:01 +00:00
.B \-\-return=RETURNER
Chose an alternative returner to call on the minion, if an alternative
returner is used then the return will not come back to the command line
but will be sent to the specified return system.
2012-01-15 03:23:12 +00:00
.UNINDENT
.INDENT 0.0
.TP
2013-09-17 23:58:01 +00:00
.B \-d, \-\-doc, \-\-documentation
Return the documentation for the module functions available on the minions
2012-12-14 13:50:47 +00:00
.UNINDENT
.INDENT 0.0
.TP
2013-09-17 23:58:01 +00:00
.B \-\-args\-separator=ARGS_SEPARATOR
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.
.UNINDENT
.SS Logging Options
.sp
Logging options which override any settings defined on the configuration files.
.INDENT 0.0
.TP
.B \-l LOG_LEVEL, \-\-log\-level=LOG_LEVEL
Console logging log level. One of \fBall\fP, \fBgarbage\fP, \fBtrace\fP,
2014-06-30 21:04:53 +00:00
\fBdebug\fP, \fBinfo\fP, \fBwarning\fP, \fBerror\fP, \fBquiet\fP\&. Default:
\fBwarning\fP\&.
2013-09-17 23:58:01 +00:00
.UNINDENT
.INDENT 0.0
.TP
.B \-\-log\-file=LOG_FILE
2014-06-30 21:04:53 +00:00
Log file path. Default: /var/log/salt/master\&.
2013-09-17 23:58:01 +00:00
.UNINDENT
.INDENT 0.0
.TP
.B \-\-log\-file\-level=LOG_LEVEL_LOGFILE
Logfile logging log level. One of \fBall\fP, \fBgarbage\fP, \fBtrace\fP,
2014-06-30 21:04:53 +00:00
\fBdebug\fP, \fBinfo\fP, \fBwarning\fP, \fBerror\fP, \fBquiet\fP\&. Default:
\fBwarning\fP\&.
2013-09-17 23:58:01 +00:00
.UNINDENT
.SS Target Selection
.INDENT 0.0
.TP
.B \-E, \-\-pcre
2013-09-17 23:58:01 +00:00
The target expression will be interpreted as a PCRE regular expression
rather than a shell glob.
.UNINDENT
.INDENT 0.0
2011-04-02 03:47:31 +00:00
.TP
.B \-L, \-\-list
2013-09-17 23:58:01 +00:00
The target expression will be interpreted as a comma\-delimited list;
example: server1.foo.bar,server2.foo.bar,example7.quo.qux
.UNINDENT
.INDENT 0.0
2011-04-02 03:47:31 +00:00
.TP
.B \-G, \-\-grain
2012-06-16 22:25:22 +00:00
The target expression matches values returned by the Salt grains system on
2012-03-19 19:02:36 +00:00
the minions. The target expression is in the format of \(aq<grain value>:<glob
expression>\(aq; example: \(aqos:Arch*\(aq
.sp
This was changed in version 0.9.8 to accept glob expressions instead of
2013-09-17 23:58:01 +00:00
regular expression. To use regular expression matching with grains, use
2012-03-19 19:02:36 +00:00
the \-\-grain\-pcre option.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-grain\-pcre
2012-06-16 22:25:22 +00:00
The target expression matches values returned by the Salt grains system on
2012-03-19 19:02:36 +00:00
the minions. The target expression is in the format of \(aq<grain value>:<
regular expression>\(aq; example: \(aqos:Arch.*\(aq
.UNINDENT
.INDENT 0.0
2011-04-02 03:47:31 +00:00
.TP
2012-01-15 03:23:12 +00:00
.B \-N, \-\-nodegroup
2012-06-16 22:25:22 +00:00
Use a predefined compound target defined in the Salt master configuration
2012-10-23 20:36:13 +00:00
file.
.UNINDENT
.INDENT 0.0
.TP
2012-03-19 19:02:36 +00:00
.B \-R, \-\-range
2013-09-17 23:58:01 +00:00
Instead of using shell globs to evaluate the target, use a range expression
2012-03-19 19:02:36 +00:00
to identify targets. Range expressions look like %cluster.
.sp
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.
.UNINDENT
.INDENT 0.0
.TP
2013-09-17 23:58:01 +00:00
.B \-C, \-\-compound
Utilize many target definitions to make the call very granular. This option
2014-06-30 21:04:53 +00:00
takes a group of targets separated by \fBand\fP or \fBor\fP\&. The default matcher is a
2013-09-17 23:58:01 +00:00
glob as usual. If something other than a glob is used, preface it with the
letter denoting the type; example: \(aqwebserv* and \fI\%G@os\fP:Debian or \fI\%E@db*\fP\(aq
Make sure that the compound target is encapsulated in quotes.
2012-01-15 03:23:12 +00:00
.UNINDENT
.INDENT 0.0
.TP
2013-09-17 23:58:01 +00:00
.B \-I, \-\-pillar
Instead of using shell globs to evaluate the target, use a pillar value to
identify targets. The syntax for the target is the pillar key followed by
a glob expression: "role:production*"
2012-07-28 00:04:56 +00:00
.UNINDENT
.INDENT 0.0
.TP
2013-09-17 23:58:01 +00:00
.B \-S, \-\-ipcidr
Match based on Subnet (CIDR notation) or IPv4 address.
2012-01-15 03:23:12 +00:00
.UNINDENT
2013-09-17 23:58:01 +00:00
.SS Output Options
2012-01-15 03:23:12 +00:00
.INDENT 0.0
.TP
2012-12-14 13:50:47 +00:00
.B \-\-out
Pass in an alternative outputter to display the return of data. This
outputter can be any of the available outputters:
2013-09-17 23:58:01 +00:00
.INDENT 7.0
.INDENT 3.5
\fBgrains\fP, \fBhighstate\fP, \fBjson\fP, \fBkey\fP, \fBoverstatestage\fP, \fBpprint\fP, \fBraw\fP, \fBtxt\fP, \fByaml\fP
.UNINDENT
.UNINDENT
.sp
2012-12-14 13:50:47 +00:00
Some outputters are formatted only for data returned from specific
2013-09-17 23:58:01 +00:00
functions; for instance, the \fBgrains\fP outputter will not work for non\-grains
2012-12-14 13:50:47 +00:00
data.
2013-09-17 23:58:01 +00:00
.sp
2012-12-14 13:50:47 +00:00
If an outputter is used that does not support the data passed into it, then
2013-09-17 23:58:01 +00:00
Salt will fall back on the \fBpprint\fP outputter and display the return data
using the Python \fBpprint\fP standard library module.
2014-06-30 21:04:53 +00:00
.sp
\fBNOTE:\fP
.INDENT 7.0
.INDENT 3.5
2013-09-17 23:58:01 +00:00
If using \fB\-\-out=json\fP, you will probably want \fB\-\-static\fP as well.
Without the static option, you will get a JSON string for each minion.
This is due to using an iterative outputter. So if you want to feed it
to a JSON parser, use \fB\-\-static\fP as well.
2014-06-30 21:04:53 +00:00
.UNINDENT
.UNINDENT
2012-01-15 03:23:12 +00:00
.UNINDENT
.INDENT 0.0
.TP
2012-12-14 13:50:47 +00:00
.B \-\-out\-indent OUTPUT_INDENT, \-\-output\-indent OUTPUT_INDENT
Print the output indented by the provided value in spaces. Negative values
2013-09-17 23:58:01 +00:00
disable indentation. Only applicable in outputters that support
indentation.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-out\-file=OUTPUT_FILE, \-\-output\-file=OUTPUT_FILE
Write the output to the specified file.
2012-01-15 03:23:12 +00:00
.UNINDENT
2012-03-19 19:02:36 +00:00
.INDENT 0.0
.TP
.B \-\-no\-color
Disable all colored output
.UNINDENT
2013-09-17 23:58:01 +00:00
.INDENT 0.0
.TP
.B \-\-force\-color
Force colored output
.sp
\fBNOTE:\fP
.INDENT 7.0
.INDENT 3.5
When using colored output the color codes are as follows:
.sp
\fBgreen\fP denotes success, \fBred\fP denotes failure, \fBblue\fP denotes
changes and success and \fByellow\fP denotes a expected future change in configuration.
.UNINDENT
.UNINDENT
2013-09-17 23:58:01 +00:00
.UNINDENT
.SH SEE ALSO
.sp
\fIsalt(7)\fP
\fIsalt\-master(1)\fP
\fIsalt\-minion(1)\fP
.SH AUTHOR
2012-07-28 00:04:56 +00:00
Thomas S. Hatch <thatch45@gmail.com> and many others, please see the Authors file
.SH COPYRIGHT
2014 SaltStack, Inc.
.\" Generated by docutils manpage writer.
.