-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Add support for Default dropdowns/empty config fields #1587
Comments
Thanks for reporting @joshmcorreia -- I totally understand your concerns! Unfortunately, there are technical limitations in how the current provider handles defaults. In a nutshell, the older Terraform SDK provides no good way to distinguish between ‘no value’ and a default value in configuration files. I’ve started issue #1231 to address the root cause and migrate the provider implementation to the new Plugin Framework, which will be quite a long journey. However, the early prototype shows some promising results :) |
Got it, thank you 👍🏼 |
Is your feature request related to a problem? Please describe.
In the Proxmox web UI there is the ability to set many dropdowns to "Default", but that option doesn't seem to be present in this provider.
This change would make it so our terraform plans are more flexible in the future if any of the Proxmox cluster defaults change.
Here is a specific example:
The bios field currently requires that the user either select
ovmf
orseabios
, but this is not the same thing as the default field in the Proxmox UI.Generated manually from the Proxmox UI by choosing the "Default" BIOS dropdown (notice how there is no
bios
setting set):Generated via the terraform provider:
Here's a list of the config lines that I've found that are added by this provider but they will work with empty defaults:
This list is most likely not exhaustive, but these are the ones that I noticed are different from what I would expect when manually creating a default VM via the Proxmox UI.
Describe the solution you'd like
I think the cleanest implementation would be to only set fields that are necessary and default to not even having an entry in the
.conf
file unless they are explicitly set by the user.Describe alternatives you've considered
Alternatively I think it would be nice if the user could specify "Default" as an option for these fields, but it's not as clean as not adding entries to the
.conf
file.Additional context
Proxmox Virtual Environment 8.2.7
Plugin version v0.66.1
The text was updated successfully, but these errors were encountered: