vim_host_config

Per-ESXi host config via SOAP (NTP, services, Active Directory, advanced settings).

Counterpart to the standalone-ESXi-only esxi_* clients: these target hosts managed by vCenter, where the direct /api/ surface is locked. All operations route through pyVmomi managers on the HostSystem object.

saltext.vcf.clients.vim_host_config.ntp_get(opts, host, profile=None)[source]

Return {"servers": [...], "enabled": bool, "policy": "on"|"off"|"automatic"}.

saltext.vcf.clients.vim_host_config.ntp_set_servers(opts, host, servers, profile=None)[source]

Replace the NTP server list.

saltext.vcf.clients.vim_host_config.ntp_set_running(opts, host, running, profile=None)[source]

Start or stop the ntpd service.

saltext.vcf.clients.vim_host_config.ntp_set_policy(opts, host, policy, profile=None)[source]

Set the service start policy. policy one of on | off | automatic.

saltext.vcf.clients.vim_host_config.service_list(opts, host, profile=None)[source]

Return a list of {key, label, running, policy, required} per service.

saltext.vcf.clients.vim_host_config.ad_status(opts, host, profile=None)[source]

Return AD join state {"joined": bool, "domain": str|None, "trust_status": ...}.

saltext.vcf.clients.vim_host_config.ad_join(opts, host, domain, username, password, ou_path=None, profile=None)[source]

Join the host to domain using the supplied creds. Returns task moId.

ou_path is accepted for API symmetry but vCenter ignores it on the standard JoinDomain_Task call; use JoinDomainWithCAM_Task (not exposed here) for CAM-server-driven OU placement.

saltext.vcf.clients.vim_host_config.ad_leave(opts, host, force=False, profile=None)[source]

Leave the AD domain. Returns task moId.

saltext.vcf.clients.vim_host_config.advanced_get(opts, host, key=None, profile=None)[source]

Return advanced settings.

When key is provided, returns the single value (raises LookupError if not found). Otherwise returns a {key: value} dict.

saltext.vcf.clients.vim_host_config.advanced_set(opts, host, key, value, profile=None)[source]

Set a single advanced setting.