5-AUG-2024
1144
I’ve got the format-disks stuff wrapped up in some Nix code now, I need to extend this into a
module, but essentially it just writes the format-disks script based on the Attrset I feed it; it
should be extensible to other machines, but does expect to be able to wipe all specified disks so
it’s still an imperative management strategy, I doubt there is a good declarative one for disks
since they are essentially entirely made of statefulness.
In any case, I plan to manage these disks imperatively and track changes via the CHANGELOG in the cadaster, so it’s not a big issue.
Remaining on the TODO for this is:
- Backups to Nancy (and thus to cloud)
- Porting all the VMs over to use the disk I’ve set up
- Setting up the NFS store on BTG
2331
I started moving the ZFS configuration into a dedicated module. This is pretty unnecessary but I wanted to start it and leave a branch to come back to later. I set up the existing configuration with a simple ‘mode’ flage to control whether it leaves the ‘prepare’ script in place, or if it just tries to mount the datasets. I’m not automatically calculating the filesystems, but I think that will be easier to do when it’s properly a module and not just the shim.