%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/pillar/ |
Current File : //usr/lib/python2.7/site-packages/salt/pillar/cobbler.pyo |
� ���^c @@ sw d Z d d l m Z m Z m Z d d l Z d d l Z i d d 6d d 6d d 6Z e j e � Z d d d � Z d S( 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 ( t absolute_importt print_functiont unicode_literalsNu http://localhost/cobbler_apiu cobbler.urlu cobbler.useru cobbler.passwordc @ s� t d } t d } t d } t j d | | � yP t j j j j j | d t �} | rn | j | | � n | j d | � � Wn t k r� t j d � i SX| r� t � f d � | D� � � n | r� i � | 6� n � S( u4 Read pillar data from Cobbler via its API. u cobbler.urlu cobbler.useru cobbler.passwordu- Querying cobbler at %r for information for %rt allow_noneu Could not connect to cobbler.c 3@ s+ | ]! } | � k r | � | f Vq d S( N( ( t .0t k( t result( s7 /usr/lib/python2.7/site-packages/salt/pillar/cobbler.pys <genexpr>D s N( t __opts__t logt infot saltt extt sixt movest xmlrpc_clientt Servert Truet logint get_blended_datat Nonet Exceptiont exceptiont dict( t minion_idt pillart keyt onlyt urlt usert passwordt server( ( R s7 /usr/lib/python2.7/site-packages/salt/pillar/cobbler.pyt ext_pillar, s$ ! ( ( t __doc__t __future__R R R t loggingt salt.ext.six.moves.xmlrpc_clientR R R t getLoggert __name__R R ( ( ( s7 /usr/lib/python2.7/site-packages/salt/pillar/cobbler.pyt <module> s