Skip to content

Add scripts/update-hosts.sh and host list template - #1660

Merged
JacobStephens2 merged 1 commit into
mainfrom
fleet-update-script
Oct 30, 2026
Merged

JacobStephens2 merged 1 commit into
mainfrom
fleet-update-script

Conversation

@JacobStephens2

Copy link
Copy Markdown
Owner

Summary

Adds a helper script and ignored host-list config to run thirdshift update across a fleet of local, Lima, and SSH hosts.

 .gitignore                         # ignores /scripts/update-hosts.conf
 scripts/
+├── update-hosts.conf.example      # committed template showing local, lima:<vm>, and ssh <host> entries
+└── update-hosts.sh                # runs `thirdshift update` across configured hosts
scripts/update-hosts.sh [hosts-file]
  for each entry in scripts/update-hosts.conf:
    local           -> bash -c "$remote_cmd"
    lima[:instance] -> limactl shell <instance> bash -c "$remote_cmd"
    ssh <target>    -> ssh <target> "bash -s" <<<"$remote_cmd"
      run `thirdshift update`
      if no install receipt (e.g. aarch64-unknown-linux-gnu source install):
        update from ~/repos/thirdshift latest release tag (or `cargo install thirdshift --locked`)

Evidence

  • Before: Updating each host required manually running thirdshift update on local, Lima, and each SSH target.
    After: Running scripts/update-hosts.sh updates all 7 configured hosts in one command:
    $ scripts/update-hosts.sh
    ==> local
    thirdshift: 12:41:37 thirdshift 0.18.7 is the latest release
    ==> lima:thirdshift
    no install receipt; updating from ~/repos/thirdshift...
    thirdshift: 12:41:37 thirdshift 0.18.7 is the latest release (from source)
    ==> ssh jacob@thirdshift.app
    thirdshift: 12:41:39 thirdshift 0.18.7 is the latest release
    ==> ssh jacob@stephens.page
    thirdshift: 12:41:40 thirdshift 0.18.7 is the latest release
    ==> ssh jstephens@test
    thirdshift: 12:41:44 thirdshift 0.18.7 is the latest release
    ==> ssh jstephens@orchestrate
    thirdshift: 12:41:45 thirdshift 0.18.7 is the latest release
    ==> ssh jstephens@dev
    thirdshift: 12:41:51 thirdshift 0.18.7 is the latest release
    

Merge Danger

Door: two-way

Standalone developer utility script in scripts/ and .gitignore entry; does not touch src/ or runtime behavior.

Blast Radius: Low

Only affects manual invocations of scripts/update-hosts.sh.

@JacobStephens2
JacobStephens2 merged commit 44c99f7 into main Oct 30, 2026
9 checks passed
@JacobStephens2
JacobStephens2 deleted the fleet-update-script branch October 30, 2026 16:54
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant