News for hackers. Stuff that matters.
Re:Shef by linsomniac on Tuesday March 11, 2025 @09:23AM (#43332189)
A couple years ago I did some experimenting with applying Ansible ideas on a smaller scale (like a shell script rather than operating on fleets of machines). I started off with using YAML and some alternate syntaxes, because I was coming from ansible.

But then I decided I really kind of despise "programming" in YAML (conditionals and loops in particular). So I adapted Ansible ideas to Python, in particular: idempotent commands and notifications (commands triggered later, when another set of commands make a change; like restarting apache after making a bunch of config changes).

https://github.com/linsomniac/uplaybook?tab=readme-ov-file

Re:Shef by mattbillenstein on Thursday March 13, 2025 @05:51PM (#43357575)
Interesting, I built a whole rpc / file-server ala saltstack on top of something like this:

https://github.com/mattbillenstein/salty

Been using this on a couple startups for a couple years, but it lacks polish in terms of user-friendliness.

Interesting how we came to some of the same types of things - like you have .notify() - I return a result object with a "changed" flag, etc.