zuul-jobs/roles/add-build-sshkey
Andreas Jaeger f6ac770d37 Fix noqa warning
Change Ibfbd5df21e01d5a7bd44a216ff63bc805dd5c186 added the noqa to
silence the warning - the real fix is to use a raw string for the regex
that gets passed in.

Change-Id: I986961082e0252547ca0b7e2cade3167459edf9b
2018-10-28 14:31:23 +01:00
..
library Fix noqa warning 2018-10-28 14:31:23 +01:00
tasks add-build-sshkey: Remove only the master key 2018-09-05 09:26:35 -07:00
vars Use zuul.executor.work_root for add-build-sshkey 2017-08-04 12:28:56 -04:00
__init__.py add-build-sshkey: Remove only the master key 2018-09-05 09:26:35 -07:00
README.rst add-build-sshkey: Remove only the master key 2018-09-05 09:26:35 -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 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.