-
-
Notifications
You must be signed in to change notification settings - Fork 392
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
LXD connector #677
Comments
I'd like to have this and have the connectors somehow composable, as the machine I am running pyinfra from ISN'T one of those running lxc. Due to that, lxcssh (or something would be also nice to have. I might tackle writing something for my use, although as my use is really (at the moment at least) limited I'm tempted just skipping pyinfra and doing stuff by hand :-) Still, keeping an eye on this issue. I suppose one option would be just writing pyinfra stuff which ssh's pyinfra configs to machines, and then runs them with lxc connector if any; without lxc connector, it could also copy them to the lxc container and run pyinfra there but I'd rather not install pyinfra in N places if one is enough. |
The |
I don't know which approach is better, but the LXD project maintains an official Python SDK https://github.com/lxc/pylxd/blob/master/setup.cfg#L16 Shelling out to Both have their advantages. Relying on the @Fizzadar What's your preference regarding taking on python deps? |
#1282 lxc connector for inspiration, push and get file would be done directly via lxc file push/pull commands |
Hello,
The goal would be to have a LXD connector so we can use it like:
In the back-end it should probably use
lxc exec <containerName> -- <command>
Related: #388
Thanks,
The text was updated successfully, but these errors were encountered: