Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tower-deploy] Update known_hosts file when new machines are built #4899

Closed
2 of 4 tasks
maxkadel opened this issue May 6, 2024 · 4 comments
Closed
2 of 4 tasks

[tower-deploy] Update known_hosts file when new machines are built #4899

maxkadel opened this issue May 6, 2024 · 4 comments

Comments

@maxkadel
Copy link
Contributor

maxkadel commented May 6, 2024

What maintenance needs to be done?

When a new server is built using a pre-existing FQDN name, we want to be able to deploy to it using Tower without manually updating the known_hosts file.

As an example of what the failure looks like, see this Ansible Tower deploy to bibdata-qa after the servers were re-built.

Level of urgency

  • High
  • Moderate -
  • Low

Why is this maintenance needed?

This will be needed to make automatically provisioning new VMs sufficiently cheap to do it all the time, which will allow us to iterate on and improve our infrastructure much faster.

Acceptance criteria

  • When a server is built with the same FQDN, I can deploy to it without ssh'ing into the tower deploy server and doing anything manual there

Implementation notes, if any

There is an Ansible known_hosts module, not sure yet if it matches our use case.

@kayiwa
Copy link
Member

kayiwa commented May 7, 2024

This is not an ansible problem (certainly not the process of ssh connection)

Rather this is the deploy user from the deploy box connecting to the remote VM to run capistrano.

@kayiwa
Copy link
Member

kayiwa commented May 7, 2024

Does capistrano have a ignore ssh

This can possibly also be flagged in capistrano

@acozine
Copy link
Contributor

acozine commented Jul 8, 2024

If we can get the deploy playbook to run in an EE on Tower itself, we will solve this problem, because the EE is always "fresh". So far I have not gotten the EE to work, though - see #4744.

@acozine
Copy link
Contributor

acozine commented Sep 11, 2024

Closed by #5215. That PR adds a task that updates the known_hosts file on the tower-deploy1 VM.

@acozine acozine closed this as completed Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants