diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-03-17 18:27:31 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-03-18 15:56:21 +0000 |
commit | 753e2fa4be3aa1806f00b3673f70c8bc9a0c40df (patch) | |
tree | ce544411f20c3ea722c4837bf33533d24bbe961c | |
parent | ac653ac6b76684687bdaf9dae9240b4236162d40 (diff) | |
download | definitions-753e2fa4be3aa1806f00b3673f70c8bc9a0c40df.tar.gz |
distbuild: Add mechanism for providing SSH key in workers
The workers need to be able to authenticate with their Trove in order to
pull non-public repositories and to push trusted binary artifacts.
-rw-r--r-- | distbuild.configure | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/distbuild.configure b/distbuild.configure index d257fcae..4fcf10c1 100644 --- a/distbuild.configure +++ b/distbuild.configure @@ -31,6 +31,7 @@ # The following variable is required for worker nodes only: # # * CONTROLLERHOST: hostname or IP address of distbuild controller machine. +# * WORKER_SSH_KEY: identity used to authenticate with Trove # # The following variable is required for the controller node only: # @@ -149,4 +150,9 @@ direct-mode = True fcgi-server = False EOF +echo "Copy distbuild worker SSH key to system" +mkdir "$1/root/.ssh" +install -m 0600 "$WORKER_SSH_KEY" "$1/root/.ssh/id_rsa" +install -m 0644 "${WORKER_SSH_KEY}.pub" "$1/root/.ssh/id_rsa.pub" + fi |