17
submitted 10 months ago by alvaro@social.graves.cl to c/selfhost@lemmy.ml

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 @selfhost@lemmy.ml @selfhosted@lemmy.world

you are viewing a single comment's thread
view the rest of the comments
[-] sudneo@lemmy.world 10 points 10 months ago

Ansible is definitely one way to do this. If your machines are VMs, then also building VM images with packer can be the way.

For tmux, vim, etc. You can still use ansible or some specific tool for dotfiles, like chezmoi (there are a bunch). You can even use ansible to run chezmoi!

[-] mhzawadi@lemmy.horwood.cloud 1 points 10 months ago

on top of ansible to setup system services and user accounts, I have found this https://github.com/andsens/homeshick to help getting my user settings back

[-] sudneo@lemmy.world 1 points 10 months ago

I use https://www.chezmoi.io/ for the same purpose of managing dotfiles. There are a bunch of tools to do this that you can pick your poison :)

this post was submitted on 13 Dec 2023
17 points (94.7% liked)

Self Hosted - Self-hosting your services.

11334 readers
38 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