From: Peter Palfrader Date: Wed, 20 Jun 2012 08:48:26 +0000 (+0200) Subject: Also add our own address to /etc/hosts X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=957be8e44295ff31e57b4f0214ab1f4daaa9c7ff Also add our own address to /etc/hosts --- 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