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

Feature Request: extending trellis check command #376

Open
3 tasks done
sangemaru opened this issue Mar 31, 2023 · 2 comments
Open
3 tasks done

Feature Request: extending trellis check command #376

sangemaru opened this issue Mar 31, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@sangemaru
Copy link

Terms

Summary

Extend the dependency checks the trellis check command carries out to include required provisioning/deployment checks like SSH agent, keys, Ansible.

Motivation

Why are we doing this?

Right now, trellis check looks for Python, Vagrant and Virtualbox compatibility related to local development, but some important checks would be:

  • system Ansible version and its compatibility
  • SSH agent being enabled
  • SSH agent keys being loaded

What use cases does it support?

Would be nice to support checks of any known dependencies of the deploy/provision processes.

What is the expected outcome?

An output like:

Checking Trellis requirements...

Required:
[✓] Ansible [>= 2.9.7]: 2.10.0
[✓] Python [>= 3.8.0]: 3.11.2
[✓] SSH Agent [On]: Yes
[✓] SSH Agent [Loaded]: Yes

Optional:

[✓] Vagrant [>= 2.1.0]: 2.3.4
[✓] VirtualBox [>= 4.3.10]: 6.1.36r152435
...

Potential conflicts / foreseeable issues

May conflict with Ansible version in virtual environment

Additional Context

No response

@sangemaru sangemaru added the enhancement New feature or request label Mar 31, 2023
@swalkinshaw
Copy link
Member

check definitely needs some improvements and I like some of these ideas.

That command was also added years before the CLI could create a virtualenv for better dependency handling. It could say if you're run trellis init?

Checking Trellis requirements...

[✓] Project initialized

Required:
[✓] Ansible [>= 2.9.7]: 2.10.0
[✓] Python [>= 3.8.0]: 3.11.2
[✓] SSH Agent [On]: Yes
[✓] SSH Agent [Loaded]: Yes

Optional:

[✓] Vagrant [>= 2.1.0]: 2.3.4
[✓] VirtualBox [>= 4.3.10]: 6.1.36r152435
...

I'll give this some more thought.

@sangemaru
Copy link
Author

Yeah, I use trellis init. But it doesn't check for those basic requirements, so we need to remember to do those manually. On my end, that's rarely an issue, but I usually can't hand off trellis-related processes to others because of all the details they're not aware of. So either sticking it into trellis check or trellis init works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants