We use HPE machines with hardware RAID. We have create customs commissioning scripts to create HW Raids. We have one script to each kind of configuration.
The main problem with this approach is that Maas by default enables all commissioning scripts, so we need to have one commissioning script (with high priority 00-xxx) to disable all others scripts executions and manually select the desired script.
If we can read the tags of a machine (and storage) from the commissioning script, we could use a single partitioning script that, according to which tag, will perform one configuration or another.
This solution is quite powerful, as it gives full control over how to create the partition making practically all the HW compatible.