4 ms·
Does pyinfra play nicely with devices that provide an SSH interface, but aren't traditional Unix boxes? I use Ansible currently to manage the config on a Ubiqu
by dolni 4y ago
Does pyinfra play nicely with devices that provide an SSH interface, but aren't traditional Unix boxes?
I use Ansible currently to manage the config on a Ubiquiti EdgeRouter. Using actual Python would be even better.
- Fizzadar 4y agoYes! I know of people that have connected to systems without any traditional shell/unix stuff. You can change the shell (or have none) used if needed using the global `_shell_executable` global arg (https://docs.pyinfra.com/en/2.x/arguments.html#shell-control-features https://docs.pyinfra.com/en/2.x/arguments.html#shell-control...). Most operations rely on various Linux/similar tools but the `server.shell` operation plus shell flag above should get you connecting and executing commands. Please do reach out if this doesn’t work for your setup!
- jononor 4y agoInterested in the same usecase, but for Mikrotik routers.