ctdb-tests: Switch local daemons to use new style configuration file
[samba.git] / ctdb / doc / examples / natgw.conf
1 #
2 # CTDB configuration for simple cluster with NAT gateway
3 #
4 # This is the sample configuration for a 3-node CTDB cluster providing file
5 # services via Samba and NFS.
6 #
7 # Cluster details:
8 #
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)
26 #
27 # Storage details:
28 #
29 #  Each node has a shared storage - /shared
30 #
31 #
32 # Service details:
33 #
34 #  Cluster provides file services on following IP addresses
35 #
36 #     10.1.1.101 - 10.1.1.106
37 #
38 #  When a node is not hosting any IPs, it cannot connect to network
39 #  infrastructure (e.g. DNS, Active Directory, ...).
40 #
41 #  Using NAT gateway feature of CTDB allows a node not hosting IPs to connect
42 #  to network infrastructure.
43
44
45 CTDB_RECOVERY_LOCK=/shared/recovery.lock
46
47 #
48 # Nodes configuration
49 #
50 # ---------- /etc/ctdb/nodes ----------
51 # 192.168.1.1
52 # 192.168.1.2
53 # 192.168.1.3
54 # ---------- /etc/ctdb/nodes ----------
55 #
56 #
57 # Public addresses configuration
58 #
59 # ---------- /etc/ctdb/public_addresses ----------
60 # 10.1.1.101/24 eth1
61 # 10.1.1.102/24 eth1
62 # 10.1.1.103/24 eth1
63 # 10.1.1.104/24 eth1
64 # 10.1.1.105/24 eth1
65 # 10.1.1.106/24 eth1
66 # ---------- /etc/ctdb/public_addresses ----------
67 #
68 # Enable logging to syslog
69 CTDB_LOGGING=syslog
70
71 # Default log level
72 CTDB_DEBUGLEVEL=NOTICE
73
74 # Auto start/stop managed services
75 CTDB_AUTO_STARTSTOP=yes
76
77 #
78 # Samba configuration
79 #
80 CTDB_MANAGES_SAMBA=yes
81 # CTDB_SAMBA_SKIP_SHARE_CHECK=yes
82
83 CTDB_MANAGES_WINBIND=yes
84
85 #
86 # NFS configuration
87 #
88 CTDB_MANAGES_NFS=yes
89 CTDB_RPCINFO_LOCALHOST="127.0.0.1"
90
91 #
92 # NAT gateway configuration
93 #
94 # ---------- /etc/ctdb/natgw_nodes ----------
95 # 192.168.1.1
96 # 192.168.1.2
97 # 192.168.1.3
98 # ---------- /etc/ctdb/natgw_nodes ----------
99 #
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