2 # CTDB configuration for simple cluster with NAT gateway
4 # This is the sample configuration for a 3-node CTDB cluster providing file
5 # services via Samba and NFS.
9 # internal network (192.168.1.0/24)
10 # -------+----------------------+-----------------------+----------
13 # eth0 | 192.168.1.1 eth0 | 192.168.1.2 eth0 | 192.168.1.3
14 # +-----+-----+ +-----+-----+ +-----+-----+
16 # | Node 1 | | Node 2 | | Node 3 |
18 # +-----+-----+ +-----+-----+ +-----+-----+
19 # eth1 | eth1 | eth1 |
22 # -------+----------------------+-----------------------+-----+----
23 # public network (10.1.1.0/24) |
29 # Each node has a shared storage - /shared
34 # Cluster provides file services on following IP addresses
36 # 10.1.1.101 - 10.1.1.106
38 # When a node is not hosting any IPs, it cannot connect to network
39 # infrastructure (e.g. DNS, Active Directory, ...).
41 # Using NAT gateway feature of CTDB allows a node not hosting IPs to connect
42 # to network infrastructure.
45 CTDB_RECOVERY_LOCK=/shared/recovery.lock
50 # ---------- /etc/ctdb/nodes ----------
54 # ---------- /etc/ctdb/nodes ----------
56 CTDB_NODES=/etc/ctdb/nodes
59 # Public addresses configuration
61 # ---------- /etc/ctdb/public_addresses ----------
68 # ---------- /etc/ctdb/public_addresses ----------
70 CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses
72 # Enable logging to syslog
76 CTDB_DEBUGLEVEL=NOTICE
78 # Auto start/stop managed services
79 CTDB_AUTO_STARTSTOP=yes
84 CTDB_MANAGES_SAMBA=yes
85 # CTDB_SAMBA_SKIP_SHARE_CHECK=yes
87 CTDB_MANAGES_WINBIND=yes
93 CTDB_RPCINFO_LOCALHOST="127.0.0.1"
94 # CTDB_MONITOR_NFS_THREAD_COUNT=yes
97 # NAT gateway configuration
99 # ---------- /etc/ctdb/natgw_nodes ----------
103 # ---------- /etc/ctdb/natgw_nodes ----------
105 CTDB_NATGW_PUBLIC_IP=10.1.1.121/24
106 CTDB_NATGW_PUBLIC_IFACE=eth1
107 CTDB_NATGW_DEFAULT_GATEWAY=10.1.1.254
108 CTDB_NATGW_PRIVATE_NETWORK=192.168.1.0/24
109 CTDB_NATGW_NODES=/etc/ctdb/natgw_nodes