X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fganeti2%2Ftemplates%2Finstance-debootstrap%2Fhooks%2F00-dsa-configure-networking.erb;h=214edb4dc60513b7bbe25bbaa16ae053e86a31db;hb=957be8e44295ff31e57b4f0214ab1f4daaa9c7ff;hp=fe2a281880f6a5979023b179d7b33a52edd58a90;hpb=68c6d6dea85c499a6b2788a4d96215adb7df9f32;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 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