From 957be8e44295ff31e57b4f0214ab1f4daaa9c7ff Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 20 Jun 2012 10:48:26 +0200 Subject: [PATCH] Also add our own address to /etc/hosts --- .../instance-debootstrap/hooks/00-dsa-configure-networking.erb | 1 + 1 file changed, 1 insertion(+) 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 fe2a2818..214edb4d 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 @@ -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 -- 2.39.2