This commit is contained in:
commit
fef2377502
174 changed files with 7423 additions and 0 deletions
49
updates.md
Normal file
49
updates.md
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Updates
|
||||
|
||||
To update the infrastructure, do the following steps:
|
||||
|
||||
```bash
|
||||
|
||||
# Update inputs
|
||||
nix flake update
|
||||
|
||||
# Check builds
|
||||
nix build
|
||||
|
||||
# Push updates to git remote
|
||||
git add flake.lock
|
||||
git commit
|
||||
git push
|
||||
```
|
||||
|
||||
Deploy updates:
|
||||
|
||||
```bash
|
||||
nix develop
|
||||
|
||||
# Deploy vms
|
||||
deploy-qois .#lindberg-nextcloud .#lindberg-build
|
||||
|
||||
# Deploy fast physical hosts
|
||||
deploy-qois .#lindberg
|
||||
|
||||
# Deploy slow physical hosts (maybe do individually)
|
||||
deploy-qois --confirm-timeout 600 --activation-timeout 600 --targets .#fulberg .#tierberg .#stompert .#stompert
|
||||
|
||||
```
|
||||
|
||||
After deploying updates, verify that all services run as expected.
|
||||
For kernel updates, it might be required to reboot machines, which can be done in parallel with e.g.:
|
||||
|
||||
```bash
|
||||
pssh -l root -H lindberg-nextcloud.backplane.net.qo.is -H lindberg-build.backplane.net.qo.is reboot
|
||||
```
|
||||
|
||||
## Aplication Updates
|
||||
|
||||
Some applications have pinned versions to prevent problems due to accidental upgrades.
|
||||
The version switch has to be done manually by switching the package used.
|
||||
|
||||
This includes the modules for:
|
||||
|
||||
- `nextcloud`
|
Loading…
Add table
Add a link
Reference in a new issue