Note
Deprecated since version Carbon.
The vSphere cloud module is used to control access to VMWare vSphere.
depends: |
|
---|
Note: Ensure python pysphere module is installed by running following one-liner check. The output should be 0.
python -c "import pysphere" ; echo $?
# if this fails install using
pip install https://pysphere.googlecode.com/files/pysphere-0.1.8.zip
Use of this module only requires a URL, username and password. Set up the cloud configuration at:
/etc/salt/cloud.providers or /etc/salt/cloud.providers.d/vsphere.conf:
my-vsphere-config:
provider: vsphere
user: myuser
password: verybadpass
template_user: root
template_password: mybadVMpassword
url: 'https://10.1.1.1:443'
Note: Your URL may or may not look like any of the following, depending on how your VMWare installation is configured:
10.1.1.1
10.1.1.1:443
https://10.1.1.1:443
https://10.1.1.1:443/sdk
10.1.1.1:443/sdk
MOR of the host where the virtual machine should be registered.
The user to access the VM with sudo privileges.
New in version 2015.5.2.
The password corresponding to the sudo user to access the VM with sudo privileges.
New in version 2015.5.2.
Return a dict of all available VM images on the cloud provider.
Return a dict of all available VM locations on the cloud provider with relevant data
Create a single VM from a data dict
Destroy a node.
CLI Example:
salt-cloud --destroy mymachine
Return the first configured instance.
Return a conn object for the passed VM data
List the clusters for this VMware environment
List the data centers for this VMware environment
List the datastores for this VMware environment
List the folders for this VMWare environment
List the hosts for this VMware environment
Return a list of the VMs that are on the provider, with basic fields
Return a list of the VMs that are on the provider with full details
Return a list of the nodes in the provider, with no details
Return a list of the VMs that are on the provider, with select fields
List the hosts for this VMware environment
Return the script deployment object
Show the details from vSphere concerning a guest
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2015.5.2
salt.cloud.clouds.softlayer_hw