Make VM file system configuration a disko module value #95
Labels
No labels
blocked
bug
component: fediversity panel
component: nixops4
contributor experience
documentation
estimation high: >3d
estimation low: <2h
estimation mid: <8h
goal: devops
project-management
question
role: sysadmin
security
technical debt
testing
user experience
user story
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Fediversity/Fediversity#95
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We currently manage disk layout manually, and while we have a bit of a disko setup we're not using it for actual VMs.
Integrate the disko spec (which should be essentially the same for all VMs) with how we deploy to VMs (as discussed with @niols, the disk layout should probably be a first-class configuration attribute and have the disko option type). It could also be that we don't need any sort of machine-specifics for disk layouts, which would simplify things substantially.
let's try if it works without hardware config?
otherwise, further prior art:
nixos-facter
(iirc also built into saynixos-anywhere
)I'm not sure I see what you mean
i meant maybe we can verify this:
With #174, all VMs[1] share the same hardware code which is just a disko definition.
[1]: All new VMs; I don't dare changing the
fileSystems
definition of old ones.okay, thanks.
old ones, prob we can replace if/when there is no state to preserve there.
I guess you're right, so I could easily do that for all VMs except Forgejo and the Wiki; those I'd be a bit worried to break.
I'll go ahead and close this; I feel it's taken care of.
eventually i'd beg to differ in the sense we still gotta manually hard-code a bunch of stuff, but that's blocked on stateful deployment anyways
correction: oh wait, on disk stuff that did seem only remaining for legacy ones still, never mind 🙈
Yes, it's only legacy stuff! I'm hoping to get rid of those legacy VMs one by one, but sadly they still have to be around for now! IIRC there is a note in each of those that explains why there is a
fileSystems
attribute in their config!