File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/pillar/__pycache__/cobbler.cpython-310.pyc
Back
o ;j� � @ s8 d Z ddlZddlZdddd�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� c s� t d }t d }t d }t�d|| � ztjj|dd�}|r$|�||� |�d| �� W n ty; t� d� i Y S w |rG� fd d �|D �� |rM|� i� � S )z4 Read pillar data from Cobbler via its API. r r r z-Querying cobbler at %r for information for %rT)Z allow_noneNzCould not connect to cobbler.c s i | ]}|� v r|� | �qS r r )�.0�k��resultr �G/opt/saltstack/salt/lib/python3.10/site-packages/salt/pillar/cobbler.py� <dictcomp><