I would like to have a mechanism to set up a server automagically…

Similarly I would like to set up my user account settings (Tmux plugins, .zshrc and vim settings, etc) that I can replicate in multiple machines via a script (I have a custom script for this but I want a more solid alternative)

Thoughts on what infra-as-code solution would work best? Any similar experiences or use cases with one Thanks!
Cc @[email protected] @[email protected]

  • Moonrise2473@feddit.it
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    If it’s because you set new servers very frequently: Ansible

    If it’s because moving stuff once every two years to a new server is an hassle: everything in custom docker images

    • taladar@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      If you don’t update your Docker images for two years or more you are going to have even more security holes than if you had it all on the host system and didn’t update that.

      • Moonrise2473@feddit.it
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I build the docker images every time I call docker compose, they should be updated

        There’s the huge bug that apparently they don’t want to fix, is that it caches “apt upgrade” so I have to edit that line every once in a while

        One day I will update my script to add a random commented char at the end of that line every time