%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/collector/clusters/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/collector/clusters/__pycache__/satellite.cpython-312.pyc

�

i��db��2�ddlmZddlmZGd�de�Zy)���quote)�Clusterc�*�eZdZdZdZdZd�Zd�Zd�Zy)�	satellitea3
    This profile is specifically for Red Hat Satellite 6, and not earlier
    releases of Satellite.

    While note technically a 'cluster' in the traditional sense, Satellite
    does provide for 'capsule' nodes which is what this profile aims to
    enumerate beyond the 'primary' Satellite system.
    zRed Hat Satellite 6)rzsatellite-installerc�>�d}d}|t|t|�z�zS)Nzsu postgres -c %szpsql foreman -c %sr)�self�query�_cmd�_dbcmds    �B/usr/lib/python3/dist-packages/sos/collector/clusters/satellite.py�	_psql_cmdzsatellite._psql_cmds%��"��%���e�F�U�5�\�1�2�2�2�c���|jd�}|j|d��}|ddk(r4|dj�D�cgc]}d|vr|j���}}|SgScc}w)Nz/copy (select name from smart_proxies) to stdoutT)�	need_root�statusr�outputzcould not change directory)r�exec_primary_cmd�
splitlines�strip)r	�cmd�res�n�nodess     r
�	get_nodeszsatellite.get_nodes!s{���n�n�N�O���#�#�C�4�#�8���x�=�A��#&�x�=�#;�#;�#=���/�q�8����	��E���L��	��s�A#c�L�|j|jjk(ryy)Nr�capsule)�address�primary)r	�nodes  r
�set_node_labelzsatellite.set_node_label,s���<�<�4�<�<�/�/�/��rN)	�__name__�
__module__�__qualname__�__doc__�cluster_name�packagesrrr!�rr
rrs"���)�L�3�H�3�
	�rrN)�pipesr�sos.collector.clustersrrr(rr
�<module>r+s���*� �� r

Zerion Mini Shell 1.0