(no title)
jw_cook | 1 year ago
That got me thinking: how do other self-hosters/homelabbers here go about automating their server setups? None/purely manual? One big shell script? Multiple scripts wrapped in a Makefile (or justfile, or other command runner)? More enterprisey provisioning/automation tools like Ansible, Puppet, etc.?
bpye|1 year ago
duckmysick|1 year ago
https://github.com/pyinfra-dev/pyinfra
https://github.com/casey/just
atoav|1 year ago
If I would do basically the same over and over I'd probably go with a script, ansible cookbook or similar, but as of now the manual route is totally fine.
ranger207|1 year ago
jmathai|1 year ago
What's nice about is that it doesn't require any specialized knowledge beyond bash - and that's something which is pretty easy to learn and great to know. It also attracts, IMO, the type of developers who avoid chasing new trends.
Sammi|1 year ago
This sets up everything I need so I can treat my servers as livestock instead of pets - that is, so I can easily slaughter and replace them whenever I want, instead of being tied to them like a pet.
everforward|1 year ago
It’s like Ansible, but you write Python directly instead of a YAML DSL. Code reuse is as simple as writing modules, importing them, and calling whatever functions you’ve written in normal Python.
I find it almost as easy as writing a shell script, but with most of the advantages of Ansible like idempotency and a post-run status output.
1: https://github.com/pyinfra-dev/pyinfra
ricardo81|1 year ago
Written in bash also
tobijkl|1 year ago
Jedd|1 year ago
Most of my actual tools now are running in docker via Nomad.