uwrap: Bump version to 1.1.0.
[Samba.git] / ctdb / doc / examples / natgw.conf
blobce8f04113ef33d542b94d68b2a75cd811e44a5cd
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.
7 # Cluster details:
9 #                internal network (192.168.1.0/24)
10 #   -------+----------------------+-----------------------+----------
11 #          |                      |                       |
12 #          |                      |                       |
13 #     eth0 | 192.168.1.1     eth0 | 192.168.1.2      eth0 | 192.168.1.3
14 #    +-----+-----+          +-----+-----+           +-----+-----+
15 #    |           |          |           |           |           |
16 #    |  Node 1   |          |  Node 2   |           |  Node 3   |
17 #    |           |          |           |           |           |
18 #    +-----+-----+          +-----+-----+           +-----+-----+
19 #     eth1 |                 eth1 |                  eth1 |
20 #          |                      |                       |
21 #          |                      |                       |
22 #   -------+----------------------+-----------------------+-----+----
23 #                  public network (10.1.1.0/24)                 |
24 #                                                               | 10.1.1.254
25 #                                                               o (router)
27 # Storage details:
29 #  Each node has a shared storage - /shared
32 # Service details:
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
48 # Nodes configuration
50 # ---------- /etc/ctdb/nodes ----------
51 # 192.168.1.1
52 # 192.168.1.2
53 # 192.168.1.3
54 # ---------- /etc/ctdb/nodes ----------
56 CTDB_NODES=/etc/ctdb/nodes
59 # Public addresses configuration
61 # ---------- /etc/ctdb/public_addresses ----------
62 # 10.1.1.101/24 eth1
63 # 10.1.1.102/24 eth1
64 # 10.1.1.103/24 eth1
65 # 10.1.1.104/24 eth1
66 # 10.1.1.105/24 eth1
67 # 10.1.1.106/24 eth1
68 # ---------- /etc/ctdb/public_addresses ----------
70 CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses
72 # Enable logging to syslog
73 CTDB_LOGGING=syslog
75 # Default log level
76 CTDB_DEBUGLEVEL=NOTICE
78 # Auto start/stop managed services
79 CTDB_AUTO_STARTSTOP=yes
82 # Samba configuration
84 CTDB_MANAGES_SAMBA=yes
85 # CTDB_SAMBA_SKIP_SHARE_CHECK=yes
87 CTDB_MANAGES_WINBIND=yes
90 # NFS configuration
92 CTDB_MANAGES_NFS=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 ----------
100 # 192.168.1.1
101 # 192.168.1.2
102 # 192.168.1.3
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