%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/proxy/ |
Current File : //lib/python2.7/site-packages/salt/proxy/cimc.pyc |
� ���^c @@ s d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l m Z d g Z i d d 6Z i Z e j e � Z d Z d � Z d � Z d d e d � Z d e d � Z d � Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d S( u� Proxy Minion interface module for managing Cisco Integrated Management Controller devices ========================================================================================= .. versionadded:: 2018.3.0 :codeauthor: ``Spencer Ervin <spencer_ervin@hotmail.com>`` :maturity: new :depends: none :platform: unix This proxy minion enables Cisco Integrated Management Controller devices (hereafter referred to as simply 'cimc' devices to be treated individually like a Salt Minion. The cimc proxy leverages the XML API functionality on the Cisco Integrated Management Controller. The Salt proxy must have access to the cimc on HTTPS (tcp/443). More in-depth conceptual reading on Proxy Minions can be found in the :ref:`Proxy Minion <proxy-minion>` section of Salt's documentation. Configuration ============= To use this integration proxy module, please configure the following: Pillar ------ Proxy minions get their configuration from Salt's Pillar. Every proxy must have a stanza in Pillar and a reference in the Pillar top-file that matches the ID. .. code-block:: yaml proxy: proxytype: cimc host: <ip or dns name of cimc host> username: <cimc username> password: <cimc password> proxytype ^^^^^^^^^ The ``proxytype`` key and value pair is critical, as it tells Salt which interface to load from the ``proxy`` directory in Salt's install hierarchy, or from ``/srv/salt/_proxy`` on the Salt Master (if you have created your own proxy module, for example). To use this cimc Proxy Module, set this to ``cimc``. host ^^^^ The location, or ip/dns, of the cimc host. Required. username ^^^^^^^^ The username used to login to the cimc host. Required. password ^^^^^^^^ The password used to login to the cimc host. Required. i ( t absolute_importt print_functiont unicode_literalsN( t ElementTreeu cimcu Ciscou vendorc C@ s t S( u7 Only return if all the modules are available. ( t __virtualname__( ( ( s3 /usr/lib/python2.7/site-packages/salt/proxy/cimc.pyt __virtual__] s c C@ s d | d k r! t j d � t Sd | d k rB t j d � t Sd | d k rc t j d � t Sd j | d d � t d <i d d 6d d 6d d 6t d <| d d t d <| d j d � t d <| d j d � t d <t j d � t d � t j d � t t d <d S( u= This function gets called when the proxy starts up. u hostu proxyu- No 'host' key found in pillar for this proxy.u usernameu1 No 'username' key found in pillar for this proxy.u passwordu2 No 'passwords' key found in pillar for this proxy.u https://{0}/nuovau urlu! application/x-www-form-urlencodedu Content-Typei>