17
submitted 11 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
[-] MajorHavoc@lemmy.world 16 points 11 months ago

I think you're looking for Ansible. Have fun!

The difference between an Anible playbook and a script, is Ansible has a 'check', 'change', 'verify' pattern, and is declarative (meaning that once the playbook is made, it tends to keep working on future versions of Ansible.)

[-] marx2k@lemmy.world -1 points 11 months ago

Ehhh... as someone who does devops, you should dive into ansible core changelogs on github sometime ;)

[-] MajorHavoc@lemmy.world 2 points 11 months ago

I assume you mean to check on his often they're is the breaking changes? :)

Declarative style isn't perfect, but it's a massive improvement from straight bash scripting.

[-] marx2k@lemmy.world 2 points 11 months ago

💯

We're an ansible shop and yeah it's better than bash scripting (where it makes sense) but ansible.. man it does have some peculiarities :/

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

Self Hosted - Self-hosting your services.

11444 readers
32 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