]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb
Clean up etc/hosts
[dsa-puppet.git] / modules / ganeti2 / templates / instance-debootstrap / hooks / 00-dsa-configure-networking.erb
index 3954046732880b380194e52699ff0ec8d01aaa08..1c3d4856e0b21700ed9f0285eca45090257fb7ef 100755 (executable)
@@ -62,6 +62,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: