Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hey all, I (& many amazing contributors) built pyinfra! Crazy to see it on the homepage I’ll do my best to answer any questions!


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.


Yes! 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...).

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!


Interested in the same usecase, but for Mikrotik routers.


Late reply but I'm curious if the focus is idempotent execution (like ansible) or desired state (like puppet).

I'm guessing the former since it's agentless.


Read a few pages I gave up. May I ask - what is its use case? - security - charge model - self hosting Sorry if miss a faq on the site ?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: