Hacker News new | past | comments | ask | show | jobs | submit login

What advantages does Pyinfra have over NixOps?

https://github.com/NixOS/nixops




> NixOps is a tool for deploying to NixOS machines in a network or the cloud

seems like pyinfra is OS agnostic.


Just checked out the NixOps manual https://nixos.org/nixops/manual/ and it seems able to deploy to NixOS machines on any cloud or LAN platform. But i also do not find any mention of it being able to deploy non-NixOS servers.


The question is why would you want to have non-nixos servers in that case. If the goal is to have super-fast automation, you still need to unify your setup around something common. I see more benefits in unifying around NixOS than in unifying around Ansible/Pyinfra, as the latter require me to specify my infra in terms of low-level OS- and distro-specific package managers, that would eventually define the same lack of "OS agnostic portability".


The frontpage shows that it relies at least on apt-get:

    from pyinfra.modules import apt

    apt.packages(
        {'Install iftop'},
        'iftop',
        sudo=True,
    )
And search over docs doesn't produce results for Windows/MacOS

* https://pyinfra.readthedocs.io/en/v0.14.5/search.html?q=wind...

* https://pyinfra.readthedocs.io/en/v0.14.5/search.html?q=maco...


it supporting apt doesn't mean it "relies on apt". Looking at the list of options, it supports multiple package managers, including ones for Windows and MacOS.


but then, if one needs to use low-level primitives representing specific package managers, it's hardly aligned with a claim of "super fast infrastructure automation". With Nix I have exactly one package manager for any target platform.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: