diff options
| author | Andrew Tridgell <tridge@samba.org> | 2008-07-07 13:08:31 +1000 |
|---|---|---|
| committer | Andrew Tridgell <tridge@samba.org> | 2008-07-07 13:08:31 +1000 |
| commit | ced3c015a79f31cb82be6c2dfda593fcb554c8b1 (patch) | |
| tree | bbddcf36b16ad658e0343ed44f40ed78a7a7cf4d | |
| parent | 8e4b85d7d458b088b8fdcfc85f75b6fdc09b74d8 (diff) | |
allow config of IP base
| -rw-r--r-- | config | 2 | ||||
| -rw-r--r-- | functions | 26 |
2 files changed, 15 insertions, 13 deletions
@@ -4,3 +4,5 @@ UUID=`uuidgen` MEM=524288 ISO="/virtual/ISO/RHEL5.2-Server-20080430.0-x86_64-DVD.iso" DOMAIN="VSOFS1.COM" +IPBASE="10.0" + @@ -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 <<EOF > 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 <<EOF > 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 <<EOF >> mnt/etc/bashrc -export http_proxy=http://10.0.0.1:3128/ +export http_proxy=http://$IPBASE.0.1:3128/ EOF } |
