Skip to content

[WIP] lxcssh connector #1282

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

Open
wants to merge 15 commits into
base: 3.x
Choose a base branch
from
Open

[WIP] lxcssh connector #1282

wants to merge 15 commits into from

Conversation

opekar
Copy link

@opekar opekar commented Feb 2, 2025

This is alfa version of LXC ssh connector inspired by pyinfra dockerssh connector

  • for basic operations it works
  • it's not yet tested for some larger deployment ...

I'll be happy, if you try it out in your environments.
To test it you can install code from this PR into your venv

pip install git+https://github.com/pyinfra-dev/pyinfra.git@refs/pull/1282/head

Seems to me would be quite straightforward to add support for LXD support mentioned in #677. E.g. this can be a reference ansible lxc connector.

@opekar opekar mentioned this pull request Feb 2, 2025
@opekar opekar changed the title lxcssh connector [WIP] lxcssh connector Feb 2, 2025
Copy link
Member

@Fizzadar Fizzadar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @opekar ! First up - thank you for PR-ing this, it's great to see the connector framework/API being used!

Same as other PRs I'm not going to merge this into pyinfra core, however, because I would like to reduce the number of connectors that are maintained within pyinfra itself (I am thinking v4 will only contain @ssh and @docker and will move all others into their own packages).

If you have time and are willing I'd highly encourage you to turn this into a pypi package (pyinfra-connector-lxcssh?) which could then be linked to on the connectors index in the docs. Would me more than happy to include this directly in the pyinfra documentation so people can find it.

@opekar
Copy link
Author

opekar commented Mar 27, 2025

Hi @Fizzadar, I will try to repackage it to separate repository, is there any example or template repository for this connector only repo?

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

Successfully merging this pull request may close these issues.

2 participants