%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/esxdatacenter.pyo |
� ���^c @@ s~ d Z d d l m Z m Z m Z d d l Z d d l m Z d d l Z e j e � Z i Z d � Z d � Z d � Z d S( u� Salt states to create and manage VMware vSphere datacenters (datacenters). :codeauthor: :email:`Alexandru Bleotu <alexandru.bleotu@morganstaley.com>` 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): .. code-block:: yaml proxy: proxytype: esxdatacenter datacenter: target_dc vcenter: vcenter.fake.com mechanism: sspi domain: fake.com principal: host State configuration: .. code-block:: yaml datacenter_state: esxdatacenter.datacenter_configured i ( t absolute_importt print_functiont unicode_literalsN( t sixc C@ s d S( Nu esxdatacenter( ( ( ( s= /usr/lib/python2.7/site-packages/salt/states/esxdatacenter.pyt __virtual__@ s c C@ s t S( N( t True( t low( ( s= /usr/lib/python2.7/site-packages/salt/states/esxdatacenter.pyt mod_initD s c C@ s/ t d � } | d k r- t d � d } n | } t j d j | � � i | d 6i d 6d d 6d d 6} g } d } y6t d � } t d d | g d | � } | s<t d r� | j d j | � � n= t j d j | � � t d | | � | j d j | � � t j | d � | d j i i | d 6d 6� n'