[FEATURE REQUEST] Add mountpoint parameter to zpool.present state #59181
Labels
Feature
new functionality including changes to functionality and code refactors, etc.
Milestone
Is your feature request related to a problem? Please describe.
It's impossible to mount zpool created by
zpool.present
state to the arbitrary location in the file system hierarchy because it doesn't acceptmountpoint
argument (-m
option tozpool create
), so it will always go to the default location. This is highly undesirable in some circumstances. For example, I'm currently porting something that's using BTRFS to ZFS and it would be really nice if the file system hierarchy could stay the same.Describe the solution you'd like
zpool.present
state should acceptmountpoint
parameter, probably as a property in theconfig
parameter.Note that the
zpool.create
module acceptsmountpoint
, so the state should just accept it and pass it on because it's already using that module to create zpool if it doesn't exist. In other words, I expect this to be a very small code addition.Describe alternatives you've considered
At the moment I had to ignore
zpool.present
state. Instead I've created a stateful script which accepts all parameters I care about and callszpool create
directly. That works, but doesn't have all the features that thezpool.present
state has, so it isn't really a desirable alternative.Additional context
Add any other context or screenshots about the feature request here.
Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.
The text was updated successfully, but these errors were encountered: