this post was submitted on 13 Dec 2023
16 points (94.4% liked)

Self Hosted - Self-hosting your services.

11086 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

If you see a rule-breaker please DM the mods!

founded 3 years ago
MODERATORS
 

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]

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 8 months ago (1 children)

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 1 points 8 months ago (1 children)

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.

[–] [email protected] 1 points 8 months 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