Re:Running servers and services well is not trivial (2018)
by cersa8 on Saturday March 26, 2022 @09:11AM
(#30811516)
I wish there was a statically typed version of Ansible. There is Pulumi but it's mostly tied to cloud API's and not Linux system administration (setting up HAProxy, NGINX, PostgreSQL, users)
[ Parent
| on HN ]
Re:Running servers and services well is not trivial (2018)
by edude03 on Saturday March 26, 2022 @10:37AM
(#30812192)
Me too, though nix (https://nixos.org) and eventually nickel (https://nickel-lang.org) get you very close today.
Re:Running servers and services well is not trivial (2018)
by baq on Saturday March 26, 2022 @12:30PM
(#30813250)
Not exactly that, but definitely take a look: https://dhall-lang.org/
Re:Running servers and services well is not trivial (2018)
by nijave on Saturday March 26, 2022 @09:18AM
(#30811558)
I wish Ansible just had better data handling. Adding variable assignment plays and jamming things in Jinja is pretty clunky (if you want to, say, pull some data from a REST API and loop over a subset of the info)
You could always make an Ansible module but then there's the overhead to managing/installing that
Data wrangling can also make idempotent playbooks a bit clunky, too. You get into this 2-4 play "run check, reshape results, conditionally run play" pattern