vim_vm_customization

Guest OS customization specs + apply.

Two surfaces:

The customization manager can also store named specs server-side; that surface is exposed via spec_get(), spec_create(), spec_delete().

saltext.vcf.clients.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.

nics is a list of network adapter dicts:

[{"dhcp": True}, {"ip": "10.0.0.5", "subnet": "255.255.255.0", "gateway": ["10.0.0.1"]}]
saltext.vcf.clients.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.

time_zone is the Microsoft TimeZoneIndex (85 = Pacific).

saltext.vcf.clients.vim_vm_customization.apply(opts, vm_id_or_name, spec, profile=None)[source]

Apply spec (built via linux_spec() / windows_spec()) to a VM.

saltext.vcf.clients.vim_vm_customization.spec_list(opts, profile=None)[source]

Return the names of every saved customization spec on the vCenter.

saltext.vcf.clients.vim_vm_customization.spec_get(opts, name, profile=None)[source]

Return a saved spec by name (as a vim.vm.customization.Specification).

saltext.vcf.clients.vim_vm_customization.spec_create(opts, name, description, spec, profile=None)[source]

Save spec under name on the vCenter.