From 753e2fa4be3aa1806f00b3673f70c8bc9a0c40df Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Mon, 17 Mar 2014 18:27:31 +0000 Subject: 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. --- distbuild.configure | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.1