diff options
author | Graham Christensen <graham@grahamc.com> | 2021-02-24 20:52:22 -0500 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2021-02-25 09:17:34 -0500 |
commit | 1130b2882415b003f5ba2fc0b5466b573fe1b05a (patch) | |
tree | ee523e721a944277ce3e6fa6a95c61c3c2efeb10 /src/libstore/ssh.hh | |
parent | 199081ad00e6ee4c704eaac34211b454fe0f310c (diff) |
distributed builds: load remote builder host key from the machines file
This is already used by Hydra, and is very useful when materializing
a remote builder list from service discovery. This allows the service
discovery tool to only sync one file instead of two.
Diffstat (limited to 'src/libstore/ssh.hh')
-rw-r--r-- | src/libstore/ssh.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/ssh.hh b/src/libstore/ssh.hh index 4f0f0bd29..dabbcedda 100644 --- a/src/libstore/ssh.hh +++ b/src/libstore/ssh.hh @@ -12,6 +12,7 @@ private: const std::string host; bool fakeSSH; const std::string keyFile; + const std::string sshPublicHostKey; const bool useMaster; const bool compress; const int logFD; @@ -29,7 +30,7 @@ private: public: - SSHMaster(const std::string & host, const std::string & keyFile, bool useMaster, bool compress, int logFD = -1); + SSHMaster(const std::string & host, const std::string & keyFile, const std::string & sshPublicHostKey, bool useMaster, bool compress, int logFD = -1); struct Connection { |