Add support to manage ntpd setting on ESXi hosts #1131
Labels
acknowledged
Status: Issue or Pull Request Acknowledged
area/host
Area: Host
enhancement
Type: Enhancement
size/s
Relative Sizing: Small
Milestone
Description
We are trying configure ntp on all of our ESXi hosts. This is currently available in the
govc
cli, see this. We want to have the ability to both enable thentpd
service and later configure it.We had a look at the provider source code and adding this feature doesn't look trivial. I am happy to create a PR for this feature but I am unsure about where to start. Since it involves both exposing the
ServiceSystem
for controlling the different services (in our case,ntpd
) and theDateTimeSystem
for configuring thentpd
service, could we add these under thevsphere_host
resource or in a new resource, eg.vsphere_host_services
andvsphere_host_ntp
?We can see some examples of how
ConfigManager
is used invsphere/resource_vsphere_host.go
but we can't find any uses ofServiceSystem
so some guidance would be much appreciated.For now we are using
govc
and could potentially have it as anull_resource
.Potential Terraform Configuration
or
References
This feature is available in Ansible, but we prefer to use Terraform ❤️:
Community Note
The text was updated successfully, but these errors were encountered: