vcf_esxi_ad_auth¶
Idempotent state module for ESXi native Active Directory join.
Fulfils 912-controls ESXi.enable-ad-auth_adv: join an ESXi host to an
AD domain directly (no auth proxy). The CAM/auth-proxy variant lives in
vcf_esxi_auth_proxy.
- saltext.vcf.states.vcf_esxi_ad_auth.joined(name, domain, username, password, host=None, profile=None)[source]¶
Ensure host is AD-joined to domain using native credentials.
No-op if the host is already joined to the same domain (case-insensitive compare). If the host is joined to a different domain, refuses to switch — call
left()first to move between domains intentionally.name is the target host (used verbatim as the pyVmomi HostSystem name or moId) unless host is passed explicitly.