]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Fix ssh public key labels
authorPeter Palfrader <peter@palfrader.org>
Wed, 20 Jun 2012 07:30:15 +0000 (09:30 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 20 Jun 2012 07:30:15 +0000 (09:30 +0200)
modules/ganeti2/templates/instance-debootstrap/hooks/10-dsa-install-extra-packages.erb

index 165099e834629794468973ffc881f6ac9e2fdb4f..e48af7e821fac9064f18301e68dd746cf9cc9867 100755 (executable)
@@ -10,6 +10,9 @@ fi
 chroot "$TARGET" apt-get -qq update
 chroot "$TARGET" apt-get -qq install vim ssh extlinux
 
+hostname="$(hostname)"
+set -e "s#root@$hostname#root@$instance#" -i /etc/ssh/ssh*pub
+
 if [ "$ARCH" = "amd64" ]; then
     chroot "$TARGET" apt-get -qq install linux-image-amd64
 fi