[SCM] CTDB repository - branch master updated - ctdb-1.0.81-21-gb7ed7fd

Ronnie Sahlberg sahlberg at samba.org
Wed May 13 22:13:49 GMT 2009


The branch, master has been updated
       via  b7ed7fd4a5fbd344d41caa1afa100b1f24506173 (commit)
      from  0c88fa41bc3c629052bc137ed30c473ed10522fd (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit b7ed7fd4a5fbd344d41caa1afa100b1f24506173
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Thu May 14 08:12:48 2009 +1000

    change the prefix NATGW_ to CTDB_NATGW_

-----------------------------------------------------------------------

Summary of changes:
 config/ctdb.sysconfig    |   12 ++++++------
 config/events.d/11.natgw |   18 +++++++++---------
 doc/ctdbd.1              |   32 ++++++++++++++++----------------
 doc/ctdbd.1.html         |   28 ++++++++++++++--------------
 doc/ctdbd.1.xml          |   28 ++++++++++++++--------------
 5 files changed, 59 insertions(+), 59 deletions(-)


Changeset truncated at 500 lines:

diff --git a/config/ctdb.sysconfig b/config/ctdb.sysconfig
index 340ac75..758e891 100644
--- a/config/ctdb.sysconfig
+++ b/config/ctdb.sysconfig
@@ -175,15 +175,15 @@
 # and thus no proper routes to the external world it will instead
 # route all packets through the nat-gw node.
 #
-# NATGW_NODES is the list of nodes that belong to this natgw group.
+# CTDB_NATGW_NODES is the list of nodes that belong to this natgw group.
 # You can have multiple natgw groups in one cluster but each node
 # can only belong to one single natgw group.
 #
-# NATGW_PUBLIC_IP=10.0.0.227/24
-# NATGW_PUBLIC_IFACE=eth0
-# NATGW_DEFAULT_GATEWAY=10.0.0.1
-# NATGW_PRIVATE_NETWORK=10.1.1.0/24
-# NATGW_NODES=/etc/ctdb/natgw_nodes
+# CTDB_NATGW_PUBLIC_IP=10.0.0.227/24
+# CTDB_NATGW_PUBLIC_IFACE=eth0
+# CTDB_NATGW_DEFAULT_GATEWAY=10.0.0.1
+# CTDB_NATGW_PRIVATE_NETWORK=10.1.1.0/24
+# CTDB_NATGW_NODES=/etc/ctdb/natgw_nodes
 
 # where to log messages
 # the default is /var/log/log.ctdb
diff --git a/config/events.d/11.natgw b/config/events.d/11.natgw
index 0fee6ff..3da60d8 100644
--- a/config/events.d/11.natgw
+++ b/config/events.d/11.natgw
@@ -8,7 +8,7 @@
 . $CTDB_BASE/functions
 loadconfig ctdb
 
-[ -z "$NATGW_PUBLIC_IFACE" ] && exit 0
+[ -z "$CTDB_NATGW_PUBLIC_IFACE" ] && exit 0
 
 cmd="$1"
 shift
@@ -16,14 +16,14 @@ PATH=/usr/bin:/bin:/usr/sbin:/sbin:$PATH
 
 
 delete_all() {
-	remove_ip $NATGW_PUBLIC_IP $NATGW_PUBLIC_IFACE
-	remove_ip $NATGW_PUBLIC_IP_HOST lo
+	remove_ip $CTDB_NATGW_PUBLIC_IP $CTDB_NATGW_PUBLIC_IFACE
+	remove_ip $CTDB_NATGW_PUBLIC_IP_HOST lo
 
 	ip route del 0.0.0.0/0 metric 10 >/dev/null 2>/dev/null
 
 	# Delete the masquerading setup from a previous iteration where we
 	# were the NAT-GW
-	iptables -D POSTROUTING -t nat -s $NATGW_PRIVATE_NETWORK -d ! $NATGW_PRIVATE_NETWORK -j MASQUERADE >/dev/null 2>/dev/null
+	iptables -D POSTROUTING -t nat -s $CTDB_NATGW_PRIVATE_NETWORK -d ! $CTDB_NATGW_PRIVATE_NETWORK -j MASQUERADE >/dev/null 2>/dev/null
 
 }
 
@@ -33,16 +33,16 @@ case $cmd in
 	NATGWMASTER=`ctdb natgwlist | head -1`
 	NATGWIP=`ctdb natgwlist | tail --lines=+2 | head -1 | cut -d: -f3`
 
-	NATGW_PUBLIC_IP_HOST=`echo $NATGW_PUBLIC_IP | sed -e "s/\/.*/\/32/"`
+	CTDB_NATGW_PUBLIC_IP_HOST=`echo $CTDB_NATGW_PUBLIC_IP | sed -e "s/\/.*/\/32/"`
 
 	delete_all
 
 	if [ "$MYPNN" == "$NATGWMASTER" ]; then
 		# This is the first node, set it up as the NAT GW
 		echo 1 >/proc/sys/net/ipv4/ip_forward
-		iptables -A POSTROUTING -t nat -s $NATGW_PRIVATE_NETWORK -d ! $NATGW_PRIVATE_NETWORK -j MASQUERADE
-		ip addr add $NATGW_PUBLIC_IP dev $NATGW_PUBLIC_IFACE
-		ip route add 0.0.0.0/0 via $NATGW_DEFAULT_GATEWAY >/dev/null 2>/dev/null
+		iptables -A POSTROUTING -t nat -s $CTDB_NATGW_PRIVATE_NETWORK -d ! $CTDB_NATGW_PRIVATE_NETWORK -j MASQUERADE
+		ip addr add $CTDB_NATGW_PUBLIC_IP dev $CTDB_NATGW_PUBLIC_IFACE
+		ip route add 0.0.0.0/0 via $CTDB_NATGW_DEFAULT_GATEWAY >/dev/null 2>/dev/null
 	else
 		# This is not the NAT-GW
 		# Assign the public ip to the private interface and make
@@ -50,7 +50,7 @@ case $cmd in
 		# We do this so that the ip address will exist on a
 		# non-loopback interface so that samba may send it along in the
 		# KDC requests.
-		ip addr add $NATGW_PUBLIC_IP_HOST dev lo
+		ip addr add $CTDB_NATGW_PUBLIC_IP_HOST dev lo
 		ip route add 0.0.0.0/0 via $NATGWIP metric 10
 	fi
 
diff --git a/doc/ctdbd.1 b/doc/ctdbd.1
index b7a89eb..d6ac7ba 100644
--- a/doc/ctdbd.1
+++ b/doc/ctdbd.1
@@ -1,11 +1,11 @@
 .\"     Title: ctdbd
 .\"    Author: 
 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
-.\"      Date: 05/12/2009
+.\"      Date: 05/14/2009
 .\"    Manual: 
 .\"    Source: 
 .\"
-.TH "CTDBD" "1" "05/12/2009" "" ""
+.TH "CTDBD" "1" "05/14/2009" "" ""
 .\" disable hyphenation
 .nh
 .\" disable justification (adjust text to left margin only)
@@ -464,46 +464,46 @@ NAT\-GW is configured in /etc/sysconfigctdb by setting the following variables:
 # and thus no proper routes to the external world it will instead
 # route all packets through the nat\-gw node\.
 #
-# NATGW_NODES is the list of nodes that belong to this natgw group\.
+# CTDB_NATGW_NODES is the list of nodes that belong to this natgw group\.
 # You can have multiple natgw groups in one cluster but each node
 # can only belong to one single natgw group\.
 #
-# NATGW_PUBLIC_IP=10\.0\.0\.227/24
-# NATGW_PUBLIC_IFACE=eth0
-# NATGW_DEFAULT_GATEWAY=10\.0\.0\.1
-# NATGW_PRIVATE_NETWORK=10\.1\.1\.0/24
-# NATGW_NODES=/etc/ctdb/natgw_nodes
+# CTDB_NATGW_PUBLIC_IP=10\.0\.0\.227/24
+# CTDB_NATGW_PUBLIC_IFACE=eth0
+# CTDB_NATGW_DEFAULT_GATEWAY=10\.0\.0\.1
+# CTDB_NATGW_PRIVATE_NETWORK=10\.1\.1\.0/24
+# CTDB_NATGW_NODES=/etc/ctdb/natgw_nodes
     
 .fi
 .RE
-.SS "NATGW_PUBLIC_IP"
+.SS "CTDB_NATGW_PUBLIC_IP"
 .PP
 This is an ip address in the public network that is used for all outgoing traffic when the public addresses are not assigned\. This address will be assigned to one of the nodes in the cluster which will masquerade all traffic for the other nodes\.
 .PP
 Format of this parameter is IPADDRESS/NETMASK
-.SS "NATGW_PUBLIC_IFACE"
+.SS "CTDB_NATGW_PUBLIC_IFACE"
 .PP
-This is the physical interface where the NATGW_PUBLIC_IP will be assigned to\. This should be an interface connected to the public network\.
+This is the physical interface where the CTDB_NATGW_PUBLIC_IP will be assigned to\. This should be an interface connected to the public network\.
 .PP
 Format of this parameter is INTERFACE
-.SS "NATGW_DEFAULT_GATEWAY"
+.SS "CTDB_NATGW_DEFAULT_GATEWAY"
 .PP
-This is the default gateway to use on the node that is elected to host the NATGW_PUBLIC_IP\. This is the default gateway on the public network\.
+This is the default gateway to use on the node that is elected to host the CTDB_NATGW_PUBLIC_IP\. This is the default gateway on the public network\.
 .PP
 Format of this parameter is IPADDRESS
-.SS "NATGW_PRIVATE_NETWORK"
+.SS "CTDB_NATGW_PRIVATE_NETWORK"
 .PP
 This is the network/netmask used for the interal private network\.
 .PP
 Format of this parameter is IPADDRESS/NETMASK
-.SS "NATGW_NODES"
+.SS "CTDB_NATGW_NODES"
 .PP
 This is the list of all nodes that belong to the same NATGW group as this node\. The default is /etc/ctdb/natgw_nodes\.
 .SS "Operation"
 .PP
 When the NAT\-GW fiunctionality is used, one of the nodes is elected to act as a NAT router for all the other nodes in the group when they need to originate traffic to the external public network\.
 .PP
-The NAT\-GW node is assigned the NATGW_PUBLIC_IP to the designated interface and the provided default route\. The NAT\-GW is configured to act as a router and to masquerade all traffic it receives from the internal private network and which is destined to the external network(s)\.
+The NAT\-GW node is assigned the CTDB_NATGW_PUBLIC_IP to the designated interface and the provided default route\. The NAT\-GW is configured to act as a router and to masquerade all traffic it receives from the internal private network and which is destined to the external network(s)\.
 .PP
 All other nodes in the group are configured with a default route of metric 10 pointing to the designated NAT GW node\.
 .PP
diff --git a/doc/ctdbd.1.html b/doc/ctdbd.1.html
index ff7e37e..7ac33c7 100644
--- a/doc/ctdbd.1.html
+++ b/doc/ctdbd.1.html
@@ -483,37 +483,37 @@ CTDB_CAPABILITY_RECMASTER=no
 # and thus no proper routes to the external world it will instead
 # route all packets through the nat-gw node.
 #
-# NATGW_NODES is the list of nodes that belong to this natgw group.
+# CTDB_NATGW_NODES is the list of nodes that belong to this natgw group.
 # You can have multiple natgw groups in one cluster but each node
 # can only belong to one single natgw group.
 #
-# NATGW_PUBLIC_IP=10.0.0.227/24
-# NATGW_PUBLIC_IFACE=eth0
-# NATGW_DEFAULT_GATEWAY=10.0.0.1
-# NATGW_PRIVATE_NETWORK=10.1.1.0/24
-# NATGW_NODES=/etc/ctdb/natgw_nodes
-    </pre></div><div class="refsect2" lang="en"><a name="id2476123"></a><h3>NATGW_PUBLIC_IP</h3><p>
+# CTDB_NATGW_PUBLIC_IP=10.0.0.227/24
+# CTDB_NATGW_PUBLIC_IFACE=eth0
+# CTDB_NATGW_DEFAULT_GATEWAY=10.0.0.1
+# CTDB_NATGW_PRIVATE_NETWORK=10.1.1.0/24
+# CTDB_NATGW_NODES=/etc/ctdb/natgw_nodes
+    </pre></div><div class="refsect2" lang="en"><a name="id2476123"></a><h3>CTDB_NATGW_PUBLIC_IP</h3><p>
       This is an ip address in the public network that is used for all outgoing
       traffic when the public addresses are not assigned.
       This address will be assigned to one of the nodes in the cluster which
       will masquerade all traffic for the other nodes.
     </p><p>
       Format of this parameter is IPADDRESS/NETMASK
-    </p></div><div class="refsect2" lang="en"><a name="id2476141"></a><h3>NATGW_PUBLIC_IFACE</h3><p>
-      This is the physical interface where the NATGW_PUBLIC_IP will be
+    </p></div><div class="refsect2" lang="en"><a name="id2476141"></a><h3>CTDB_NATGW_PUBLIC_IFACE</h3><p>
+      This is the physical interface where the CTDB_NATGW_PUBLIC_IP will be
       assigned to. This should be an interface connected to the public network.
     </p><p>
       Format of this parameter is INTERFACE
-    </p></div><div class="refsect2" lang="en"><a name="id2476156"></a><h3>NATGW_DEFAULT_GATEWAY</h3><p>
+    </p></div><div class="refsect2" lang="en"><a name="id2476156"></a><h3>CTDB_NATGW_DEFAULT_GATEWAY</h3><p>
       This is the default gateway to use on the node that is elected to host
-      the NATGW_PUBLIC_IP. This is the default gateway on the public network.
+      the CTDB_NATGW_PUBLIC_IP. This is the default gateway on the public network.
     </p><p>
       Format of this parameter is IPADDRESS
-    </p></div><div class="refsect2" lang="en"><a name="id2476171"></a><h3>NATGW_PRIVATE_NETWORK</h3><p>
+    </p></div><div class="refsect2" lang="en"><a name="id2476172"></a><h3>CTDB_NATGW_PRIVATE_NETWORK</h3><p>
       This is the network/netmask used for the interal private network.
     </p><p>
       Format of this parameter is IPADDRESS/NETMASK
-    </p></div><div class="refsect2" lang="en"><a name="id2476186"></a><h3>NATGW_NODES</h3><p>
+    </p></div><div class="refsect2" lang="en"><a name="id2476186"></a><h3>CTDB_NATGW_NODES</h3><p>
       This is the list of all nodes that belong to the same NATGW group
       as this node. The default is /etc/ctdb/natgw_nodes.
     </p></div><div class="refsect2" lang="en"><a name="id2476197"></a><h3>Operation</h3><p>
@@ -521,7 +521,7 @@ CTDB_CAPABILITY_RECMASTER=no
       to act as a NAT router for all the other nodes in the group when
       they need to originate traffic to the external public network.
     </p><p>
-      The NAT-GW node is assigned the NATGW_PUBLIC_IP to the designated
+      The NAT-GW node is assigned the CTDB_NATGW_PUBLIC_IP to the designated
       interface and the provided default route. The NAT-GW is configured
       to act as a router and to masquerade all traffic it receives from the
       internal private network and which is destined to the external network(s).
diff --git a/doc/ctdbd.1.xml b/doc/ctdbd.1.xml
index 10f9ed4..555ca06 100644
--- a/doc/ctdbd.1.xml
+++ b/doc/ctdbd.1.xml
@@ -861,19 +861,19 @@ CTDB_CAPABILITY_RECMASTER=no
 # and thus no proper routes to the external world it will instead
 # route all packets through the nat-gw node.
 #
-# NATGW_NODES is the list of nodes that belong to this natgw group.
+# CTDB_NATGW_NODES is the list of nodes that belong to this natgw group.
 # You can have multiple natgw groups in one cluster but each node
 # can only belong to one single natgw group.
 #
-# NATGW_PUBLIC_IP=10.0.0.227/24
-# NATGW_PUBLIC_IFACE=eth0
-# NATGW_DEFAULT_GATEWAY=10.0.0.1
-# NATGW_PRIVATE_NETWORK=10.1.1.0/24
-# NATGW_NODES=/etc/ctdb/natgw_nodes
+# CTDB_NATGW_PUBLIC_IP=10.0.0.227/24
+# CTDB_NATGW_PUBLIC_IFACE=eth0
+# CTDB_NATGW_DEFAULT_GATEWAY=10.0.0.1
+# CTDB_NATGW_PRIVATE_NETWORK=10.1.1.0/24
+# CTDB_NATGW_NODES=/etc/ctdb/natgw_nodes
     </screen>
     </refsect2>
 
-    <refsect2><title>NATGW_PUBLIC_IP</title>
+    <refsect2><title>CTDB_NATGW_PUBLIC_IP</title>
     <para>
       This is an ip address in the public network that is used for all outgoing
       traffic when the public addresses are not assigned.
@@ -885,9 +885,9 @@ CTDB_CAPABILITY_RECMASTER=no
     </para>
     </refsect2>
 
-    <refsect2><title>NATGW_PUBLIC_IFACE</title>
+    <refsect2><title>CTDB_NATGW_PUBLIC_IFACE</title>
     <para>
-      This is the physical interface where the NATGW_PUBLIC_IP will be
+      This is the physical interface where the CTDB_NATGW_PUBLIC_IP will be
       assigned to. This should be an interface connected to the public network.
     </para>
     <para>
@@ -895,17 +895,17 @@ CTDB_CAPABILITY_RECMASTER=no
     </para>
     </refsect2>
 
-    <refsect2><title>NATGW_DEFAULT_GATEWAY</title>
+    <refsect2><title>CTDB_NATGW_DEFAULT_GATEWAY</title>
     <para>
       This is the default gateway to use on the node that is elected to host
-      the NATGW_PUBLIC_IP. This is the default gateway on the public network.
+      the CTDB_NATGW_PUBLIC_IP. This is the default gateway on the public network.
     </para>
     <para>
       Format of this parameter is IPADDRESS
     </para>
     </refsect2>
 
-    <refsect2><title>NATGW_PRIVATE_NETWORK</title>
+    <refsect2><title>CTDB_NATGW_PRIVATE_NETWORK</title>
     <para>
       This is the network/netmask used for the interal private network.
     </para>
@@ -914,7 +914,7 @@ CTDB_CAPABILITY_RECMASTER=no
     </para>
     </refsect2>
 
-    <refsect2><title>NATGW_NODES</title>
+    <refsect2><title>CTDB_NATGW_NODES</title>
     <para>
       This is the list of all nodes that belong to the same NATGW group
       as this node. The default is /etc/ctdb/natgw_nodes.
@@ -928,7 +928,7 @@ CTDB_CAPABILITY_RECMASTER=no
       they need to originate traffic to the external public network.
     </para>
     <para>
-      The NAT-GW node is assigned the NATGW_PUBLIC_IP to the designated
+      The NAT-GW node is assigned the CTDB_NATGW_PUBLIC_IP to the designated
       interface and the provided default route. The NAT-GW is configured
       to act as a router and to masquerade all traffic it receives from the
       internal private network and which is destined to the external network(s).


-- 
CTDB repository


More information about the samba-cvs mailing list