%PDF- %PDF-
| Direktori : /proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/modules/ |
| Current File : //proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/modules/esxi.pyc |
�
���^c @@ sw d Z d d l m Z m Z m Z d d l Z d d l Z e j e � Z
d g Z d Z d � Z
d � Z d � Z d S( u
Glues the VMware vSphere Execution Module to the VMware ESXi Proxy Minions to the
:mod:`esxi proxymodule <salt.proxy.esxi>`.
.. versionadded:: 2015.8.4
Depends: :mod:`vSphere Remote Execution Module (salt.modules.vsphere)
<salt.modules.vsphere>`
For documentation on commands that you can direct to an ESXi host via proxy,
look in the documentation for :mod:`salt.modules.vsphere <salt.modules.vsphere>`.
This execution module calls through to a function in the ESXi proxy module
called ``ch_config``, which looks up the function passed in the ``command``
parameter in :mod:`salt.modules.vsphere <salt.modules.vsphere>` and calls it.
To execute commands with an ESXi Proxy Minion using the vSphere Execution Module,
use the ``esxi.cmd <vsphere-function-name>`` syntax. Both args and kwargs needed
for various vsphere execution module functions must be passed through in a kwarg-
type manor.
.. code-block:: bash
salt 'esxi-proxy' esxi.cmd system_info
salt 'exsi-proxy' esxi.cmd get_service_policy service_name='ssh'
i ( t absolute_importt print_functiont unicode_literalsNu esxic C@ s t j j j � r t St d f S( u
Only work on proxy
uJ The esxi execution module failed to load: only available on proxy minions.( t saltt utilst platformt is_proxyt __virtualname__t False( ( ( s5 /usr/lib/python2.7/site-packages/salt/modules/esxi.pyt __virtual__, s c O@ s, t d d } | d } t | | | | � S( Nu proxyu proxytypeu
.ch_config( t __opts__t __proxy__( t commandt argst kwargst proxy_prefixt proxy_cmd( ( s5 /usr/lib/python2.7/site-packages/salt/modules/esxi.pyt cmd6 s
c C@ s t d � S( Nu esxi.get_details( R ( ( ( s5 /usr/lib/python2.7/site-packages/salt/modules/esxi.pyt get_details= s ( t __doc__t
__future__R R R t loggingt salt.utils.platformR t getLoggert __name__t logt __proxyenabled__R R R R ( ( ( s5 /usr/lib/python2.7/site-packages/salt/modules/esxi.pyt <module> s