You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the terraform.tfstate file has: "network_interface.0.ipv4_prefix_length": "21",
But the plan will be confusing to customers. Perhaps a value of "0" could unset the variable so that it looks like it was never set.
(The example is a simplified test of concept. I the real modules, the values of ipv4_address, ipv4_prefix_length, and ipv4_gateway will be set by variables)
Hey @tmlink, we actually have #244 in now which is a complete rewrite of the VM resource. In the new version we move all customization options to a new customize block, which never has values written in from running VM state - it's basically a fire-and-forget block that forces a new resource if it's never changed. So the spurious diff stuff that you are seeing should go away.
For more details and links to the new documentation, check out the PR. I will keep this open until it is merged to track when thing are actually fixed.
Terraform Version
v0.10.7
vSphere Provider Version
0.4.2
Affected Resource(s)
vsphere_virtual_machine
Terraform Configuration Files
Expected Behavior
Actual Behavior
Before an apply:
After an apply:
ie:
Steps to Reproduce
terraform plan
terraform apply
terraform plan
Important Factoids
This is really a nit about presentation.
It works, in that the host is set up as expected:
ifconfig
looks goodterraform.tfstate
file has:"network_interface.0.ipv4_prefix_length": "21",
But the plan will be confusing to customers. Perhaps a value of "0" could unset the variable so that it looks like it was never set.
(The example is a simplified test of concept. I the real modules, the values of ipv4_address, ipv4_prefix_length, and ipv4_gateway will be set by variables)
References
The reply to hashicorp/terraform#5471 says:
The text was updated successfully, but these errors were encountered: