summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions26
1 files changed, 13 insertions, 13 deletions
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 <<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
}