Live data from Hacker News

Pyinfra automates infrastructure super fast at scale

pyinfra.com

31–38 of 38 posts

Re: Pyinfra automates infrastructure super fast at scale

#31
I use pyinfra for my personal projects and I love it. Compared to Ansible it's a breath of fresh air. Ansible is very straightforward to start with, but quickly devolves whenever you step off the beaten path, and you end up with a tangled mess of unintelligible YAML after a while. Pyinfra is just Python. If you can read Python, you can understand what the deployment module is doing.

Re: Pyinfra automates infrastructure super fast at scale

#32

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

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 ?

Re: Pyinfra automates infrastructure super fast at scale

#34
post #27

How would you use pyinfra to manage a fleet of edge devices ? The main difference with a park of servers being that the edge devices are mounted on vehicles and therefore switching on and off with their own rhythm each. We cutrently get an alert from each device when an update is needed, ssh into it, and docker-compose the latest services.

Nice question! I am also wondering how it helps for the IoT devices... Up to now, What we found out is that Pull way makes more sense instead of Push way for the fleet of more than 500Ks devices in the field. We use Ansible Pull, but would also considering of such a way through GitOps approach. Not sure, if it would be also provided via Pyinfra to get such stuff via Pull way.

Re: Pyinfra automates infrastructure super fast at scale

#35
post #25

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.

Interested in the same usecase, but for Mikrotik routers.

Re: Pyinfra automates infrastructure super fast at scale

#36

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

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.

Re: Pyinfra automates infrastructure super fast at scale

#37

Earlier quoted context omitted.

One example where I personally ran into trouble with ansible was in dealing with SSL certificates. In production we use letsencrypt to generate SSL certificates as you'd expect, but for testing we were using self-signed certificates. This was surprisingly complicated under the ansible model, basically I ended up writing a reusable playbook that worked more or less as a function, and running a hook at the end to actua…

Feels as though perhaps this should have dropped from playbook into a module? https://docs.ansible.com/ansible/latest/dev_guide/developing... Then just writing a function.

It should have at least become a role that could be called in the different contexts of the environment it was targetting. Ansible's real power is in the hierarchical inventory, which can be used to efficiently describe the state of all of the things (I use it for everything from cloud things to specific machine things).
Post reply on HN