mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #24504 from rallytime/move_vsphere_deprecation_2015.5
Move vsphere deprecation to 2015.5
This commit is contained in:
commit
d236fbd38f
3 changed files with 137 additions and 1 deletions
|
@ -173,6 +173,7 @@ Cloud Provider Specifics
|
|||
Getting Started With Rackspace <rackspace>
|
||||
Getting Started With SoftLayer <softlayer>
|
||||
Getting Started With Vexxhost <vexxhost>
|
||||
Getting Started With vSphere <vsphere>
|
||||
|
||||
|
||||
|
||||
|
|
121
doc/topics/cloud/vsphere.rst
Normal file
121
doc/topics/cloud/vsphere.rst
Normal file
|
@ -0,0 +1,121 @@
|
|||
============================
|
||||
Getting Started With vSphere
|
||||
============================
|
||||
|
||||
.. note::
|
||||
|
||||
.. deprecated:: Carbon
|
||||
|
||||
The :py:func:`vsphere <salt.cloud.clouds.vsphere>` cloud driver has been
|
||||
deprecated in favor of the :py:func:`vmware <salt.cloud.clouds.vmware>`
|
||||
cloud driver and will be removed in Salt Carbon. Please refer to
|
||||
:doc:`Getting started with VMware </topics/cloud/vmware>` instead to get
|
||||
started with the configuration.
|
||||
|
||||
VMware vSphere is a management platform for virtual infrastructure and cloud
|
||||
computing.
|
||||
|
||||
|
||||
Dependencies
|
||||
============
|
||||
The vSphere module for Salt Cloud requires the PySphere package, which is
|
||||
available at PyPI:
|
||||
|
||||
https://pypi.python.org/pypi/pysphere
|
||||
|
||||
This package can be installed using `pip` or `easy_install`:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# pip install pysphere
|
||||
# easy_install pysphere
|
||||
|
||||
|
||||
Configuration
|
||||
=============
|
||||
Set up the cloud config at ``/etc/salt/cloud.providers`` or in the
|
||||
``/etc/salt/cloud.providers.d/`` directory:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
my-vsphere-config:
|
||||
provider: vsphere
|
||||
# Set the vSphere access credentials
|
||||
user: marco
|
||||
password: polo
|
||||
# Set the URL of your vSphere server
|
||||
url: 'vsphere.example.com'
|
||||
|
||||
|
||||
Profiles
|
||||
========
|
||||
|
||||
Cloud Profiles
|
||||
~~~~~~~~~~~~~~
|
||||
vSphere uses a Managed Object Reference to identify objects located in vCenter.
|
||||
The MOR ID's are used when configuring a vSphere cloud profile. Use the
|
||||
following reference when locating the MOR's for the cloud profile.
|
||||
|
||||
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=1017126&sliceId=1&docTypeID=DT_KB_1_1&dialogID=520386078&stateId=1%200%20520388386
|
||||
|
||||
Set up an initial profile at ``/etc/salt/cloud.profiles`` or in the
|
||||
``/etc/salt/cloud.profiles.d`` directory:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
vsphere-centos:
|
||||
provider: my-vsphere-config
|
||||
image: centos
|
||||
# Optional
|
||||
datastore: datastore-15
|
||||
resourcepool: resgroup-8
|
||||
folder: salt-cloud
|
||||
host: host-9
|
||||
template: False
|
||||
|
||||
|
||||
provider
|
||||
--------
|
||||
Enter the name that was specified when the cloud provider profile was created.
|
||||
|
||||
image
|
||||
-----
|
||||
Images available to build an instance can be found using the `--list-images`
|
||||
option:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# salt-cloud --list-images my-vsphere-config
|
||||
|
||||
datastore
|
||||
---------
|
||||
The MOR of the datastore where the virtual machine should be located. If not
|
||||
specified, the current datastore is used.
|
||||
|
||||
resourcepool
|
||||
------------
|
||||
The MOR of the resourcepool to be used for the new vm. If not set, it will use
|
||||
the same resourcepool as the original vm.
|
||||
|
||||
folder
|
||||
------
|
||||
Name of the folder that will contain the new VM. If not set, the VM will be
|
||||
added to the folder the original VM belongs to.
|
||||
|
||||
host
|
||||
----
|
||||
The MOR of the host where the vm should be registered.
|
||||
|
||||
If not specified:
|
||||
* if resourcepool is not specified, the current host is used.
|
||||
* if resourcepool is specified, and the target pool represents a
|
||||
stand-alone host, the host is used.
|
||||
* if resourcepool is specified, and the target pool represents a
|
||||
DRS-enabled cluster, a host selected by DRS is used.
|
||||
* if resourcepool is specified, and the target pool represents a
|
||||
cluster without DRS enabled, an InvalidArgument exception will be thrown.
|
||||
|
||||
template
|
||||
--------
|
||||
Specifies whether or not the new virtual machine should be marked as a
|
||||
template. Default is False.
|
|
@ -3,7 +3,15 @@
|
|||
vSphere Cloud Module
|
||||
====================
|
||||
|
||||
.. versionadded:: 2014.7.0
|
||||
.. note::
|
||||
|
||||
.. deprecated:: Carbon
|
||||
|
||||
The :py:func:`vsphere <salt.cloud.clouds.vsphere>` cloud driver has been
|
||||
deprecated in favor of the :py:func:`vmware <salt.cloud.clouds.vmware>`
|
||||
cloud driver and will be removed in Salt Carbon. Please refer to
|
||||
:doc:`Getting started with VMware </topics/cloud/vmware>` to get started
|
||||
and convert your vsphere provider configurations to use the vmware driver.
|
||||
|
||||
The vSphere cloud module is used to control access to VMWare vSphere.
|
||||
|
||||
|
@ -76,6 +84,7 @@ import time
|
|||
import salt.utils.cloud
|
||||
import salt.utils.xmlutil
|
||||
from salt.exceptions import SaltCloudSystemExit
|
||||
from salt.utils import warn_until
|
||||
|
||||
# Import salt cloud libs
|
||||
import salt.config as config
|
||||
|
@ -110,6 +119,11 @@ def get_configured_provider():
|
|||
'''
|
||||
Return the first configured instance.
|
||||
'''
|
||||
warn_until(
|
||||
'Carbon',
|
||||
'The vsphere driver is deprecated in favor of the vmware driver and will be removed '
|
||||
'in Salt Carbon. Please convert your vsphere provider configs to use the vmware driver.'
|
||||
)
|
||||
return config.is_provider_configured(
|
||||
__opts__,
|
||||
__active_provider_name__ or 'vsphere',
|
||||
|
|
Loading…
Add table
Reference in a new issue