salt-call.1 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SALT-CALL" "1" "Jul 07, 2020" "3001.1" "Salt"
  4. .SH NAME
  5. salt-call \- salt-call 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\-call [options]
  40. .ft P
  41. .fi
  42. .UNINDENT
  43. .UNINDENT
  44. .SH DESCRIPTION
  45. .sp
  46. The salt\-call command is used to run module functions locally on a minion
  47. instead of executing them from the master. Salt\-call is used to run a
  48. Standalone Minion, and was originally
  49. created for troubleshooting\&.
  50. .sp
  51. The Salt Master is contacted to retrieve state files and other resources
  52. during execution unless the \fB\-\-local\fP option is specified.
  53. .sp
  54. \fBNOTE:\fP
  55. .INDENT 0.0
  56. .INDENT 3.5
  57. \fBsalt\-call\fP commands execute from the current user\(aqs shell
  58. context, while \fBsalt\fP commands execute from the system\(aqs default context.
  59. .UNINDENT
  60. .UNINDENT
  61. .SH OPTIONS
  62. .INDENT 0.0
  63. .TP
  64. .B \-\-version
  65. Print the version of Salt that is running.
  66. .UNINDENT
  67. .INDENT 0.0
  68. .TP
  69. .B \-\-versions\-report
  70. Show program\(aqs dependencies and version number, and then exit
  71. .UNINDENT
  72. .INDENT 0.0
  73. .TP
  74. .B \-h, \-\-help
  75. Show the help message and exit
  76. .UNINDENT
  77. .INDENT 0.0
  78. .TP
  79. .B \-c CONFIG_DIR, \-\-config\-dir=CONFIG_dir
  80. The location of the Salt configuration directory. This directory contains
  81. the configuration files for Salt master and minions. The default location
  82. on most systems is \fB/etc/salt\fP\&.
  83. .UNINDENT
  84. .INDENT 0.0
  85. .TP
  86. .B \-\-hard\-crash
  87. Raise any original exception rather than exiting gracefully Default: False
  88. .UNINDENT
  89. .INDENT 0.0
  90. .TP
  91. .B \-g, \-\-grains
  92. Return the information generated by the Salt grains
  93. .UNINDENT
  94. .INDENT 0.0
  95. .TP
  96. .B \-m MODULE_DIRS, \-\-module\-dirs=MODULE_DIRS
  97. Specify an additional directory to pull modules from. Multiple directories
  98. can be provided by passing \-m /\-\-module\-dirs multiple times.
  99. .UNINDENT
  100. .INDENT 0.0
  101. .TP
  102. .B \-d, \-\-doc, \-\-documentation
  103. Return the documentation for the specified module or for all modules if
  104. none are specified
  105. .UNINDENT
  106. .INDENT 0.0
  107. .TP
  108. .B \-\-master=MASTER
  109. Specify the master to use. The minion must be authenticated with the
  110. master. If this option is omitted, the master options from the minion
  111. config will be used. If multi masters are set up the first listed master
  112. that responds will be used.
  113. .UNINDENT
  114. .INDENT 0.0
  115. .TP
  116. .B \-\-return RETURNER
  117. Set salt\-call to pass the return data to one or many returner interfaces.
  118. To use many returner interfaces specify a comma delimited list of
  119. returners.
  120. .UNINDENT
  121. .INDENT 0.0
  122. .TP
  123. .B \-\-local
  124. Run salt\-call locally, as if there was no master running.
  125. .UNINDENT
  126. .INDENT 0.0
  127. .TP
  128. .B \-\-file\-root=FILE_ROOT
  129. Set this directory as the base file root.
  130. .UNINDENT
  131. .INDENT 0.0
  132. .TP
  133. .B \-\-pillar\-root=PILLAR_ROOT
  134. Set this directory as the base pillar root.
  135. .UNINDENT
  136. .INDENT 0.0
  137. .TP
  138. .B \-\-retcode\-passthrough
  139. Exit with the salt call retcode and not the salt binary retcode
  140. .UNINDENT
  141. .INDENT 0.0
  142. .TP
  143. .B \-\-metadata
  144. Print out the execution metadata as well as the return. This will print out
  145. the outputter data, the return code, etc.
  146. .UNINDENT
  147. .INDENT 0.0
  148. .TP
  149. .B \-\-id=ID
  150. Specify the minion id to use. If this option is omitted, the id option from
  151. the minion config will be used.
  152. .UNINDENT
  153. .INDENT 0.0
  154. .TP
  155. .B \-\-skip\-grains
  156. Do not load grains.
  157. .UNINDENT
  158. .INDENT 0.0
  159. .TP
  160. .B \-\-refresh\-grains\-cache
  161. Force a refresh of the grains cache
  162. .UNINDENT
  163. .SS Logging Options
  164. .sp
  165. Logging options which override any settings defined on the configuration files.
  166. .INDENT 0.0
  167. .TP
  168. .B \-l LOG_LEVEL, \-\-log\-level=LOG_LEVEL
  169. Console logging log level. One of \fBall\fP, \fBgarbage\fP, \fBtrace\fP,
  170. \fBdebug\fP, \fBinfo\fP, \fBwarning\fP, \fBerror\fP, \fBquiet\fP\&. Default:
  171. \fBwarning\fP\&.
  172. .UNINDENT
  173. .INDENT 0.0
  174. .TP
  175. .B \-\-log\-file=LOG_FILE
  176. Log file path. Default: /var/log/salt/minion\&.
  177. .UNINDENT
  178. .INDENT 0.0
  179. .TP
  180. .B \-\-log\-file\-level=LOG_LEVEL_LOGFILE
  181. Logfile logging log level. One of \fBall\fP, \fBgarbage\fP, \fBtrace\fP,
  182. \fBdebug\fP, \fBinfo\fP, \fBwarning\fP, \fBerror\fP, \fBquiet\fP\&. Default:
  183. \fBwarning\fP\&.
  184. .UNINDENT
  185. .SS Output Options
  186. .INDENT 0.0
  187. .TP
  188. .B \-\-out
  189. Pass in an alternative outputter to display the return of data. This
  190. outputter can be any of the available outputters:
  191. .INDENT 7.0
  192. .INDENT 3.5
  193. \fBhighstate\fP, \fBjson\fP, \fBkey\fP, \fBoverstatestage\fP, \fBpprint\fP, \fBraw\fP, \fBtxt\fP, \fByaml\fP, and many others\&.
  194. .UNINDENT
  195. .UNINDENT
  196. .sp
  197. Some outputters are formatted only for data returned from specific functions.
  198. If an outputter is used that does not support the data passed into it, then
  199. Salt will fall back on the \fBpprint\fP outputter and display the return data
  200. using the Python \fBpprint\fP standard library module.
  201. .UNINDENT
  202. .INDENT 0.0
  203. .TP
  204. .B \-\-out\-indent OUTPUT_INDENT, \-\-output\-indent OUTPUT_INDENT
  205. Print the output indented by the provided value in spaces. Negative values
  206. disable indentation. Only applicable in outputters that support
  207. indentation.
  208. .UNINDENT
  209. .INDENT 0.0
  210. .TP
  211. .B \-\-out\-file=OUTPUT_FILE, \-\-output\-file=OUTPUT_FILE
  212. Write the output to the specified file.
  213. .UNINDENT
  214. .INDENT 0.0
  215. .TP
  216. .B \-\-out\-file\-append, \-\-output\-file\-append
  217. Append the output to the specified file.
  218. .UNINDENT
  219. .INDENT 0.0
  220. .TP
  221. .B \-\-no\-color
  222. Disable all colored output
  223. .UNINDENT
  224. .INDENT 0.0
  225. .TP
  226. .B \-\-force\-color
  227. Force colored output
  228. .sp
  229. \fBNOTE:\fP
  230. .INDENT 7.0
  231. .INDENT 3.5
  232. When using colored output the color codes are as follows:
  233. .sp
  234. \fBgreen\fP denotes success, \fBred\fP denotes failure, \fBblue\fP denotes
  235. changes and success and \fByellow\fP denotes a expected future change in configuration.
  236. .UNINDENT
  237. .UNINDENT
  238. .UNINDENT
  239. .INDENT 0.0
  240. .TP
  241. .B \-\-state\-output=STATE_OUTPUT, \-\-state_output=STATE_OUTPUT
  242. Override the configured state_output value for minion
  243. output. One of \(aqfull\(aq, \(aqterse\(aq, \(aqmixed\(aq, \(aqchanges\(aq or
  244. \(aqfilter\(aq. Default: \(aqnone\(aq.
  245. .UNINDENT
  246. .INDENT 0.0
  247. .TP
  248. .B \-\-state\-verbose=STATE_VERBOSE, \-\-state_verbose=STATE_VERBOSE
  249. Override the configured state_verbose value for minion
  250. output. Set to True or False. Default: none.
  251. .UNINDENT
  252. .SH SEE ALSO
  253. .sp
  254. \fBsalt(1)\fP
  255. \fBsalt\-master(1)\fP
  256. \fBsalt\-minion(1)\fP
  257. .SH AUTHOR
  258. Thomas S. Hatch <thatch45@gmail.com> and many others, please see the Authors file
  259. .\" Generated by docutils manpage writer.
  260. .