From: John Mulligan Date: Fri, 2 Aug 2024 17:58:59 +0000 (-0400) Subject: ctdb-doc: document nodes list configuration parameter X-Git-Tag: tdb-1.4.12~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a743a24d7588af15375f7d4cafc401523c5c0a32;p=thirdparty%2Fsamba.git ctdb-doc: document nodes list configuration parameter Add the initial documentation of the node list configuration parameter. Signed-off-by: John Mulligan Reviewed-by: Martin Schwenke Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Tue Aug 6 01:50:12 UTC 2024 on atb-devel-224 --- diff --git a/ctdb/doc/ctdb.7.xml b/ctdb/doc/ctdb.7.xml index 0f3fbc6bf6a..be2dd5e5b65 100644 --- a/ctdb/doc/ctdb.7.xml +++ b/ctdb/doc/ctdb.7.xml @@ -233,8 +233,8 @@ Some users like to put this configuration file in their - cluster filesystem. A symbolic link should be used in this - case. + cluster filesystem. A symbolic link or the + nodes list parameter can be used. diff --git a/ctdb/doc/ctdb.conf.5.xml b/ctdb/doc/ctdb.conf.5.xml index b9bf3a6d08b..615a61e5bfe 100644 --- a/ctdb/doc/ctdb.conf.5.xml +++ b/ctdb/doc/ctdb.conf.5.xml @@ -255,6 +255,46 @@ + + nodes list = SOURCE + + + SOURCE specifies the location containing the list of the private + addresses of nodes in the cluster. + + + Typically, SOURCE will be a path to a file that contains the list of + private addresses for the cluster. + For details about the content of the file please see the + PRIVATE ADDRESSES section in + ctdb + 7. + + + As an alternative to using a file one can use an arbitrary command + to provide the contents of the nodes list. If an exclamation point ('!') + is the first character of the SOURCE value, the remainder of the value + will be executed when the private addresses are to be read. + For example, a value of !/usr/local/bin/mynodes cluster1 + would run the given command with the specified arguments. The output + generated by the command (on standard out) must be the same as what is + supported by a SOURCE file. + The command name must be a full path to an executable. Arguments are + supported, but shell-style quoting is not, and space characters will + always produce a new argument for the command. + It is important to note that running this command blocks until + the command has completed. The run time of this command will depend + on how it is implemented and environmental factors. Be aware that if + the command runs for a non-trivial amount of time it can introduce + undesirable stalls into ctdbd. + + + Default: + /usr/local/etc/ctdb/nodes + + + + transport = tcp|ib