f6a0bf7be5
Previously we were only managing root's known_hosts via ansible but even then this wasn't happening because the gerrit_self_hostkey var wasn't set anywhere. On top of that we need to manage multiple known_hosts because gerrit must recognize itself and all of the gitea servers. Update the code to take a dict of host key values and add each entry to known_hosts for both the root and gerrit2 user. We remove keyscans from tests to ensure that this update is actually working. Change-Id: If64c34322f64c1fb63bf2ebdcc04355fff6ebba2
7 lines
706 B
YAML
7 lines
706 B
YAML
# This value is currently set to the value we use in testing.
|
|
# We then override this pubkey everywhere we need to in prod
|
|
# host/group vars.
|
|
# TODO replace this value with the prod pubkey value and force
|
|
# testing to override rather than the other way around.
|
|
gerrit_ssh_rsa_pubkey_contents: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+pCQlTAQYmCrOY6aPbvbyKQDcOCXibPNGIjnPPMuEItCS0vtRnqEBz7znWZS5Drq9yKpROh6uFF01ao2VnNjw6f+NdRNV19RWVe6mYN+qa2VrH2caLwBrKPiH0Xc/eK41D55dZU7IWwKYAw/NpiBaBfHavFwipI+rmEb68MH2hcimDdr/bji+0hkh3X+42dkNvmMdtkuCW6nKdAEhnXaHZc5SJR/EvzgRCfB8vbML13p46O9xhoJgn7ZWvMb3vaR5jxIkQwstUR36raEVhttBDEuWasWnHYbrM1zd3ooudbTEQf5vXISZKFygHyJFFqb4iQ76i+hDlb0VQKZCdaol gerrit-code-review@829f141b0fa5
|