offload: Use Guile-SSH instead of GNU lsh.
authorLudovic Courtès <ludo@gnu.org>
Sun, 2 Mar 2014 21:39:48 +0000 (22:39 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 25 Nov 2016 22:44:20 +0000 (23:44 +0100)
commit21531add3205e400707c8fbfd841845f9a71863a
tree8a88aa7b2fe01f5707bcf130fe09d54c0a95d33f
parent6634180f9eabc70cdc5bc8e9ce2ff0f9250625bc
offload: Use Guile-SSH instead of GNU lsh.

* guix/scripts/offload.scm (<build-machine>)[ssh-options]: Remove.
[host-key, host-key-type]: New fields.
(%lsh-command, %lshg-command, user-lsh-private-key): Remove.
(user-openssh-private-key, private-key-from-file*): New procedures.
(host-key->type+key, open-ssh-session): New procedures.
(remote-pipe): Remove 'mode' parameter.  Rewrite in terms of
'open-ssh-session' etc.  Update users.
(send-files)[missing-files]: Rewrite using the bidirectional channel
port.
Remove call to 'call-with-compressed-output-port'.
(retrieve-files): Remove call to 'call-with-decompressed-port'.
(machine-load): Remove exit status logic.
* doc/guix.texi (Requirements): Mention Guile-SSH.
(Daemon Offload Setup): Document 'host-key' and 'private-key'.  Show the
default value on each @item line.
* m4/guix.m4 (GUIX_CHECK_GUILE_SSH): New macro.
* config-daemon.ac: Use 'GUIX_CHECK_GUILE_SSH'.  Set
'HAVE_DAEMON_OFFLOAD_HOOK' as a function of that.
config-daemon.ac
doc/guix.texi
guix/scripts/offload.scm
m4/guix.m4