-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Exported attributes for vcd_vapp resource (vDirector) #4935
Comments
Hi @felnne, I've just raised #5159 which may also provide you with a solution. If you provide a static ip when defining your vapp, you can reference it as vcd_vapp.example-dev-node1.ip but when left to DHCP, the ip address allocated to the vm is not known to vcloud director until the open-vm-tools daemon run on the booted vm, after which a terraform refresh does retrieve the respective ip address for you (although too late to be used within the same terraform apply session). |
Hi @robcoward, thanks for that, from that example it looks to solve my issue completely! Think I will leave this open until I have a chance to test when this is available. |
Hi, sorry for the delay - yes that now works. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi,
I'm not sure if this has already been discussed and i'm just not seeing something obvious, but is it possible to get any details (i.e. outputs) for vApp resources in vDirector?
My use-case would be to determine the IPv4 address of the first NIC of the first VM within a vApp, such that I can then create a DNS record (as you would with say an EC2 EIP in AWS).
In my case i'd be using Route53 for creating the DNS record but I don't imagine that matters. I am relatively new to vDirector, so i'm not sure if I am missing a more typical way this would be done that means I don't need to know the IP address of each VM.
If it were possible to expose the same outputs as a vSphere VM, which I don't use but look ideal from the documentation, that would be great. Looking at the govcloudair documentation, which I understand is fairly similar to the vdirector library used for this provider, it looks like there is a resource that would be able to return this information.
However since a vApp could contain multiple VMs, each containing network interfaces i'm not sure if this is something that would be considered too complex or unknowable.
This example gives a more specific example of how I would intend to use a feature like this if it existed:
The syntax for referencing the IP address of the first network connection within the first VM of a vApp, is purely illustrative.
I'm not sure if this the right place to ask for feature requests - so if there's somewhere else I should redirect this question to please let me know. I had a look for older vDirector issues on here and on the Google Group but couldn't see anything relevant.
Thanks,
Felix.
The text was updated successfully, but these errors were encountered: