only hostname, not fqdn
[mirror/dsa-puppet.git] / modules / roles / templates / buildd_master_wb-authorized_keys.erb
index e57904e..1b17595 100644 (file)
@@ -27,9 +27,9 @@ lines = []
 for m in buildds do
   lines << '# ' + m['node']
   if m['key'].nil?
-    lines << "# no key for node"
+    lines << "## no key for node"
   else
-    lines << "command=\"/srv/wanna-build/bin/wanna-build --ssh-wrapper #{m['node']}\"," +
+    lines << "command=\"/srv/wanna-build/bin/wanna-build --ssh-wrapper #{m['node'].split('.')[0]}\"," +
              'no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-user-rc,' +
              'from="' + m['addr'].join(',') + '" ' +
              m['key']