vcenter

vcenter resource type — exposes one or more vCenter instances as Salt Resources.

Each vcenter resource maps to one vCenter Server, identified by an instance ID under resources.vcenter.instances in the configured pillar subtree:

resources:
  vcenter:
    instances:
      mgmt-vc:
        host: mgmt-vc.vcf.nimbus.internal
        username: administrator@vsphere.local
        password: VMware123!VMware123!
        verify_ssl: false

The current resource is conveyed by the loader via __resource__["id"]; per-resource functions never accept a resource id as a parameter. All REST work is delegated to saltext.vcf.clients so that the standalone execution modules and the Resources framework share one implementation.

saltext.vcf.resources.vcenter.init(opts)[source]

Load instance configs from pillar and cache them in __context__.

saltext.vcf.resources.vcenter.discover(opts)[source]

Return the list of vCenter instance IDs this minion manages.

saltext.vcf.resources.vcenter.grains()[source]

Return basic identity grains for the current vCenter instance.

saltext.vcf.resources.vcenter.ping()[source]

Probe /api/session to confirm the current vCenter is reachable.