Re:Running servers and services well is not trivial (2018)
by a-dub on Saturday March 26, 2022 @08:39AM
(#30811336)
they forgot "document everything you did so that your replacement can recreate everything exactly as it was from instructions and backups"
[ Parent
| on HN ]
Re:Running servers and services well is not trivial (2018)
by sokoloff on Saturday March 26, 2022 @08:55AM
(#30811408)
That’s one of the appeals of infrastructure as code. For my own hobby work (where I might put down a project for months between serious work sessions, I often am that replacement). Some projects I have well enough structured or documented to pick right back inside of 30 minutes; others are more archeological in nature.
Re:Running servers and services well is not trivial (2018)
by pid-1 on Saturday March 26, 2022 @10:06AM
(#30811883)
Most software is hostile to IaC, unfortunately.
Even cloud providers, who have APIs for everything, will fuck up at making services that can be deployed as code in a sane way.
Re:Running servers and services well is not trivial (2018)
by sokoloff on Saturday March 26, 2022 @10:16AM
(#30811982)
If I’m being honest with myself, more of my side projects have a bin/publish script than are actually IaC.
Re:Running servers and services well is not trivial (2018)
by maccard on Saturday March 26, 2022 @12:02PM
(#30813021)
bin/publish.sh is better than remembering whether the service is on kubernetes, containers or a raw ec2 box, and "do I need to restart the service after update or just wait"
Re:Running servers and services well is not trivial (2018)
by bezospen15 on Saturday March 26, 2022 @07:51PM
(#30816421)
Lol you're overthinking it. We will just take a snapshot and call it a day
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)
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
Re:Running servers and services well is not trivial (2018)
by voiper1 on Saturday March 26, 2022 @02:12PM
(#30813976)
Not just your replacement!
If I have to check or change something or recreate it even 6 months later I often have no clue what the heck I did.
Re:Running servers and services well is not trivial (2018)
by throwaway984393 on Saturday March 26, 2022 @09:05AM
(#30811484)
"If it's not written down it doesn't exist"