HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/pillar/__pycache__/cobbler.cpython-310.pyc
o

�N�g��@s8dZddlZddlZdddd�Ze�e�Zddd�ZdS)	a�
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
====================
�Nzhttp://localhost/cobbler_api)�cobbler.url�cobbler.user�cobbler.password�cs�td}td}td}t�d||�ztjj|dd�}|r$|�||�|�d|��Wnty;t�	d�iYSw|rG�fd	d
�|D��|rM|�i��S)z4
    Read pillar data from Cobbler via its API.
    rrrz-Querying cobbler at %r for information for %rT)Z
allow_noneNzCould not connect to cobbler.csi|]}|�vr|�|�qSrr)�.0�k��resultr�G/opt/saltstack/salt/lib/python3.10/site-packages/salt/pillar/cobbler.py�
<dictcomp><szext_pillar.<locals>.<dictcomp>)
�__opts__�log�info�xmlrpc�clientZServerZloginZget_blended_data�	Exception�	exception)Z	minion_idZpillar�keyZonly�url�user�passwordZserverrrr
�
ext_pillar)s$
�r)Nr)	�__doc__�loggingZ
xmlrpc.clientrr�	getLogger�__name__r
rrrrr
�<module>s�