d2bab25d63
This role also sets up authorized_keys so that inter-node ssh works between the hosts for alternative users. This role will be useful for things like devstack, which require an additional user be able to ssh around for things like nova's migrations. The role can be called multiple times, with a different target user each time. It is assumed that the user already exists. Change-Id: I5972d66a48802fce0c1ebb885be00c5803ff0e9a
18 lines
506 B
ReStructuredText
18 lines
506 B
ReStructuredText
Copy a build-local SSH key to a defined user on all hosts
|
|
|
|
This role is intended to be run on the Zuul Executor. It copies a generated
|
|
build specific ssh key to a user and adds it to the authorized_keys file of
|
|
every host in the inventory.
|
|
|
|
**Role Variables**
|
|
|
|
.. zuul:rolevar:: zuul_temp_ssh_key
|
|
:default: "{{ zuul.executor.work_root }}/{{ zuul.build }}_id_rsa"
|
|
|
|
Where to source the build private key
|
|
|
|
.. zuul:rolevar:: copy_sshkey_target_user
|
|
:default: root
|
|
|
|
The user to copy the sshkey to.
|