1
0

salt.1 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SALT" "1" "Oct 02, 2019" "2019.2.2" "Salt"
  4. .SH NAME
  5. salt \- salt
  6. .
  7. .nr rst2man-indent-level 0
  8. .
  9. .de1 rstReportMargin
  10. \\$1 \\n[an-margin]
  11. level \\n[rst2man-indent-level]
  12. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  13. -
  14. \\n[rst2man-indent0]
  15. \\n[rst2man-indent1]
  16. \\n[rst2man-indent2]
  17. ..
  18. .de1 INDENT
  19. .\" .rstReportMargin pre:
  20. . RS \\$1
  21. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  22. . nr rst2man-indent-level +1
  23. .\" .rstReportMargin post:
  24. ..
  25. .de UNINDENT
  26. . RE
  27. .\" indent \\n[an-margin]
  28. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .nr rst2man-indent-level -1
  30. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  31. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  32. ..
  33. .SH SYNOPSIS
  34. .INDENT 0.0
  35. .INDENT 3.5
  36. salt \(aq*\(aq [ options ] sys.doc
  37. .sp
  38. salt \-E \(aq.*\(aq [ options ] sys.doc cmd
  39. .sp
  40. salt \-G \(aqos:Arch.*\(aq [ options ] test.version
  41. .sp
  42. salt \-C \fI\%\(aqG@os\fP:Arch.* and webserv* or \fI\%G@kernel\fP:FreeBSD\(aq [ options ] test.version
  43. .UNINDENT
  44. .UNINDENT
  45. .SH DESCRIPTION
  46. .sp
  47. Salt allows for commands to be executed across a swath of remote systems in
  48. parallel. This means that remote systems can be both controlled and queried
  49. with ease.
  50. .SH OPTIONS
  51. .INDENT 0.0
  52. .TP
  53. .B \-\-version
  54. Print the version of Salt that is running.
  55. .UNINDENT
  56. .INDENT 0.0
  57. .TP
  58. .B \-\-versions\-report
  59. Show program\(aqs dependencies and version number, and then exit
  60. .UNINDENT
  61. .INDENT 0.0
  62. .TP
  63. .B \-h, \-\-help
  64. Show the help message and exit
  65. .UNINDENT
  66. .INDENT 0.0
  67. .TP
  68. .B \-c CONFIG_DIR, \-\-config\-dir=CONFIG_dir
  69. The location of the Salt configuration directory. This directory contains
  70. the configuration files for Salt master and minions. The default location
  71. on most systems is \fB/etc/salt\fP\&.
  72. .UNINDENT
  73. .INDENT 0.0
  74. .TP
  75. .B \-t TIMEOUT, \-\-timeout=TIMEOUT
  76. The timeout in seconds to wait for replies from the Salt minions. The
  77. timeout number specifies how long the command line client will wait to
  78. query the minions and check on running jobs. Default: 5
  79. .UNINDENT
  80. .INDENT 0.0
  81. .TP
  82. .B \-s, \-\-static
  83. By default as of version 0.9.8 the salt command returns data to the
  84. console as it is received from minions, but previous releases would return
  85. data only after all data was received. Use the static option to only return
  86. the data with a hard timeout and after all minions have returned.
  87. Without the static option, you will get a separate JSON string per minion
  88. which makes JSON output invalid as a whole.
  89. .UNINDENT
  90. .INDENT 0.0
  91. .TP
  92. .B \-\-async
  93. Instead of waiting for the job to run on minions only print the job id of
  94. the started execution and complete.
  95. .UNINDENT
  96. .INDENT 0.0
  97. .TP
  98. .B \-\-subset=SUBSET
  99. Execute the routine on a random subset of the targeted minions. The
  100. minions will be verified that they have the named function before
  101. executing. The SUBSET argument is the count of the minions to target.
  102. .UNINDENT
  103. .INDENT 0.0
  104. .TP
  105. .B \-v VERBOSE, \-\-verbose
  106. Turn on verbosity for the salt call, this will cause the salt command to
  107. print out extra data like the job id.
  108. .UNINDENT
  109. .INDENT 0.0
  110. .TP
  111. .B \-\-hide\-timeout
  112. Instead of showing the return data for all minions. This option
  113. prints only the online minions which could be reached.
  114. .UNINDENT
  115. .INDENT 0.0
  116. .TP
  117. .B \-b BATCH, \-\-batch\-size=BATCH
  118. Instead of executing on all targeted minions at once, execute on a
  119. progressive set of minions. This option takes an argument in the form of
  120. an explicit number of minions to execute at once, or a percentage of
  121. minions to execute on.
  122. .UNINDENT
  123. .INDENT 0.0
  124. .TP
  125. .B \-a EAUTH, \-\-auth=EAUTH
  126. Pass in an external authentication medium to validate against. The
  127. credentials will be prompted for. The options are \fIauto\fP,
  128. \fIkeystone\fP, \fIldap\fP, and \fIpam\fP\&. Can be used with the \-T
  129. option.
  130. .UNINDENT
  131. .INDENT 0.0
  132. .TP
  133. .B \-T, \-\-make\-token
  134. Used in conjunction with the \-a option. This creates a token that allows
  135. for the authenticated user to send commands without needing to
  136. re\-authenticate.
  137. .UNINDENT
  138. .INDENT 0.0
  139. .TP
  140. .B \-\-return=RETURNER
  141. Choose an alternative returner to call on the minion, if an
  142. alternative returner is used then the return will not come back to
  143. the command line but will be sent to the specified return system.
  144. The options are \fIcarbon\fP, \fIcassandra\fP, \fIcouchbase\fP, \fIcouchdb\fP,
  145. \fIelasticsearch\fP, \fIetcd\fP, \fIhipchat\fP, \fIlocal\fP, \fIlocal_cache\fP,
  146. \fImemcache\fP, \fImongo\fP, \fImysql\fP, \fIodbc\fP, \fIpostgres\fP, \fIredis\fP,
  147. \fIsentry\fP, \fIslack\fP, \fIsms\fP, \fIsmtp\fP, \fIsqlite3\fP, \fIsyslog\fP, and \fIxmpp\fP\&.
  148. .UNINDENT
  149. .INDENT 0.0
  150. .TP
  151. .B \-d, \-\-doc, \-\-documentation
  152. Return the documentation for the module functions available on the minions
  153. .UNINDENT
  154. .INDENT 0.0
  155. .TP
  156. .B \-\-args\-separator=ARGS_SEPARATOR
  157. Set the special argument used as a delimiter between command arguments of
  158. compound commands. This is useful when one wants to pass commas as
  159. arguments to some of the commands in a compound command.
  160. .UNINDENT
  161. .SS Logging Options
  162. .sp
  163. Logging options which override any settings defined on the configuration files.
  164. .INDENT 0.0
  165. .TP
  166. .B \-l LOG_LEVEL, \-\-log\-level=LOG_LEVEL
  167. Console logging log level. One of \fBall\fP, \fBgarbage\fP, \fBtrace\fP,
  168. \fBdebug\fP, \fBinfo\fP, \fBwarning\fP, \fBerror\fP, \fBquiet\fP\&. Default:
  169. \fBwarning\fP\&.
  170. .UNINDENT
  171. .INDENT 0.0
  172. .TP
  173. .B \-\-log\-file=LOG_FILE
  174. Log file path. Default: /var/log/salt/master\&.
  175. .UNINDENT
  176. .INDENT 0.0
  177. .TP
  178. .B \-\-log\-file\-level=LOG_LEVEL_LOGFILE
  179. Logfile logging log level. One of \fBall\fP, \fBgarbage\fP, \fBtrace\fP,
  180. \fBdebug\fP, \fBinfo\fP, \fBwarning\fP, \fBerror\fP, \fBquiet\fP\&. Default:
  181. \fBwarning\fP\&.
  182. .UNINDENT
  183. .SS Target Selection
  184. .sp
  185. The default matching that Salt utilizes is shell\-style globbing around the
  186. minion id. See \fI\%https://docs.python.org/2/library/fnmatch.html#module\-fnmatch\fP\&.
  187. .INDENT 0.0
  188. .TP
  189. .B \-E, \-\-pcre
  190. The target expression will be interpreted as a PCRE regular expression
  191. rather than a shell glob.
  192. .UNINDENT
  193. .INDENT 0.0
  194. .TP
  195. .B \-L, \-\-list
  196. The target expression will be interpreted as a comma\-delimited list;
  197. example: server1.foo.bar,server2.foo.bar,example7.quo.qux
  198. .UNINDENT
  199. .INDENT 0.0
  200. .TP
  201. .B \-G, \-\-grain
  202. The target expression matches values returned by the Salt grains system on
  203. the minions. The target expression is in the format of \(aq<grain value>:<glob
  204. expression>\(aq; example: \(aqos:Arch*\(aq
  205. .sp
  206. This was changed in version 0.9.8 to accept glob expressions instead of
  207. regular expression. To use regular expression matching with grains, use
  208. the \-\-grain\-pcre option.
  209. .UNINDENT
  210. .INDENT 0.0
  211. .TP
  212. .B \-\-grain\-pcre
  213. The target expression matches values returned by the Salt grains system on
  214. the minions. The target expression is in the format of \(aq<grain value>:<
  215. regular expression>\(aq; example: \(aqos:Arch.*\(aq
  216. .UNINDENT
  217. .INDENT 0.0
  218. .TP
  219. .B \-N, \-\-nodegroup
  220. Use a predefined compound target defined in the Salt master configuration
  221. file.
  222. .UNINDENT
  223. .INDENT 0.0
  224. .TP
  225. .B \-R, \-\-range
  226. Instead of using shell globs to evaluate the target, use a range expression
  227. to identify targets. Range expressions look like %cluster.
  228. .sp
  229. Using the Range option requires that a range server is set up and the
  230. location of the range server is referenced in the master configuration
  231. file.
  232. .UNINDENT
  233. .INDENT 0.0
  234. .TP
  235. .B \-C, \-\-compound
  236. Utilize many target definitions to make the call very granular. This option
  237. takes a group of targets separated by \fBand\fP or \fBor\fP\&. The default matcher is a
  238. glob as usual. If something other than a glob is used, preface it with the
  239. letter denoting the type; example: \(aqwebserv* and \fI\%G@os\fP:Debian or \fI\%E@db*\fP\(aq
  240. Make sure that the compound target is encapsulated in quotes.
  241. .UNINDENT
  242. .INDENT 0.0
  243. .TP
  244. .B \-I, \-\-pillar
  245. Instead of using shell globs to evaluate the target, use a pillar value to
  246. identify targets. The syntax for the target is the pillar key followed by
  247. a glob expression: "role:production*"
  248. .UNINDENT
  249. .INDENT 0.0
  250. .TP
  251. .B \-S, \-\-ipcidr
  252. Match based on Subnet (CIDR notation) or IPv4 address.
  253. .UNINDENT
  254. .SS Output Options
  255. .INDENT 0.0
  256. .TP
  257. .B \-\-out
  258. Pass in an alternative outputter to display the return of data. This
  259. outputter can be any of the available outputters:
  260. .INDENT 7.0
  261. .INDENT 3.5
  262. \fBhighstate\fP, \fBjson\fP, \fBkey\fP, \fBoverstatestage\fP, \fBpprint\fP, \fBraw\fP, \fBtxt\fP, \fByaml\fP, and many others\&.
  263. .UNINDENT
  264. .UNINDENT
  265. .sp
  266. Some outputters are formatted only for data returned from specific functions.
  267. If an outputter is used that does not support the data passed into it, then
  268. Salt will fall back on the \fBpprint\fP outputter and display the return data
  269. using the Python \fBpprint\fP standard library module.
  270. .sp
  271. \fBNOTE:\fP
  272. .INDENT 7.0
  273. .INDENT 3.5
  274. If using \fB\-\-out=json\fP, you will probably want \fB\-\-static\fP as well.
  275. Without the static option, you will get a separate JSON string per minion
  276. which makes JSON output invalid as a whole.
  277. This is due to using an iterative outputter. So if you want to feed it
  278. to a JSON parser, use \fB\-\-static\fP as well.
  279. .UNINDENT
  280. .UNINDENT
  281. .UNINDENT
  282. .INDENT 0.0
  283. .TP
  284. .B \-\-out\-indent OUTPUT_INDENT, \-\-output\-indent OUTPUT_INDENT
  285. Print the output indented by the provided value in spaces. Negative values
  286. disable indentation. Only applicable in outputters that support
  287. indentation.
  288. .UNINDENT
  289. .INDENT 0.0
  290. .TP
  291. .B \-\-out\-file=OUTPUT_FILE, \-\-output\-file=OUTPUT_FILE
  292. Write the output to the specified file.
  293. .UNINDENT
  294. .INDENT 0.0
  295. .TP
  296. .B \-\-out\-file\-append, \-\-output\-file\-append
  297. Append the output to the specified file.
  298. .UNINDENT
  299. .INDENT 0.0
  300. .TP
  301. .B \-\-no\-color
  302. Disable all colored output
  303. .UNINDENT
  304. .INDENT 0.0
  305. .TP
  306. .B \-\-force\-color
  307. Force colored output
  308. .sp
  309. \fBNOTE:\fP
  310. .INDENT 7.0
  311. .INDENT 3.5
  312. When using colored output the color codes are as follows:
  313. .sp
  314. \fBgreen\fP denotes success, \fBred\fP denotes failure, \fBblue\fP denotes
  315. changes and success and \fByellow\fP denotes a expected future change in configuration.
  316. .UNINDENT
  317. .UNINDENT
  318. .UNINDENT
  319. .INDENT 0.0
  320. .TP
  321. .B \-\-state\-output=STATE_OUTPUT, \-\-state_output=STATE_OUTPUT
  322. Override the configured state_output value for minion
  323. output. One of \(aqfull\(aq, \(aqterse\(aq, \(aqmixed\(aq, \(aqchanges\(aq or
  324. \(aqfilter\(aq. Default: \(aqnone\(aq.
  325. .UNINDENT
  326. .INDENT 0.0
  327. .TP
  328. .B \-\-state\-verbose=STATE_VERBOSE, \-\-state_verbose=STATE_VERBOSE
  329. Override the configured state_verbose value for minion
  330. output. Set to True or False. Default: none.
  331. .UNINDENT
  332. .SH SEE ALSO
  333. .sp
  334. \fBsalt(7)\fP
  335. \fBsalt\-master(1)\fP
  336. \fBsalt\-minion(1)\fP
  337. .SH AUTHOR
  338. Thomas S. Hatch <thatch45@gmail.com> and many others, please see the Authors file
  339. .\" Generated by docutils manpage writer.
  340. .