deploy_nixos: add help to apply changes without rebooting in production

This commit is contained in:
Baptiste Jonglez 2025-03-26 00:17:59 +01:00
parent fd6275f5bc
commit 187d36eb9b

View file

@ -26,6 +26,11 @@ if [ "$CLUSTER" = "prod" ]; then
message "2. Reboot node manually. You can also take the opportunity to upgrade with:" message "2. Reboot node manually. You can also take the opportunity to upgrade with:"
message " REBOOT_NODES=yes ./upgrade_nixos prod $NIXHOST" message " REBOOT_NODES=yes ./upgrade_nixos prod $NIXHOST"
message "3. Mark node as eligible again in Nomad" message "3. Mark node as eligible again in Nomad"
message ""
message "If you are certain that the update is not disruptive, you can manually apply changes:"
message "1. Connect to node '$NIXHOST' over SSH"
message "2. Run this on the node:"
message " sudo nixos-rebuild switch"
message "-------------------------------------------------------------------------------------" message "-------------------------------------------------------------------------------------"
else else
cmd nixos-rebuild switch cmd nixos-rebuild switch