This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-02
Channels
- # babashka (37)
- # beginners (19)
- # calva (5)
- # cider (14)
- # clojure (21)
- # clojure-europe (2)
- # clojurescript (16)
- # conjure (11)
- # datalog (78)
- # deps-new (3)
- # gratitude (2)
- # introduce-yourself (1)
- # joker (1)
- # jvm (4)
- # lsp (17)
- # malli (5)
- # meander (6)
- # minecraft (3)
- # off-topic (17)
- # other-languages (25)
- # practicalli (1)
- # quil (12)
- # reveal (6)
- # spacemacs (19)
There is some tool like ansible
, that helps me to do idempotent operations in my local//remote linux system, but that use an actual PL, like JS/python/clojure rather than a wired YAML with loops and conditionals?
The closest thing to ansible I have found in clojure is spire. https://github.com/epiccastle/spire
There is also titanoboa while not exactly the same can be used like ansible. https://www.titanoboa.io/using-titanoboa-for-it-automation.html
hmm given how stable / supported ansible is if I had to start a new codebase I think I would try to generate the yaml with babashka
if I had to start a new codebase
same if I have to start a project with kubernetes with to be honest
templating feels wrong with yaml, I would rather use a programming language and use functions
and there is a lot of repeatability in creating ansible tasks that probably works nice with functions - i.e. installing yum packages, running shell scripts, setting up rescue blocks etc.
definetely do filter the output through ansible-lint
it gives some nice hints on ansible best practices
anyway by generating the yaml you can output really straightforward instructions for ansible to run and if you conform it to best practices the errors will come out understandable (
and refactoring will be much easier - i.e. rearranging which tasks go in which role, changing tags etc.
😲 but also 😞 because I just realized the last chance I had to ski was New Year's 2020
I opted to use this for background music instead: https://youtu.be/TZzfaxaHNCk?t=447