@@ -11,23 +11,30 @@ clush
1111clush.conf
1212^^^^^^^^^^
1313
14- The following configuration file defines global default values for
15- several * clush * tool parameters::
14+ The following configuration file defines system-wide default values for
15+ several `` clush `` tool parameters::
1616
17- $CLUSTERSHELL_CFGDIR/clush.conf
18-
19- If *$CLUSTERSHELL_CFGDIR * is not defined, */etc/clustershell/clush.conf * will
20- be used,
17+ /etc/clustershell/clush.conf
2118
22- * clush * settings might then be overridden (globally, or per user) if one of the
23- following files is found, in priority order::
19+ `` clush `` settings might then be overridden (globally, or per user) if one of
20+ the following files is found, in priority order::
2421
2522 $XDG_CONFIG_HOME/clustershell/clush.conf
2623 $HOME/.config/clustershell/clush.conf (only if $XDG_CONFIG_HOME is not defined)
24+ {sys.prefix}/etc/clustershell/clush.conf
2725 $HOME/.local/etc/clustershell/clush.conf
2826 $HOME/.clush.conf (deprecated, for 1.6 compatibility only)
2927
30- The following table describes available *clush * config file settings.
28+ .. note :: The path using `sys.prefix`_ was added in version 1.9.1 and is
29+ useful for Python virtual environments.
30+
31+ In addition, if the environment variable ``$CLUSTERSHELL_CFGDIR `` is defined and
32+ valid, it will used instead. In such case, the following configuration file
33+ will be tried first for ``clush ``::
34+
35+ $CLUSTERSHELL_CFGDIR/clush.conf
36+
37+ The following table describes available ``clush `` config file settings.
3138
3239+-----------------+----------------------------------------------------+
3340| Key | Value |
@@ -36,10 +43,10 @@ The following table describes available *clush* config file settings.
3643| | number of *ssh(1) * allowed to run at the same |
3744| | time). |
3845+-----------------+----------------------------------------------------+
39- | confdir | Optional list of directory paths where * clush * |
46+ | confdir | Optional list of directory paths where `` clush `` |
4047| | should look for **.conf ** files which define |
4148| | :ref: `run modes <clushmode-config >` that can then |
42- | | be activated with `--mode `. All other * clush * |
49+ | | be activated with `--mode `. All other `` clush `` |
4350| | config file settings defined in this table might |
4451| | be overriden in a run mode. Each mode section |
4552| | should have a name prefixed by "mode:" to clearly |
@@ -80,25 +87,25 @@ The following table describes available *clush* config file settings.
8087| | stderr, and cannot be modified. |
8188+-----------------+----------------------------------------------------+
8289| fd_max | Maximum number of open file descriptors |
83- | | permitted per * clush * process (soft resource limit |
84- | | for open files). This limit can never exceed the |
85- | | system (hard) limit. The *fd_max * (soft) and |
90+ | | permitted per `` clush `` process (soft resource |
91+ | | limit for open files). This limit can never exceed |
92+ | | the system (hard) limit. The *fd_max * (soft) and |
8693| | system (hard) limits should be high enough to |
87- | | run * clush * , although their values depend on |
94+ | | run `` clush `` , although their values depend on |
8895| | your fanout value. |
8996+-----------------+----------------------------------------------------+
9097| history_size | Set the maximum number of history entries saved in |
9198| | the GNU readline history list. Negative values |
9299| | imply unlimited history file size. |
93100+-----------------+----------------------------------------------------+
94- | node_count | Should * clush * display additional (node count) |
101+ | node_count | Should `` clush `` display additional (node count) |
95102| | information in buffer header? (yes/no) |
96103+-----------------+----------------------------------------------------+
97- | maxrc | Should * clush * return the largest of command |
104+ | maxrc | Should `` clush `` return the largest of command |
98105| | return codes? (yes/no) |
99- | | If set to no (the default), * clush * exit status |
106+ | | If set to no (the default), `` clush `` exit status |
100107| | gives no information about command return codes, |
101- | | but rather reports on * clush * execution itself |
108+ | | but rather reports on `` clush `` execution itself |
102109| | (zero indicating a successful run). |
103110+-----------------+----------------------------------------------------+
104111| password_prompt | Enable password prompt and password forwarding to |
@@ -143,7 +150,7 @@ The following table describes available *clush* config file settings.
143150Run modes
144151^^^^^^^^^
145152
146- Since version 1.9, * clush * has support for run modes, which are special
153+ Since version 1.9, `` clush `` has support for run modes, which are special
147154:ref: `clush-config ` settings with a given name. Two run modes are provided in
148155example configuration files that can be copied and modified. They implement
149156password-based authentication with *sshpass(1) * and support of interactive
@@ -152,7 +159,7 @@ password-based authentication with *sshpass(1)* and support of interactive
152159To use a run mode with ``clush --mode ``, install a configuration file in one
153160of :ref: `clush-config `'s ``confdir `` (usually ``clush.conf.d ``). Only
154161configuration files ending in **.conf ** are scanned. If the user running
155- * clush * doesn't have read access to a configuration file, is it ignored.
162+ `` clush `` doesn't have read access to a configuration file, it is ignored.
156163When ``--mode `` is specified, you can display all available run modes for
157164the current user by enabling debug mode (``-d ``).
158165
@@ -189,21 +196,28 @@ ClusterShell loads *groups.conf* configuration files that define how to
189196obtain node groups configuration, ie. the way the library should access
190197file-based or external node group **sources **.
191198
192- The following configuration file defines global default values for
199+ The following configuration file defines system-wide default values for
193200*groups.conf *::
194201
195- $CLUSTERSHELL_CFGDIR/groups.conf
196-
197- If *$CLUSTERSHELL_CFGDIR * is not defined, */etc/clustershell/groups.conf * will
198- be used,
202+ /etc/clustershell/groups.conf
199203
200204*groups.conf * settings might then be overridden (globally, or per user) if one
201205of the following files is found, in priority order::
202206
203207 $XDG_CONFIG_HOME/clustershell/groups.conf
204208 $HOME/.config/clustershell/groups.conf (only if $XDG_CONFIG_HOME is not defined)
209+ {sys.prefix}/etc/clustershell/groups.conf
205210 $HOME/.local/etc/clustershell/groups.conf
206211
212+ .. note :: The path using `sys.prefix`_ was added in version 1.9.1 and is
213+ useful for Python virtual environments.
214+
215+ In addition, if the environment variable ``$CLUSTERSHELL_CFGDIR `` is defined and
216+ valid, it will used instead. In such case, the following configuration file
217+ will be tried first for *groups.conf *::
218+
219+ $CLUSTERSHELL_CFGDIR/groups.conf
220+
207221This makes possible for an user to have its own *node groups * configuration.
208222If no readable configuration file is found, group support will be disabled but
209223other node set operations will still work.
@@ -611,18 +625,22 @@ in *defaults.conf*.
611625
612626The following configuration file defines ClusterShell system-wide defaults::
613627
614- $CLUSTERSHELL_CFGDIR/defaults.conf
615-
616- If *$CLUSTERSHELL_CFGDIR * is not defined, */etc/clustershell/defaults.conf *
617- will be used,
628+ /etc/clustershell/defaults.conf
618629
619630*defaults.conf * settings might then be overridden (globally, or per user) if
620631one of the following files is found, in priority order::
621632
622633 $XDG_CONFIG_HOME/clustershell/defaults.conf
623634 $HOME/.config/clustershell/defaults.conf (only if $XDG_CONFIG_HOME is not defined)
635+ {sys.prefix}/etc/clustershell/defaults.conf
624636 $HOME/.local/etc/clustershell/defaults.conf
625637
638+ In addition, if the environment variable ``$CLUSTERSHELL_CFGDIR `` is defined and
639+ valid, it will used instead. In such case, the following configuration file
640+ will be tried first for ClusterShell defaults::
641+
642+ $CLUSTERSHELL_CFGDIR/defaults.conf
643+
626644Use case: rsh
627645^^^^^^^^^^^^^^
628646
@@ -660,3 +678,4 @@ without error.
660678
661679.. _ConfigParser : http://docs.python.org/library/configparser.html
662680.. _nodeset : https://xcat-docs.readthedocs.io/en/stable/guides/admin-guides/references/man8/nodeset.8.html
681+ .. _sys.prefix : https://docs.python.org/3/library/sys.html#sys.prefix
0 commit comments