Create script to auto-deploy with retries
This commit is contained in:
parent
e3cacda356
commit
6a745892a4
12 changed files with 176 additions and 48 deletions
|
@ -4,14 +4,26 @@ Note that you have to be connected to the `vpn.qo.is`
|
|||
(or execute the deployment from a host that is in the `backplane.net.qo.is` overlay network)
|
||||
and that you need to have SSH root access to the target machines.
|
||||
|
||||
## Deploy system categories
|
||||
|
||||
We currently split out nixosConfigurations into these categories:
|
||||
|
||||
- `system-ci`: Systems should be updated separately because they might break automated deployment processes.
|
||||
- `system-vm`: Virtual systems.
|
||||
- `system-physical`: Physical systems.
|
||||
|
||||
You can roll updates with retries by category with:
|
||||
|
||||
```bash
|
||||
auto-deploy system-vm
|
||||
auto-deploy system-physical
|
||||
```
|
||||
|
||||
## Deploy to selected target hosts
|
||||
|
||||
```bash
|
||||
nix run .#deploy-qois .#<hostname>.system .#<hostname2>.system
|
||||
```
|
||||
nix develop
|
||||
|
||||
## Deploy with extended timeouts (sometimes required for slow APU devices)
|
||||
|
||||
```bash
|
||||
nix run .#deploy-qois .#calanda.system -- --confirm-timeout 600 --activation-timeout 600
|
||||
deploy --skip-checks .#cyprianspitz.system-physical
|
||||
deploy --skip-checks .#lindberg-build.system-vm
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue