Skip to content

v1.21.0

Latest

Choose a tag to compare

@retlehs retlehs released this 24 Nov 20:06
73689ef

What's Changed

  • Add trellis doctor to check whether your servers are patched and up to date (#769)
  • Refresh the VM inventory when trellis vm start finds the VM already running (#770)
  • Ignore known_hosts for Lima VMs (#772)
  • Print the update notice to stderr (#771)
  • Bump brotli and klauspost/compress to fix govulncheck (#760)

trellis doctor

Ubuntu's unattended-upgrades doesn't cover Nginx, PHP or MariaDB, since Trellis installs them from their own repositories, so they drift unless you upgrade them yourself. trellis doctor compares what's installed on each server with what's available from its apt sources and php.net, checks for a pending reboot, unattended-upgrades and Ubuntu's support window, and prints the trellis provision command to fix anything that isn't up to date.

trellis doctor production
  • With no arguments, it checks every environment except development
  • Without --fix it never uses sudo and changes nothing on servers. --fix offers to run the suggested command for you
  • --quiet only prints problems (useful for cron), and --offline skips the php.net and GitHub lookups
  • Exits 0 when nothing failed, 1 when a check failed, and 2 when something couldn't be checked

See Server updates for more.

Lima VM connection fixes

  • trellis vm start now rewrites .trellis/lima/inventory with Lima's current SSH port when the VM is already running (e.g. started with limactl start or Lima's start-at-login). Before, provisioning and deploys to development failed with "Connection refused".
  • The VM's SSH options were being ignored because of a stray newline in the inventory. With that fixed, Trellis no longer checks ~/.ssh/known_hosts for Lima VMs, which get a new SSH port on every boot, so a stale entry no longer causes "REMOTE HOST IDENTIFICATION HAS CHANGED".

Update notice

The "A new release of trellis-cli is available" notice now goes to stderr, so it no longer mixes into output like trellis info --json, and it's only checked when both stdout and stderr are terminals.

Full Changelog: v1.20.0...v1.21.0