Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/collector/clusters/__pycache__/ |
Upload File : |
o -�_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 )�self�query�_cmd�_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 dkrdd� |d �� D �}|S g S ) Nz/copy (select name from smart_proxies) to stdoutT)� need_root�statusr c S s g | ] }d |vr|� � �qS )zcould not change directory)�strip)�.0�nr r r � <listcomp>% s �z'satellite.get_nodes.<locals>.<listcomp>�output)r �exec_primary_cmd� splitlines)r �cmd�res�nodesr r r � get_nodes! s �zsatellite.get_nodesc C s |j | jj kr dS dS )Nr �capsule)�address�primary)r �noder r r �set_node_label, s zsatellite.set_node_labelN) �__name__� __module__�__qualname__�__doc__�cluster_name�packagesr r r r r r r r s r N)�shlexr �sos.collector.clustersr r r r r r �<module> s