Debian Codegraph @

doc/man/man5/clush.conf.5

raw
1 .\" Man page generated from reStructuredText.
2 .
3 .
4 .nr rst2man-indent-level 0
5 .
6 .de1 rstReportMargin
7 \\$1 \\n[an-margin]
8 level \\n[rst2man-indent-level]
9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
10 -
11 \\n[rst2man-indent0]
12 \\n[rst2man-indent1]
13 \\n[rst2man-indent2]
14 ..
15 .de1 INDENT
16 .\" .rstReportMargin pre:
17 . RS \\$1
18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
19 . nr rst2man-indent-level +1
20 .\" .rstReportMargin post:
21 ..
22 .de UNINDENT
23 . RE
24 .\" indent \\n[an-margin]
25 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
26 .nr rst2man-indent-level -1
27 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
28 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
29 ..
30 .TH "CLUSH.CONF" 5 "2026-07-16" "1.10.1" "ClusterShell User Manual"
31 .SH NAME
32 clush.conf \- Configuration file for clush
33 .SH DESCRIPTION
34 .sp
35 \fBclush\fP(1) configuration files are in Python\(aqs ConfigParser format.
36 .SS Locations
37 .sp
38 \fBclush\fP(1) obtains configuration options from the following sources, in
39 decreasing order of precedence:
40 .INDENT 0.0
41 .INDENT 3.5
42 .INDENT 0.0
43 .IP 1. 3
44 command\-line options
45 .IP 2. 3
46 \fI$CLUSTERSHELL_CFGDIR/clush.conf\fP (only used when $CLUSTERSHELL_CFGDIR
47 is defined)
48 .IP 3. 3
49 user configuration file (\fI$XDG_CONFIG_HOME/clustershell/clush.conf\fP,
50 defaults to \fI$HOME/.config/clustershell/clush.conf\fP)
51 .IP 4. 3
52 Python virtual environment (\fI{sys.prefix}/etc/clustershell/clush.conf\fP)
53 .IP 5. 3
54 local pip user installation (\fI$HOME/.local/etc/clustershell/clush.conf\fP)
55 .IP 6. 3
56 system\-wide configuration file (\fI/etc/clustershell/clush.conf\fP)
57 .UNINDENT
58 .UNINDENT
59 .UNINDENT
60 .sp
61 For each parameter, the first obtained value will be used.
62 .sp
63 The configuration file has a format in the style of RFC 822 composed
64 of one main section:
65 .INDENT 0.0
66 .TP
67 .B Main
68 Program options definition
69 .UNINDENT
70 .SS [Main]
71 .sp
72 Configuration parameters of the \fBMain\fP section are described below.
73 .INDENT 0.0
74 .TP
75 .B fanout
76 Size of the sliding window (fanout) of active commands for \fBclush\fP\&. This
77 \fIfanout\fP is used to avoid too many concurrent connections and to conserve
78 resources on the initiating hosts. In tree mode, the same \fIfanout\fP value is
79 used on the head node and on each gateway (the \fIfanout\fP value is propagated).
80 That is, if the \fIfanout\fP is \fB16\fP on the head node, each gateway will
81 initiate up to \fB16\fP connections to their target nodes at the same time.
82 .TP
83 .B confdir
84 Optional list of directory paths where clush should look for \fI\&.conf\fP files
85 which define run modes that can then be activated with \fB\-\-mode\fP\&. All other
86 clush config file settings defined here might be overridden in a run mode.
87 Each mode section should have a name prefixed by \(dqmode:\(dq to clearly identify
88 a section defining a mode. Duplicate modes are not allowed in those files.
89 Configuration files that are not readable by the current user are ignored.
90 The variable \fI$CFGDIR\fP is replaced by the path of the highest priority
91 configuration directory found (where clush.conf resides). The default confdir
92 value enables both system\-wide and any installed user configuration (thanks
93 to \fI$CFGDIR\fP). Duplicate directory paths are ignored.
94 .TP
95 .B connect_timeout
96 Timeout in seconds to allow a connection to establish. This parameter is
97 passed to ssh. If set to \fI0\fP, no timeout occurs.
98 .TP
99 .B command_prefix
100 Command prefix. Generally used for specific run modes, for example to
101 implement \fBsudo\fP(8) support.
102 .TP
103 .B command_timeout
104 Timeout in seconds to allow a command to complete since the connection has
105 been established. This parameter is passed to ssh. In addition, the
106 ClusterShell library ensures that any commands complete in less than
107 ( connect_timeout + command_timeout ). If set to \fI0\fP, no timeout occurs.
108 .TP
109 .B color
110 \fBclush\fP can use NO_COLOR, CLICOLOR and CLICOLOR_FORCE
111 environment variables. NO_COLOR takes precedence over CLICOLOR_FORCE which
112 takes precedence over CLICOLOR. When the option is set in configuration file
113 environment variables are taken into account only with \fIauto\fP argument.
114 \fBcolor\fP tells whether to use ANSI colors to surround node or nodeset
115 prefix/header with escape sequences to display them in color on the terminal.
116 Valid arguments are \fBnever\fP, \fBalways\fP or \fBauto\fP (which uses color if
117 standard output/error refer to a terminal). Colors are set to [34m (blue
118 foreground text) for stdout and [31m (red foreground text) for stderr, and
119 cannot be modified.
120 .TP
121 .B fd_max
122 Maximum number of open file descriptors permitted per clush process (soft
123 resource limit for open files). This limit can never exceed the system
124 (hard) limit. The \fIfd_max\fP (soft) and system (hard) limits should be high
125 enough to run \fBclush\fP, although their values depend on your \fIfanout\fP value.
126 .TP
127 .B history_size
128 Set the maximum number of history entries saved in the GNU readline history
129 list. Negative values imply unlimited history file size.
130 .TP
131 .B node_count
132 Should \fBclush\fP display additional (node count) information in buffer
133 header? (\fIyes\fP/\fIno\fP)
134 .TP
135 .B maxrc
136 Should \fBclush\fP return the largest of command return codes? (yes/no)
137 .TP
138 .B password_prompt
139 Enable password prompt and password forwarding to stdin? (yes/no) Generally
140 used for specific run modes, for example to implement interactive
141 \fBsudo\fP(8) support.
142 .TP
143 .B verbosity
144 Set the verbosity level: \fI0\fP (quiet), \fI1\fP (default), \fI2\fP (verbose) or more
145 (debug).
146 .TP
147 .B ssh_user
148 Set the ssh user to use for remote connection (default is to not specify).
149 .TP
150 .B ssh_path
151 Set the ssh binary path to use for remote connection (default is \fIssh\fP).
152 .TP
153 .B ssh_options
154 Set additional options to pass to the underlying ssh command.
155 .TP
156 .B scp_path
157 Set the scp binary path to use for remote copy (default is \fIscp\fP).
158 .TP
159 .B scp_options
160 Set additional options to pass to the underlying scp command. If not
161 specified, ssh_options are used instead.
162 .TP
163 .B rsh_path
164 Set the rsh binary path to use for remote connection (default is
165 \fIrsh\fP). You could easily use mrsh or krsh by simply changing this value.
166 .TP
167 .B rcp_path
168 Same as rsh_path for rcp command. (Default is \fIrcp\fP)
169 .TP
170 .B rsh_options
171 Set additional options to pass to the underlying rsh/rcp command.
172 .UNINDENT
173 .SS Run modes
174 .sp
175 Since version 1.9, clush has support for run modes, which are special
176 \fBclush.conf\fP(5) settings with a given name. Two run modes are provided in
177 example configuration files that can be copied and modified. They implement
178 password\-based authentication with \fBsshpass\fP(1) and support of interactive
179 \fBsudo\fP(8) with password.
180 .sp
181 To use a run mode with \fBclush \-\-mode\fP, install a configuration file in one of
182 \fBclush.conf\fP(5)\(aqs \fIconfdir\fP (usually \fBclush.conf.d\fP). Only configuration
183 files ending in \fI\&.conf\fP are scanned. If the user running \fBclush\fP(1) doesn\(aqt
184 have read access to a configuration file, it is ignored. When \fB\-\-mode\fP is
185 specified, you can display all available run modes for the current user by
186 enabling debug mode (\fB\-d\fP).
187 .SH EXAMPLES
188 .sp
189 Simple configuration file.
190 .SS \fIclush.conf\fP
191 .nf
192 [Main]
193 fanout: 128
194 connect_timeout: 15
195 command_timeout: 0
196 history_size: 100
197 color: auto
198 fd_max: 10240
199 maxrc: no
200 node_count: yes
201 confdir: /etc/clustershell/clush.conf.d
202
203 .fi
204 .sp
205 .SH FILES
206 .INDENT 0.0
207 .TP
208 .B \fI$CLUSTERSHELL_CFGDIR/clush.conf\fP
209 Global clush configuration file. If $CLUSTERSHELL_CFGDIR is not defined,
210 \fI/etc/clustershell/clush.conf\fP is used instead.
211 .TP
212 .B \fI$XDG_CONFIG_HOME/clustershell/clush.conf\fP
213 User configuration file for clush. If $XDG_CONFIG_HOME is not defined,
214 \fI$HOME/.config/clustershell/clush.conf\fP is used instead.
215 .TP
216 .B \fI{sys.prefix}/etc/clustershell/clush.conf\fP
217 Configuration file when ClusterShell is installed in a Python virtual
218 environment.
219 .TP
220 .B \fI$HOME/.local/etc/clustershell/clush.conf\fP
221 Local user configuration file for clush (default installation for pip \-\-user)
222 .TP
223 .B \fI~/.clush.conf\fP
224 Deprecated per\-user clush configuration file (no longer read since
225 version 1.9).
226 .UNINDENT
227 .SH HISTORY
228 .sp
229 As of ClusterShell version 1.3, the \fBExternal\fP section has been removed
230 from \fIclush.conf\fP\&. External commands whose outputs were used by \fBclush\fP
231 (\-a, \-g, \-X) are now handled by the library itself and defined in
232 \fBgroups.conf\fP(5).
233 .SH SEE ALSO
234 .sp
235 \fBclush\fP(1), \fBgroups.conf\fP(5), \fBsshpass\fP(1), \fBsudo\fP(8).
236 .sp
237 \fI\%https://clustershell.readthedocs.io/\fP
238 .sp
239 Python ConfigParser
240 .sp
241 \fI\%https://docs.python.org/3/library/configparser.html\fP
242 .SH AUTHOR
243 Stephane Thiell
244 .SH COPYRIGHT
245 GNU Lesser General Public License version 2.1 or later (LGPLv2.1+)
246 .\" Generated by docutils manpage writer.
247 .