X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fganeti2%2Ftemplates%2Finstance-debootstrap%2Fhooks%2F00-dsa-configure-networking.erb;h=772c91bf07673416d47d7bbfe024271c7a212f82;hb=c82e5e29c32f43028cb668dd653c98af9391806d;hp=3954046732880b380194e52699ff0ec8d01aaa08;hpb=afcb0205a23957c5b80f08bb942c3355d1712c5e;p=dsa-puppet.git diff --git a/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb b/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb index 39540467..772c91bf 100755 --- a/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb +++ b/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb @@ -46,6 +46,7 @@ fi if [ "$NIC_COUNT" -ge 2 ]; then cat >> $TARGET/etc/network/interfaces << EOF + auto eth1 iface eth1 inet static address ${NIC_1_IP} @@ -62,6 +63,18 @@ nameserver 206.12.19.20 nameserver 206.12.19.21 EOF +# clean up etc/hosts +cat > $TARGET/etc/hosts +127.0.0.1 localhost + +# The following lines are desirable for IPv6 capable hosts +::1 ip6-localhost ip6-loopback +fe00::0 ip6-localnet +ff00::0 ip6-mcastprefix +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +EOF + exit 0 # vim:set syn=sh: