home.social

#pyinfra — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pyinfra, aggregated by home.social.

fetched live
  1. #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
    github.com/pyinfra-dev/pyinfra

    #devops #infrastructure #automation

  2. I just started to become interested in #pyinfra, then I saw .claude under CLAUDE.md.

    Deleted test setup immediately.

  3. 🎉 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! 🚀🤖
    github.com/pyinfra-dev/pyinfra #tools #software #development #excitement #HackerNews #ngated

  4. 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: ginabythebay.studio/posts/sudo

    How do you like to spend your Sunday mornings?
    #pyinfra #sudo

  5. @diazona I see the tagline for #PyInfra is "Think ansible but Python instead of YAML, and up to 10x faster."

    Sounds nice, though I imagine it has much smaller ecosystem of pre-build idempotent roles and lookup modules than #Ansible does

  6. @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.

    #DevOps

  7. @isotopp #PyInfra ist doch nur neuer Syntax für die Behandlung der gleichen Symptome, ohne die grundlegenden Probleme zu lösen, oder habe ich was verpasst?

    Und wer damit automatisiert interagieren will braucht dann nicht nur einen YAML Parser (schlimm genug!) sondern einen Python LSP?

    Well done. Not.

  8. 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.

    pyinfra.com/

    #Devops #Automation #ServerConfiguration #Linux

  9. 🔥 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! 🚀
    github.com/pyinfra-dev/pyinfra #automation #shellcommands #servermanagement #complexity #HackerNews #ngated

  10. 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...)

    #pyinfra #devops

  11. 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'

    #askfedi #linux #pyinfra