Masato Taruishi
taru****@sourc*****
2004年 7月 22日 (木) 14:02:11 JST
=================================================================== RCS file: plugin/ultramonkey/10ultramonkey,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- plugin/ultramonkey/10ultramonkey 2004/06/28 07:51:41 1.1 +++ plugin/ultramonkey/10ultramonkey 2004/07/22 05:02:10 1.2 @@ -26,8 +26,9 @@ # ldirectord definition LDIRECTORDCF=${LDIRECTORDCF:-$hasysconfdir/ldirectord.cf} LDIRECTORDCFIN=${LDIRECTORDCFIN:-$TEMPLATEDIR/ldirectord.cf.in} - # Streamline definition -ULTRAMONKEYSTREAMLINEDEVICE=${ULTRAMONKEYSTREAMLINEDEVICE:-eth0:0} + +# Streamline definition +ULTRAMONKEYDEVICE=${ULTRAMONKEYDEVICE:-eth0:0} # Ultramonkey Failover definition ULTRAMONKEYNODES=${ULTRAMONKEYNODES:-$HOST} =================================================================== RCS file: plugin/ultramonkey/ultramonkey.cf,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- plugin/ultramonkey/ultramonkey.cf 2004/06/28 07:51:41 1.1 +++ plugin/ultramonkey/ultramonkey.cf 2004/07/22 05:02:11 1.2 @@ -1,7 +1,7 @@ # UltraPossum UltraMonkey Configuration -# Streamline LoadBalacing device alias name -#ULTRAMONKEYSTREAMLINEDEVICE="eth0:0" +# LoadBalacing device alias name +#ULTRAMONKEYDEVICE="eth0:0" # List of nodes where ultramonkey run. If multiple nodes are specified, # then ultramonkey is run from heartbeat and failover capability is =================================================================== RCS file: plugin/ultramonkey/update-ultramonkey,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- plugin/ultramonkey/update-ultramonkey 2004/06/28 07:51:41 1.1 +++ plugin/ultramonkey/update-ultramonkey 2004/07/22 05:02:11 1.2 @@ -86,10 +86,10 @@ add_startmark "##" "$id" > $tmp cat >> $tmp <<EOF -auto $ULTRAMONKEYSTREAMLINEDEVICE -iface $ULTRAMONKEYSTREAMLINEDEVICE inet static +auto $ULTRAMONKEYDEVICE +iface $ULTRAMONKEYDEVICE inet static address $VIRTUALSLAVE - netmask 255.255.255.0 + netmask 255.255.255.255 EOF for s in $SLAVES; do echo " up iptables -t nat -A POSTROUTING -j MASQUERADE -p tcp -m multiport --ports 389 -s $s/32" >> $tmp @@ -98,7 +98,7 @@ add_endmark "##" "$id" >> $tmp add_end_vaconf /etc/network/interfaces $tmp "$id" if test "`ultramonkeynodesnum`" -le "1"; then - /sbin/ifup $ULTRAMONKEYSTREAMLINEDEVICE + /sbin/ifup $ULTRAMONKEYDEVICE fi } @@ -111,7 +111,7 @@ remove_debian() { if test "`ultramonkeynodesnum`" -le "1"; then - /sbin/ifdown $ULTRAMONKEYSTREAMLINEDEVICE + /sbin/ifdown $ULTRAMONKEYDEVICE fi strip_vaconf /etc/network/interfaces "ULTRAMONKEY" }