ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / conf / ctdb_config.h
blob575e3045fa4853a1948dcdc0fbf9926c888c210c
1 /*
2 CTDB daemon config handling
4 Copyright (C) Martin Schwenke 2018
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef __CTDB_CONFIG_H__
21 #define __CTDB_CONFIG_H__
23 #include "conf/conf.h"
25 struct ctdb_config {
26 /* Cluster */
27 const char *transport;
28 const char *node_address;
29 const char *cluster_lock;
30 const char *recovery_lock;
31 const char *nodes_list;
32 int leader_timeout;
33 bool leader_capability;
35 /* Database */
36 const char *dbdir_volatile;
37 const char *dbdir_persistent;
38 const char *dbdir_state;
39 const char *lock_debug_script;
40 bool tdb_mutexes;
42 /* Event */
43 const char *event_debug_script;
45 /* Failover */
46 bool failover_disabled;
48 /* Legacy */
49 bool realtime_scheduling;
50 bool lmaster_capability;
51 bool start_as_stopped;
52 bool start_as_disabled;
53 const char *script_log_level;
56 extern struct ctdb_config ctdb_config;
58 int ctdb_config_load(TALLOC_CTX *mem_ctx, struct conf_context **conf,
59 bool verbose);
61 #endif /* __CTDB_CONFIG_H__ */