-
Notifications
You must be signed in to change notification settings - Fork 453
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
Is there a way to bring in new vSphere_Host resources? #570
Comments
Hi @ScriptXaaS! There is not a For now, you would need to add the ESXi hosts using another method, and once they are in vCenter, you can then use the I'll leave this issue open to keep track of the request for the |
Hi @bill-rich, |
+1 for this feature. Would rock to be able to configure host into vCenter directly. I could live without vmknic configuration, primarily interested in pulling host into vCenter in a specific folder or cluster and adding/changing vSwitch and port group settings before deploying VMs. |
We have added this into a fork that we are using. We're currently deciding on the correct path forward. There's three things that we really struggle with:
-This provider isn't single responsibility. The 'creation of a VM' and the 'configuration of the hosts and clusters' are two different things. I too want to manipulate hosts but I'm wondering it that should be a separate provider / or if this provider should be split.
|
Thats great you have been working on this feature @kiwiscott! To your testing issue, you can specify which acceptance tests you would like to run by including
The On the issue of splitting the provider, it is a good point. The vsphere provider does have to tackle a wider breadth of issues since the expectation is to treat vSphere like a cloud, but it really is not. I see how a split could result in providers with a more specific focus, however I feel that the crossover between the two would result in a lot of duplicated work and drift. For the final point, I haven't looked too closely at how the 1.11 module support could be utilized for improving the imports and the effects it would have on the current code. I'd like to take a more in depth look at this and get some feedback on it, but I think it would be best to create a new issue so it can be tracked independently of this one. If you have code for the |
How's it looking getting this implemented? Can see it as having been scheduled for 1.10 but with 1.11 released an no mention I assume it was skipped. I would love to see the option to completely configure clusters with terraform instead of relying on Host Profiles. |
@jones-g Sorry about the confusion on that. Originally the plan was to put host resources into 1.10 or v1.11, but we had to shift focus toward some other issues and Terraform 0.12 support. It is still high on the backlog, but not ready to release yet. |
@bill-rich @kiwiscott That's cool guys. Was just wondering what the status was. From the updates on 0.12 I could understand some major changes were made. I'll keep an eye out for an update :) Thanks for working on this guys! |
Hey All! Host resources were implemented in #836, and has been released in v1.13.0 of the provider. If you have any questions or feature requests regarding the new host resource, please feel free to open a new issue. |
I would like to add all esxi hosts to vCenter to create a cluster. however, I don't see a way to bring in new esxi hosts as vSphere_Host resources? If the feature is not yet available, I will bring these in via a powercli script. I am building a new vSphere Infrastructure from scratch and would like automate the build as much with terraform to the lowest level including vmknic creations if possbile. Thanks.
The text was updated successfully, but these errors were encountered: