#pyinfra — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #pyinfra, aggregated by home.social.
-
#TIL learned about #Pyinfra which is a #Python based alternative to #Ansible that lets you write declarative, idempotent server automation in pure Python instead of YAML playbooks. It gives you built-in modules for packages, files, and services while letting you use native Python logic.
learn more about it at
https://github.com/pyinfra-dev/pyinfra -
I just started to become interested in #pyinfra, then I saw .claude under CLAUDE.md.
Deleted test setup immediately. -
🎉 Oh, joy! Yet another #update for #pyinfra, the tool everyone (literally no one) can’t live without. Now with an exciting list of #features no one understands or asked for, and more #AI buzzwords than you can shake a stick at! 🚀🤖
https://github.com/pyinfra-dev/pyinfra/releases/tag/v3.8.0 #tools #software #development #excitement #HackerNews #ngated -
I spend my Sunday mornings doing server updates and that is normally a chill activity, but this time there was a bit of a hiccup: https://ginabythebay.studio/posts/sudo_rs_undo/
How do you like to spend your Sunday mornings?
#pyinfra #sudo -
@markstos heh, yeah 😂 #Pulumi doesn't do that. I do use it exclusively for creating cloud resources, or occasionally things of a similar nature like Docker containers running on a host which had the Docker runtime installed and configured separately.
In order to get things installed on the servers after I provision them, I've historically mostly used shell scripts, although for new stuff I'm transitioning to cloud-init. Or in some cases I might separately (manually) prepare an image containing everything I want to wind up on the new server and use that.
For management of existing infrastructure I've been using #Pyinfra, which I like, although it doesn't have the wealth of predefined tasks/roles/playbooks that Ansible does. Someday I would like to integrate Pyinfra into my Pulumi usage.
-
@pfhllnts next year a new track at #cfgmgmtcamp? 🙂
#pyinfra -
Trying out #PyInfra as an alternative to #Ansible. I hate having to program in #YAML so just doing it in pure #python is nice.
So far so good. I was able to install a package, upload some #systemd units, conditionally do a daemon-reload and enable the units with way less thrashing around than I've had with Ansible.
-
🔥 Wow, #pyinfra does what every #sysadmin dreams of: turning #Python into shell commands. Because who doesn't love more layers of abstraction and complexity? 😅 Now you can automate the chaos of managing your servers with a tool that is definitely not over-complicating things! 🚀
https://github.com/pyinfra-dev/pyinfra #automation #shellcommands #servermanagement #complexity #HackerNews #ngated -
Pyinfra: Turns Python code into shell commands and runs them on your servers
https://github.com/pyinfra-dev/pyinfra
#HackerNews #Pyinfra #Python #ShellCommands #DevOps #Automation
-
pyinfra is 5 years old and nobody has thought of adding label support to docker containers? Huh? (even weirder: it does support labels for volumes and networks...)
-
ok so I'm debugging pyinfra and it seems it mishandles sudo -i; however despite reading the sudo manpage I'm also incapable of understanding how sudo -i *precisely* works when it comes to escaping (see second toot)
So here's the question: how do I make this command output 1? with -i; I do want a login shell.
sudo -i sh -c 'x=1; echo $x'