Migrate the inventory (netbox) server to bullseye.
Plan:
- [ ] Check in vagrant everything is fine... (ongoing)
- [ ] Point of attention, netbox service relies on python3-venv, so we need to keep python3.7 around during the upgrade
- [ ] Actual migration [1]
- [ ] Recreate the venv with the new python3 version (3.9) and ensure the netbox service starts ok
- [ ] Clean up no longer required python3.7 version
- [ ] Inventory update for that node
[1]
```
task=T3802
puppet agent --test
cd /etc
git add .
git commit -m "Commit left-over change prior to trigger dist-upgrade to bullseye"
# finally disable puppet
puppet agent --disable "$task: dist-upgrade to bullseye"
$CMD install -y python3 # keep python3.7 around during migration
sed -i -e 's/buster/bullseye/;s,bullseye/updates,bullseye-security,' /etc/apt/sources.list.d/*
git status
git diff
grep bullseye-security /etc/apt/sources.list.d/debian-security.list
git add .
git commit -m "$task: Migrate sources.list to bullseye"
apt update
CMD="apt -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold"
export DEBIAN_FRONTEND=noninteractive
$CMD upgrade -y
$CMD dist-upgrade -y
```