zuul-jobs/roles/add-build-sshkey
Jeremy Stanley b6d2616275 Don't compare to literal True/False
With the arrival of ansible-lint 4, comparisons to literal boolean
values are now forbidden. Adjust the new violations accordingly and
remove the rule 601 exclusion.

Change-Id: I18ba2d7d41fabaff35d10d520037188c7d9d1249
2019-08-01 19:01:37 +02:00
..
library Fix noqa warning 2018-10-28 14:31:23 +01:00
tasks Don't compare to literal True/False 2019-08-01 19:01:37 +02:00
vars add-build-sshkey: remove previously authorized build-sshkey 2019-05-20 13:23:02 +00: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 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.