From ced3c015a79f31cb82be6c2dfda593fcb554c8b1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 7 Jul 2008 13:08:31 +1000 Subject: allow config of IP base --- functions | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'functions') diff --git a/functions b/functions index c16ad4e..575638c 100644 --- a/functions +++ b/functions @@ -59,7 +59,7 @@ NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=$NAME.$DOMAIN PEERDNS=no -GATEWAY=10.0.0.1 +GATEWAY=$IPBASE.0.1 EOF for i in `seq 0 2`; do @@ -67,7 +67,7 @@ EOF DEVICE=eth$i ONBOOT=yes TYPE=Ethernet -IPADDR=10.0.$i.$IPBASE +IPADDR=$IPBASE.$i.$IPBASE NETMASK=255.255.255.0 EOF done @@ -76,27 +76,27 @@ EOF cat < mnt/etc/hosts 127.0.0.1 localhost Samba01 -10.0.0.11 ${CLUSTER}n1.vsofs1.com ${CLUSTER}n1 -10.0.0.12 ${CLUSTER}n2.vsofs1.com ${CLUSTER}n2 -10.0.0.13 ${CLUSTER}n3.vsofs1.com ${CLUSTER}n3 -10.0.0.14 ${CLUSTER}n4.vsofs1.com ${CLUSTER}n4 +$IPBASE.0.11 ${CLUSTER}n1.vsofs1.com ${CLUSTER}n1 +$IPBASE.0.12 ${CLUSTER}n2.vsofs1.com ${CLUSTER}n2 +$IPBASE.0.13 ${CLUSTER}n3.vsofs1.com ${CLUSTER}n3 +$IPBASE.0.14 ${CLUSTER}n4.vsofs1.com ${CLUSTER}n4 -10.0.0.1 kvmhost -10.0.0.3 ${CLUSTER}tsm +$IPBASE.0.1 kvmhost +$IPBASE.0.3 ${CLUSTER}tsm EOF echo "Setting up /etc/ctdb/nodes" mkdir -p mnt/etc/ctdb cat < mnt/etc/ctdb/nodes -10.0.0.11 -10.0.0.12 -10.0.0.13 -10.0.0.14 +$IPBASE.0.11 +$IPBASE.0.12 +$IPBASE.0.13 +$IPBASE.0.14 EOF echo "Enabling squid proxy" cat <> mnt/etc/bashrc -export http_proxy=http://10.0.0.1:3128/ +export http_proxy=http://$IPBASE.0.1:3128/ EOF } -- cgit