salt-ssh.1 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SALT-SSH" "1" "Apr 14, 2020" "3000.2" "Salt"
  4. .SH NAME
  5. salt-ssh \- salt-ssh Documentation
  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. .sp
  37. .nf
  38. .ft C
  39. salt\-ssh \(aq*\(aq [ options ] sys.doc
  40. salt\-ssh \-E \(aq.*\(aq [ options ] sys.doc cmd
  41. .ft P
  42. .fi
  43. .UNINDENT
  44. .UNINDENT
  45. .SH DESCRIPTION
  46. .sp
  47. Salt SSH allows for salt routines to be executed using only SSH for transport
  48. .SH OPTIONS
  49. .INDENT 0.0
  50. .TP
  51. .B \-\-version
  52. Print the version of Salt that is running.
  53. .UNINDENT
  54. .INDENT 0.0
  55. .TP
  56. .B \-\-versions\-report
  57. Show program\(aqs dependencies and version number, and then exit
  58. .UNINDENT
  59. .INDENT 0.0
  60. .TP
  61. .B \-h, \-\-help
  62. Show the help message and exit
  63. .UNINDENT
  64. .INDENT 0.0
  65. .TP
  66. .B \-c CONFIG_DIR, \-\-config\-dir=CONFIG_dir
  67. The location of the Salt configuration directory. This directory contains
  68. the configuration files for Salt master and minions. The default location
  69. on most systems is \fB/etc/salt\fP\&.
  70. .UNINDENT
  71. .INDENT 0.0
  72. .TP
  73. .B \-\-hard\-crash
  74. Raise any original exception rather than exiting gracefully. Default: False.
  75. .UNINDENT
  76. .INDENT 0.0
  77. .TP
  78. .B \-r, \-\-raw, \-\-raw\-shell
  79. Execute a raw shell command.
  80. .UNINDENT
  81. .INDENT 0.0
  82. .TP
  83. .B \-\-roster
  84. Define which roster system to use, this defines if a database backend,
  85. scanner, or custom roster system is used. Default is the flat file roster.
  86. .UNINDENT
  87. .INDENT 0.0
  88. .TP
  89. .B \-\-roster\-file
  90. Define an alternative location for the default roster file location. The
  91. default roster file is called \fBroster\fP and is found in the same directory
  92. as the master config file.
  93. .sp
  94. New in version 2014.1.0.
  95. .UNINDENT
  96. .INDENT 0.0
  97. .TP
  98. .B \-\-refresh, \-\-refresh\-cache
  99. Force a refresh of the master side data cache of the target\(aqs data. This
  100. is needed if a target\(aqs grains have been changed and the auto refresh
  101. timeframe has not been reached.
  102. .UNINDENT
  103. .INDENT 0.0
  104. .TP
  105. .B \-\-max\-procs
  106. Set the number of concurrent minions to communicate with. This value
  107. defines how many processes are opened up at a time to manage connections,
  108. the more running process the faster communication should be, default
  109. is 25.
  110. .UNINDENT
  111. .INDENT 0.0
  112. .TP
  113. .B \-\-extra\-filerefs=EXTRA_FILEREFS
  114. Pass in extra files to include in the state tarball.
  115. .UNINDENT
  116. .INDENT 0.0
  117. .TP
  118. .B \-\-min\-extra\-modules=MIN_EXTRA_MODS
  119. One or comma\-separated list of extra Python modulesto be included
  120. into Minimal Salt.
  121. .UNINDENT
  122. .INDENT 0.0
  123. .TP
  124. .B \-\-thin\-extra\-modules=THIN_EXTRA_MODS
  125. One or comma\-separated list of extra Python modulesto be included
  126. into Thin Salt.
  127. .UNINDENT
  128. .INDENT 0.0
  129. .TP
  130. .B \-v, \-\-verbose
  131. Turn on command verbosity, display jid.
  132. .UNINDENT
  133. .INDENT 0.0
  134. .TP
  135. .B \-s, \-\-static
  136. Return the data from minions as a group after they all return.
  137. .UNINDENT
  138. .INDENT 0.0
  139. .TP
  140. .B \-w, \-\-wipe
  141. Remove the deployment of the salt files when done executing.
  142. .UNINDENT
  143. .INDENT 0.0
  144. .TP
  145. .B \-W, \-\-rand\-thin\-dir
  146. Select a random temp dir to deploy on the remote system. The dir
  147. will be cleaned after the execution.
  148. .UNINDENT
  149. .INDENT 0.0
  150. .TP
  151. .B \-t, \-\-regen\-thin, \-\-thin
  152. Trigger a thin tarball regeneration. This is needed if custom
  153. grains/modules/states have been added or updated.
  154. .UNINDENT
  155. .INDENT 0.0
  156. .TP
  157. .B \-\-python2\-bin=PYTHON2_BIN
  158. Path to a python2 binary which has salt installed.
  159. .UNINDENT
  160. .INDENT 0.0
  161. .TP
  162. .B \-\-python3\-bin=PYTHON3_BIN
  163. Path to a python3 binary which has salt installed.
  164. .UNINDENT
  165. .INDENT 0.0
  166. .TP
  167. .B \-\-jid=JID
  168. Pass a JID to be used instead of generating one.
  169. .UNINDENT
  170. .SS Authentication Options
  171. .INDENT 0.0
  172. .TP
  173. .B \-\-priv=SSH_PRIV
  174. Specify the SSH private key file to be used for authentication.
  175. .UNINDENT
  176. .INDENT 0.0
  177. .TP
  178. .B \-\-priv\-passwd=SSH_PRIV_PASSWD
  179. Specify the SSH private key file\(aqs passphrase if need be.
  180. .UNINDENT
  181. .INDENT 0.0
  182. .TP
  183. .B \-i, \-\-ignore\-host\-keys
  184. By default ssh host keys are honored and connections will ask for
  185. approval. Use this option to disable StrictHostKeyChecking.
  186. .UNINDENT
  187. .INDENT 0.0
  188. .TP
  189. .B \-\-no\-host\-keys
  190. Fully ignores ssh host keys which by default are honored and connections
  191. would ask for approval. Useful if the host key of a remote server has
  192. changed and would still error with \-\-ignore\-host\-keys.
  193. .UNINDENT
  194. .INDENT 0.0
  195. .TP
  196. .B \-\-user=SSH_USER
  197. Set the default user to attempt to use when authenticating.
  198. .UNINDENT
  199. .INDENT 0.0
  200. .TP
  201. .B \-\-passwd
  202. Set the default password to attempt to use when authenticating.
  203. .UNINDENT
  204. .INDENT 0.0
  205. .TP
  206. .B \-\-askpass
  207. Interactively ask for the SSH password with no echo \- avoids password
  208. in process args and stored in history.
  209. .UNINDENT
  210. .INDENT 0.0
  211. .TP
  212. .B \-\-key\-deploy
  213. Set this flag to attempt to deploy the authorized ssh key with all
  214. minions. This combined with \-\-passwd can make initial deployment of keys
  215. very fast and easy.
  216. .UNINDENT
  217. .INDENT 0.0
  218. .TP
  219. .B \-\-identities\-only
  220. Use the only authentication identity files configured in the ssh_config
  221. files. See IdentitiesOnly flag in man ssh_config.
  222. .UNINDENT
  223. .INDENT 0.0
  224. .TP
  225. .B \-\-sudo
  226. Run command via sudo.
  227. .UNINDENT
  228. .SS Scan Roster Options
  229. .INDENT 0.0
  230. .TP
  231. .B \-\-scan\-ports=SSH_SCAN_PORTS
  232. Comma\-separated list of ports to scan in the scan roster.
  233. .UNINDENT
  234. .INDENT 0.0
  235. .TP
  236. .B \-\-scan\-timeout=SSH_SCAN_TIMEOUT
  237. Scanning socket timeout for the scan roster.
  238. .UNINDENT
  239. .SS Logging Options
  240. .sp
  241. Logging options which override any settings defined on the configuration files.
  242. .INDENT 0.0
  243. .TP
  244. .B \-l LOG_LEVEL, \-\-log\-level=LOG_LEVEL
  245. Console logging log level. One of \fBall\fP, \fBgarbage\fP, \fBtrace\fP,
  246. \fBdebug\fP, \fBinfo\fP, \fBwarning\fP, \fBerror\fP, \fBquiet\fP\&. Default:
  247. \fBwarning\fP\&.
  248. .UNINDENT
  249. .INDENT 0.0
  250. .TP
  251. .B \-\-log\-file=LOG_FILE
  252. Log file path. Default: /var/log/salt/ssh\&.
  253. .UNINDENT
  254. .INDENT 0.0
  255. .TP
  256. .B \-\-log\-file\-level=LOG_LEVEL_LOGFILE
  257. Logfile logging log level. One of \fBall\fP, \fBgarbage\fP, \fBtrace\fP,
  258. \fBdebug\fP, \fBinfo\fP, \fBwarning\fP, \fBerror\fP, \fBquiet\fP\&. Default:
  259. \fBwarning\fP\&.
  260. .UNINDENT
  261. .SS Target Selection
  262. .sp
  263. The default matching that Salt utilizes is shell\-style globbing around the
  264. minion id. See \fI\%https://docs.python.org/2/library/fnmatch.html#module\-fnmatch\fP\&.
  265. .INDENT 0.0
  266. .TP
  267. .B \-E, \-\-pcre
  268. The target expression will be interpreted as a PCRE regular expression
  269. rather than a shell glob.
  270. .UNINDENT
  271. .SS Output Options
  272. .INDENT 0.0
  273. .TP
  274. .B \-\-out
  275. Pass in an alternative outputter to display the return of data. This
  276. outputter can be any of the available outputters:
  277. .INDENT 7.0
  278. .INDENT 3.5
  279. \fBhighstate\fP, \fBjson\fP, \fBkey\fP, \fBoverstatestage\fP, \fBpprint\fP, \fBraw\fP, \fBtxt\fP, \fByaml\fP, and many others\&.
  280. .UNINDENT
  281. .UNINDENT
  282. .sp
  283. Some outputters are formatted only for data returned from specific functions.
  284. If an outputter is used that does not support the data passed into it, then
  285. Salt will fall back on the \fBpprint\fP outputter and display the return data
  286. using the Python \fBpprint\fP standard library module.
  287. .UNINDENT
  288. .INDENT 0.0
  289. .TP
  290. .B \-\-out\-indent OUTPUT_INDENT, \-\-output\-indent OUTPUT_INDENT
  291. Print the output indented by the provided value in spaces. Negative values
  292. disable indentation. Only applicable in outputters that support
  293. indentation.
  294. .UNINDENT
  295. .INDENT 0.0
  296. .TP
  297. .B \-\-out\-file=OUTPUT_FILE, \-\-output\-file=OUTPUT_FILE
  298. Write the output to the specified file.
  299. .UNINDENT
  300. .INDENT 0.0
  301. .TP
  302. .B \-\-out\-file\-append, \-\-output\-file\-append
  303. Append the output to the specified file.
  304. .UNINDENT
  305. .INDENT 0.0
  306. .TP
  307. .B \-\-no\-color
  308. Disable all colored output
  309. .UNINDENT
  310. .INDENT 0.0
  311. .TP
  312. .B \-\-force\-color
  313. Force colored output
  314. .sp
  315. \fBNOTE:\fP
  316. .INDENT 7.0
  317. .INDENT 3.5
  318. When using colored output the color codes are as follows:
  319. .sp
  320. \fBgreen\fP denotes success, \fBred\fP denotes failure, \fBblue\fP denotes
  321. changes and success and \fByellow\fP denotes a expected future change in configuration.
  322. .UNINDENT
  323. .UNINDENT
  324. .UNINDENT
  325. .INDENT 0.0
  326. .TP
  327. .B \-\-state\-output=STATE_OUTPUT, \-\-state_output=STATE_OUTPUT
  328. Override the configured state_output value for minion
  329. output. One of \(aqfull\(aq, \(aqterse\(aq, \(aqmixed\(aq, \(aqchanges\(aq or
  330. \(aqfilter\(aq. Default: \(aqnone\(aq.
  331. .UNINDENT
  332. .INDENT 0.0
  333. .TP
  334. .B \-\-state\-verbose=STATE_VERBOSE, \-\-state_verbose=STATE_VERBOSE
  335. Override the configured state_verbose value for minion
  336. output. Set to True or False. Default: none.
  337. .UNINDENT
  338. .sp
  339. \fBNOTE:\fP
  340. .INDENT 0.0
  341. .INDENT 3.5
  342. If using \fB\-\-out=json\fP, you will probably want \fB\-\-static\fP as well.
  343. Without the static option, you will get a separate JSON string per minion
  344. which makes JSON output invalid as a whole.
  345. This is due to using an iterative outputter. So if you want to feed it
  346. to a JSON parser, use \fB\-\-static\fP as well.
  347. .UNINDENT
  348. .UNINDENT
  349. .SH SEE ALSO
  350. .sp
  351. \fBsalt(7)\fP
  352. \fBsalt\-master(1)\fP
  353. \fBsalt\-minion(1)\fP
  354. .SH AUTHOR
  355. Thomas S. Hatch <thatch45@gmail.com> and many others, please see the Authors file
  356. .\" Generated by docutils manpage writer.
  357. .