Use the new "nodes list" configuration option. Executing the given path
if the path is prefixed by a `!`. The use case is to decouple the nodes
file from the shared storage, especially in the case where the shared
storage is provided by a vfs module.
For an example, imagine a script that runs `curl` on a URL for a
highly-available web server where the URL provides the content
of the nodes file.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
#include "common/logging.h"
#include "conf/logging_conf.h"
+#include "conf/cluster_conf.h"
#include "conf/ctdb_config.h"
int script_log_level;
}
/* tell ctdb what nodes are available */
- ctdb->nodes_file = talloc_asprintf(ctdb, "%s/nodes", ctdb_base);
+ ctdb->nodes_file = cluster_conf_nodes_list(ctdb, conf);
if (ctdb->nodes_file == NULL) {
DBG_ERR(" Out of memory\n");
goto fail;