zuul-jobs/roles/add-build-sshkey
Paul Belanger bbc4c5b920
Only run once our delegate_to locahost commands
In a multi node setup, we only want this logic to be run one across
all hosts.

Change-Id: I4ebb62f76d4ff7363635bee7073c2d7e8f0ad70e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-21 16:21:13 -04:00
..
2017-07-21 09:46:04 +02: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

zuul_temp_ssh_key

Where to put the newly-generated SSH private key.