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 ----------
57 # Public addresses configuration
59 # ---------- /etc/ctdb/public_addresses ----------
66 # ---------- /etc/ctdb/public_addresses ----------
68 # Enable logging to syslog
72 CTDB_DEBUGLEVEL=NOTICE
74 # Auto start/stop managed services
75 CTDB_AUTO_STARTSTOP=yes
80 CTDB_MANAGES_SAMBA=yes
81 # CTDB_SAMBA_SKIP_SHARE_CHECK=yes
83 CTDB_MANAGES_WINBIND=yes
89 CTDB_RPCINFO_LOCALHOST="127.0.0.1"
92 # NAT gateway configuration
94 # ---------- /etc/ctdb/natgw_nodes ----------
98 # ---------- /etc/ctdb/natgw_nodes ----------
100 CTDB_NATGW_PUBLIC_IP=10.1.1.121/24
101 CTDB_NATGW_PUBLIC_IFACE=eth1
102 CTDB_NATGW_DEFAULT_GATEWAY=10.1.1.254
103 CTDB_NATGW_PRIVATE_NETWORK=192.168.1.0/24
104 CTDB_NATGW_NODES=/etc/ctdb/natgw_nodes