feat: bootstrap apt packages on ubiworkers via --pkg - #71
Merged
Conversation
Workers come up as a bare image; anything beyond that meant a manual apt session on every new VM. The base set is intentionally empty for now — nothing is needed on every worker unconditionally — so the flag carries the per-create choice, and `dist-upgrade` runs regardless. The bootstrap is detached into a transient systemd unit rather than run inline, and launched only once tailscale enrollment has succeeded: tailscale's installer calls apt-get with no dpkg-lock timeout, so an apt job running first would hold the lock out from under it and could exhaust enrollment's retry budget, leaving a billed VM unreachable. An unreachable worker is the one outcome this must never cause; slow or failed package installs are recoverable over ssh. Names are installed with `apt-get satisfy`, not `install`: with operator-supplied names, `install` would treat an unmatched name containing `.` as a regex and a trailing `-` as a removal request.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workers come up as a bare image; anything beyond that meant a manual
apt session on every new VM. The base set is intentionally empty for
now — nothing is needed on every worker unconditionally — so the flag
carries the per-create choice, and
dist-upgraderuns regardless.The bootstrap is detached into a transient systemd unit rather than
run inline, and launched only once tailscale enrollment has succeeded:
tailscale's installer calls apt-get with no dpkg-lock timeout, so an
apt job running first would hold the lock out from under it and could
exhaust enrollment's retry budget, leaving a billed VM unreachable. An
unreachable worker is the one outcome this must never cause; slow or
failed package installs are recoverable over ssh.
Names are installed with
apt-get satisfy, notinstall: withoperator-supplied names,
installwould treat an unmatched namecontaining
.as a regex and a trailing-as a removal request.