Backfill ansible role for kai-server systemd units (post checkout-move) #355
Labels
No labels
burndown-2026-06
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/infrastructure#355
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Backfill an ansible role for kai-server's hand-installed systemd units
On 2026-06-17 the live infra checkout was moved from the retired top-level
~/projects/infrastructureto the canonical-tracking~/projects/coilyco-flight-deck/infrastructure. Six systemd units onkai-server hardcoded the old path and were hand-edited on-box to unblock
the move (backed up to
/etc/systemd/system/.pre-move-bak-20260617-004800):k3s.service(ExecStartPre dos2unix + ExecStart)eco-server.servicefactorio-server.servicefactorio-backup.service(timer-driven)icarus-server.servicecore-keeper-server.serviceThese units are not managed by ansible today, so a fresh kai-server
rebuild would not reproduce them. Per the authoring-vs-rollout doctrine, the
unit definitions belong in an ansible role (rollout), templating the checkout
path rather than hardcoding it.
Scope
scripts path templated to the canonical checkout.
units, then the on-box
.pre-move-bak-*backup can be dropped.Related
restart: landed in
scripts/k3s-start.sh.hardening closes out.
Side-finding (separate, low priority)
During the k3s restart, journald logged
Failed to allocate directory watch: Too many open files. Current limits:fs.inotify.max_user_watches=65536,max_user_instances=128. k3s + containerd can exhaust instances; worth asysctl bump (e.g. instances 512, watches 524288) if it recurs.