]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Also add our own address to /etc/hosts
authorPeter Palfrader <peter@palfrader.org>
Wed, 20 Jun 2012 08:48:26 +0000 (10:48 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 20 Jun 2012 08:48:26 +0000 (10:48 +0200)
modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb

index fe2a281880f6a5979023b179d7b33a52edd58a90..214edb4dc60513b7bbe25bbaa16ae053e86a31db 100755 (executable)
@@ -68,6 +68,7 @@ EOF
 # clean up etc/hosts
 cat > $TARGET/etc/hosts << EOF
 127.0.0.1       localhost
+${NIC_0_IP} ${fqdn} ${fqdn%%.*}
 
 # The following lines are desirable for IPv6 capable hosts
 ::1     ip6-localhost ip6-loopback