vcf_vim_vm_customization

Execution module for guest OS customization (SOAP).

saltext.vcf.modules.vcf_vim_vm_customization.linux_spec(hostname, domain, time_zone='UTC', hw_clock_utc=True, nics=None, dns_servers=None, dns_search_path=None)[source]

Build a Linux customization spec (returns the pyVmomi object).

CLI Example:

salt '*' vcf_vim_vm_customization.linux_spec web-01 example.com nics='[{"dhcp": true}]'
saltext.vcf.modules.vcf_vim_vm_customization.windows_spec(hostname, workgroup_or_domain, domain_join=False, domain_admin=None, domain_admin_password=None, admin_password=None, auto_logon=False, auto_logon_count=1, license_mode='perServer', product_id=None, full_name='Administrator', org_name='VMware', time_zone=85, nics=None, dns_servers=None, dns_search_path=None)[source]

Build a Windows customization spec.

CLI Example:

salt '*' vcf_vim_vm_customization.windows_spec WIN-01 WORKGROUP admin_password='<pw>'
saltext.vcf.modules.vcf_vim_vm_customization.apply(vm, spec, profile=None)[source]

Apply a customization spec to an existing VM.

CLI Example:

salt '*' vcf_vim_vm_customization.apply vm-100 <spec>
saltext.vcf.modules.vcf_vim_vm_customization.spec_list(profile=None)[source]

List saved customization specs on the vCenter.

CLI Example:

salt '*' vcf_vim_vm_customization.spec_list
saltext.vcf.modules.vcf_vim_vm_customization.spec_delete(name, profile=None)[source]

Delete a saved customization spec by name.

CLI Example:

salt '*' vcf_vim_vm_customization.spec_delete linux-prod