-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Profile inheritance and raw QEMU configuration keys #1400
Comments
We've so far stayed away from trying to do anything like this, despite it being equally useful for things like cloud-init. Though in the cloud-init case you at least do have the benefit of having both We obviously don't want to change the general behavior of config key overriding through profiles and local config, even just for a few select keys as we really want consistency there. What we could do in theory is provide something like For the scriptlet case, my recommended solution would be to change the scriptlet so it's being fed the instance definition, then a single scriptlet could get through varying behavior based on the instance, its devices or config keys (including Obviously that wouldn't really help you with |
Yeah obviously
Oh I’m not a fan of that AT ALL :) I have two suggestions, both of them having the same pros and cons:
Pros: doesn’t pollute the namespace, processes properties in definition order
But… is it that bad? For the For the templating engine, this would open plenty of possibilities, such as renaming (single) network cards To be honest, I kinda like both solutions, and they are not incompatible. The second one is pretty hard though (e.g. which template parameters do we allow, and for which keys?).
That’s what |
raw.qemu*
configuration keys override the ones defined in previous profiles. Sometimes, I’d like to write a profile that defines several keys inraw.qemu.conf
, adds some things inraw.qemu
and does additional processing inraw.qemu.qmp.scriptlet
.And sometimes I’d also like to further modify these QEMU options in my VM settings, without having to repeat everything the profile says.
Could we imagine a mechanism allowing, rather than replacing existing data, appending to them for the
raw.qemu
,raw.qemu.conf
andraw.qemu.qmp.{early,{post,pre}-start}
keys? (Forraw.qemu.qmp.scriptlet
, it gets trickier and I’m not sure what to propose…)The text was updated successfully, but these errors were encountered: