Live data from Hacker News

PyInfra 3.8.0

github.com

11–20 of 110 posts

Re: PyInfra 3.8.0

#11
I've been using PyInfra for a while, albeit just for simple automation (Updating systems, checking certain stats) and I'm a big fan. Compared to Ansible, I found the docs, syntax and usage patterns much easier to get on with. Might just be a preference thing, but I always had trouble going through the Ansible docs.

Ran into some bugs, like one machine that seems to cause errors and mess up the output on restart, although that looks like it might have been addressed in this release.

If it helps, I put together a video when initially exploring PyInfra: https://www.youtube.com/watch?v=S-_0RiFnKEs

Re: PyInfra 3.8.0

#12
post #6
post #5

Has anyone used this and ansible and is able to give a short comparison with likes and dislikes?

At a previous job we used it to test our ansible playbooks via molecule, which were part of a CI/CD pipeline to create AWS AMIs. It worked well and was nicer to deal with than test kitchen for testing UNIXy things (is service running and/or enabled, does file have right permissions, does file include $TEXT, etc). It was very useful for us during big linux upgrades, such as when ubuntu went from upstart to systemd. It…

was this before uv? i feel like my pyenv struggles basically ceased once I started using it

Re: PyInfra 3.8.0

#13
post #5

Has anyone used this and ansible and is able to give a short comparison with likes and dislikes?

I switched from Ansible to Pyinfra for my homelab, and continue to use Ansible at work.

The biggest difference is that Pyinfra is simply Python code. It's incredibly easy to control the system in whatever manner you need to. You can probably do the same thing in Ansible, but it's never quite as obvious how to do it. This also means it's much more clear where and why things work the way they do in Pyinfra, where in Ansible I end up digging through numerous role files to try to find where some variable gets injected.

Re: PyInfra 3.8.0

#14
post #5

Has anyone used this and ansible and is able to give a short comparison with likes and dislikes?

Pyinfra is what ansible should have been. It's straight python rather than a janky mix of yaml, templates, and bolted-on control flow primitives.

Re: PyInfra 3.8.0

#15
The is cool, thank you for sharing. I was just thinking about onboarding to ansible since I’ve just been following a manual checklist of commands for my remote server but based on positive feedback here I’ll probs oh give this a shot. Only downside is I imagine LLMs are probably a little more proficient at ansible just due to volume of training data.

Re: PyInfra 3.8.0

#18

There's a video! I can't get over the fact of how suspicious he looks while doing it. And doesn't even cover his face. Crazyness https://x.com/porqueTTarg/status/2047652413306277970 https://xcancel.com/porqueTTarg/status/2047652413306277970

This is spam - btw this is the first spam I have ever come across on hacker news

Re: PyInfra 3.8.0

#19

There's a video! I can't get over the fact of how suspicious he looks while doing it. And doesn't even cover his face. Crazyness https://x.com/porqueTTarg/status/2047652413306277970 https://xcancel.com/porqueTTarg/status/2047652413306277970

This is spam - btw this is the first spam I have ever come across on hacker news

I think this was likely an attempted response to https://news.ycombinator.com/item?id=48008326
Post reply on HN