zuul-jobs/roles/add-build-sshkey
Clint Byrum 9ebb3886d1 Install build private key too
This will allow all nodes to SSH to each other, which should facilitate
some multi-node jobs that need this enabled.

We set "force" to "no" on the copies since this is in the base job's
pre.yml, meaning it should run before basically anything else.

Change-Id: If11f05f5cced71f6e9f634195e628ea68813c4cf
2017-08-22 10:52:08 -07:00
..
tasks Install build private key too 2017-08-22 10:52:08 -07:00
vars Use zuul.executor.work_root for add-build-sshkey 2017-08-04 12:28:56 -04:00
README.rst Use new sphinx roles in docs 2017-08-11 15:10:40 -07:00

Generate and install a build-local SSH key on all hosts

This role is intended to be run on the Zuul Executor at the start of every job. It generates an SSH keypair and installs the public key in the authorized_keys file of every host in the inventory. It then removes all keys from this job's SSH agent so that the original key used to log into all of the hosts is no longer accessible, then adds the newly generated private key.

Role Variables

Where to put the newly-generated SSH private key.