zuul-jobs/roles/add-build-sshkey
Tristan de Cacqueray 1e0af6779b Add remove-zuul-sshkey
This change enables a kubectl connection job to just remove the
zuul sshkey, without using the add-build-sshkey role which doesn't
work on pod. To do that, this change moves the sshagent_remove_key
task to a new role and makes add-build-sshkey use the new role.

Change-Id: I5e7288592cad303df919220259f5a360bf522f64
2020-05-15 12:24:33 +00:00
..
tasks Add remove-zuul-sshkey 2020-05-15 12:24:33 +00:00
vars Use main.yaml, not .yml 2020-04-20 17:44:49 +02:00
README.rst add-build-sshkey: remove previously authorized build-sshkey 2019-05-20 13:23:02 +00: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 the Zuul master key from this job's SSH agent so that the original key used to log into all of the hosts is no longer accessible (any per-project keys, if present, remain available), then adds the newly generated private key.

Role Variables

Where to put the newly-generated SSH private key.