vcf_vim_host_config

Execution module for vCenter-managed ESXi host config (SOAP).

saltext.vcf.modules.vcf_vim_host_config.ntp_get(host, profile=None)[source]

Return NTP servers + ntpd service state for host.

CLI Example:

salt '*' vcf_vim_host_config.ntp_get esxi-01.example.com
saltext.vcf.modules.vcf_vim_host_config.ntp_set_servers(host, servers, profile=None)[source]

Replace the NTP server list.

CLI Example:

salt '*' vcf_vim_host_config.ntp_set_servers esxi-01.example.com '["time.example.com"]'
saltext.vcf.modules.vcf_vim_host_config.ntp_set_running(host, running, profile=None)[source]

Start or stop the ntpd service.

CLI Example:

salt '*' vcf_vim_host_config.ntp_set_running esxi-01.example.com true
saltext.vcf.modules.vcf_vim_host_config.ntp_set_policy(host, policy, profile=None)[source]

Set the ntpd start policy (on | off | automatic).

CLI Example:

salt '*' vcf_vim_host_config.ntp_set_policy esxi-01.example.com on
saltext.vcf.modules.vcf_vim_host_config.service_list(host, profile=None)[source]

List all services on the host.

CLI Example:

salt '*' vcf_vim_host_config.service_list esxi-01.example.com
saltext.vcf.modules.vcf_vim_host_config.service_start(host, service_id, profile=None)[source]

Start a service.

CLI Example:

salt '*' vcf_vim_host_config.service_start esxi-01.example.com TSM-SSH
saltext.vcf.modules.vcf_vim_host_config.service_stop(host, service_id, profile=None)[source]

Stop a service.

CLI Example:

salt '*' vcf_vim_host_config.service_stop esxi-01.example.com TSM-SSH
saltext.vcf.modules.vcf_vim_host_config.service_restart(host, service_id, profile=None)[source]

Restart a service.

CLI Example:

salt '*' vcf_vim_host_config.service_restart esxi-01.example.com ntpd
saltext.vcf.modules.vcf_vim_host_config.service_set_policy(host, service_id, policy, profile=None)[source]

Set the start policy on a service.

CLI Example:

salt '*' vcf_vim_host_config.service_set_policy esxi-01.example.com TSM-SSH off
saltext.vcf.modules.vcf_vim_host_config.ad_status(host, profile=None)[source]

Return AD join state for host.

CLI Example:

salt '*' vcf_vim_host_config.ad_status esxi-01.example.com
saltext.vcf.modules.vcf_vim_host_config.ad_join(host, domain, username, password, ou_path=None, profile=None)[source]

Join the host to an AD domain.

CLI Example:

salt '*' vcf_vim_host_config.ad_join esxi-01 example.com administrator '<pass>'
saltext.vcf.modules.vcf_vim_host_config.ad_leave(host, force=False, profile=None)[source]

Leave the AD domain.

CLI Example:

salt '*' vcf_vim_host_config.ad_leave esxi-01 force=true
saltext.vcf.modules.vcf_vim_host_config.advanced_get(host, key=None, profile=None)[source]

Return advanced settings (single value or full dict).

CLI Example:

salt '*' vcf_vim_host_config.advanced_get esxi-01 UserVars.SuppressShellWarning
saltext.vcf.modules.vcf_vim_host_config.advanced_set(host, key, value, profile=None)[source]

Set a single advanced setting.

CLI Example:

salt '*' vcf_vim_host_config.advanced_set esxi-01 UserVars.SuppressShellWarning 1