salt.states.esxdatacenter

Salt states to create and manage VMware vSphere datacenters (datacenters).

codeauthor

Alexandru Bleotu <[email protected]>

Dependencies

  • pyVmomi Python Module

States

datacenter_configured

Makes sure a datacenter exists and is correctly configured.

If the state is run by an esxdatacenter minion, the name of the datacenter is retrieved from the proxy details, otherwise the datacenter has the same name as the state.

Supported proxies: esxdatacenter

Example:

1. Make sure that a datacenter named target_dc exists on the vCenter, using a esxdatacenter proxy:

Proxy minion configuration (connects passthrough to the vCenter):

proxy:
  proxytype: esxdatacenter
  datacenter: target_dc
  vcenter: vcenter.fake.com
  mechanism: sspi
  domain: fake.com
  principal: host

State configuration:

datacenter_state:
  esxdatacenter.datacenter_configured

salt.states.esxdatacenter.datacenter_configured(name)

Makes sure a datacenter exists.

If the state is run by an esxdatacenter minion, the name of the datacenter is retrieved from the proxy details, otherwise the datacenter has the same name as the state.

Supported proxies: esxdatacenter

name:

Datacenter name. Ignored if the proxytype is esxdatacenter.

© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/states/all/salt.states.esxdatacenter.html