or a middle path solution like https://github.com/pyinfra-dev/pyinfra
Re:Shef
by eduardoagarcia on Tuesday March 11, 2025 @01:15AM
(#43329353)
I really like python as well (definitely one of my weapons of choice for one-off scripts)
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).
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.
Sorta hate yaml drive config management and deployments sytems aka ansible, saltstack, etc; so ended up writing my own that's salt-like, but all python.