deploy_nixos: add help to apply changes without rebooting in production
This commit is contained in:
parent
fd6275f5bc
commit
187d36eb9b
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue