Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Provider tracks request as opposed to infrastructure in tfstate #14

Closed
grantorchard opened this issue Nov 29, 2017 · 5 comments
Closed

Comments

@grantorchard
Copy link

grantorchard commented Nov 29, 2017

I'm not certain whether this is by design or not, but tracking the request rather than the output of the request (ie the infrastructure components) makes it impossible to interpolate values between resources in a given definition. It also means I can't capture infrastructure properties (such as IP address, hostname) and instead need to login to the vRA portal to get this information.

This behaviour is contrary to every other tf provider that I have used.

@virajindasrao
Copy link
Contributor

Hi @grantorchard ,
This feature is initiated in PR #20 . Getting out IP will be a good option and helpful from user view.

@Marcvd316
Copy link

Hi @virajindasrao,

I think what @grantorchard means is that the tfstate file should reflect the actual state of the machine in vRA, not just the result of the vRA request that was made for its initial creation. For example, if you create a resource in a Terraform configuration that creates a VM that has 2 disks, and later on someone adds 2 more disks to that VM, Terraform will never know about the 3rd and 4th disks. All it knows is that initially the deployment was created with 2.

Running a "terraform refresh" should update the tfstate file and running a terraform plan should warn the user of the differences between the configuration file and the actual state of the VM.

@virajindasrao
Copy link
Contributor

Hi @Marcvd316,
I am planning to start work on the same. I will keep you guys updated on the same.

@virajindasrao
Copy link
Contributor

Pull Request created.

@virajindasrao
Copy link
Contributor

#27 Merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants