Smaller things (common)
A few shorter ones from the shared scripts and the fleet as a whole.
Two of the physical servers had NTP turned off, one about three minutes slow and the other 19 seconds. It showed up as backup timestamps disagreeing between hosts, which is a confusing way to find out. One server also ran in UTC while everything else ran on local time, so the expiry of a two-hour sudo window looked like a five-hour one. Scheduled jobs always name the timezone now, which also meant the first weekly run fell on the night the clocks went back, when 01:00 to 01:59 happens twice. Some hosts may have updated twice. They seemed fine with it.
A password generator built from tr reading /dev/urandom into head aborted a whole install script, because with pipefail on, the tr dies of SIGPIPE when head stops reading and takes the script with it. Reading a fixed number of bytes first (head -c N /dev/urandom | base64) avoids it. In the same family: an ssh call inside a heredoc script reads the rest of the script as its own input unless given -n, and the probe used to fetch a host’s key always exits with an error code, which under set -e stops the script just before it pins the key.
My desktop’s shell is zsh, which doesn’t split an unquoted variable into words, so ssh $OPTS passes all the options as one argument. Anything with several options gets wrapped in a bash heredoc instead.
And when I symlinked the fleet-sudo script into my own path, it started looking for the card keys next to the symlink and failed with a message about the card not being able to sign. It resolves its real location with readlink -f now. As we know, every script works perfectly until someone uses it slightly differently.