X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fganeti2%2Ftemplates%2Finstance-debootstrap%2Fhooks%2F00-dsa-configure-networking.erb;h=fc0356e42a47568aeccb9ddb03e3895f6286a845;hb=26471f31cfa6b171e7b897ea1e53c3482a39cb34;hp=772c91bf07673416d47d7bbfe024271c7a212f82;hpb=acd7307b957e69c417474f0a84c8e894f5a8ad28;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 772c91bf..fc0356e4 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 @@ -55,6 +55,8 @@ EOF fi +fqdn=$(cat $TARGET/etc/hostname) +echo ${fqdn%%.*} > $TARGET/etc/hostname cat > $TARGET/etc/resolv.conf <