%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/pillar/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/pillar/cobbler.pyo

�
���^c@@swdZddlmZmZmZddlZddlZidd6dd6dd6Z	ej
e�Zdd	d�Z
dS(
u�
A module to pull data from Cobbler via its API into the Pillar dictionary


Configuring the Cobbler ext_pillar
==================================

The same cobbler.* parameters are used for both the Cobbler tops and Cobbler pillar
modules.

.. code-block:: yaml

  ext_pillar:
  - cobbler:
      key: cobbler # Nest results within this key. By default, values are not nested.
      only: [parameters] # Add only these keys to pillar.

  cobbler.url: https://example.com/cobbler_api #default is http://localhost/cobbler_api
  cobbler.user: username # default is no username
  cobbler.password: password # default is no password


Module Documentation
====================
i(tabsolute_importtprint_functiontunicode_literalsNuhttp://localhost/cobbler_apiucobbler.urlucobbler.userucobbler.passwordc@s�td}td}td}tjd||�yPtjjjjj|dt	�}|rn|j
||�n|jd|��Wnt
k
r�tjd�iSX|r�t�fd�|D���n|r�i�|6�n�S(	u4
    Read pillar data from Cobbler via its API.
    ucobbler.urlucobbler.userucobbler.passwordu-Querying cobbler at %r for information for %rt
allow_noneuCould not connect to cobbler.c3@s+|]!}|�kr|�|fVqdS(N((t.0tk(tresult(s7/usr/lib/python2.7/site-packages/salt/pillar/cobbler.pys	<genexpr>DsN(t__opts__tlogtinfotsalttexttsixtmovest
xmlrpc_clienttServertTruetlogintget_blended_datatNonet	Exceptiont	exceptiontdict(t	minion_idtpillartkeytonlyturltusertpasswordtserver((Rs7/usr/lib/python2.7/site-packages/salt/pillar/cobbler.pyt
ext_pillar,s$


!
((t__doc__t
__future__RRRtloggingt salt.ext.six.moves.xmlrpc_clientR
RRt	getLoggert__name__RR(((s7/usr/lib/python2.7/site-packages/salt/pillar/cobbler.pyt<module>s



Zerion Mini Shell 1.0