| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/sos/collector/clusters/__pycache__/ |
Upload File : |
U
-�_gb � @ s, d dl mZ d dlmZ G dd� de�ZdS )� ��quote)�Clusterc @ s0 e Zd ZdZdZdZdd� Zdd� Zdd � Zd
S )� 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)r zsatellite-installerc C s d}d}|t |t |� � S )Nzsu postgres -c %szpsql foreman -c %sr )�selfZqueryZ_cmdZ_dbcmd� r �B/usr/lib/python3/dist-packages/sos/collector/clusters/satellite.py� _psql_cmd s zsatellite._psql_cmdc C sB | � d�}| j|dd�}|d dkr>dd� |d �� D �}|S g S ) Nz/copy (select name from smart_proxies) to stdoutT)Z need_rootZstatusr c S s g | ]}d |kr|� � �qS )zcould not change directory)�strip)�.0�nr r r �
<listcomp>% s �z'satellite.get_nodes.<locals>.<listcomp>�output)r Zexec_primary_cmd�
splitlines)r �cmd�resZnodesr r r � get_nodes! s
�zsatellite.get_nodesc C s |j | jj krdS dS )Nr Zcapsule)ZaddressZprimary)r Znoder r r �set_node_label, s zsatellite.set_node_labelN) �__name__�
__module__�__qualname__�__doc__Zcluster_nameZpackagesr r r r r r r r s r N)Zshlexr Zsos.collector.clustersr r r r r r �<module> s