HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //lib/python3.6/site-packages/sos/collector/clusters/__pycache__/satellite.cpython-36.pyc
3

\��hb�@s,ddlmZddlmZGdd�de�ZdS)�)�quote)�Clusterc@s0eZdZdZdZdZdd�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�satellite-installercCsd}d}|t|t|��S)Nzsu postgres -c %szpsql foreman -c %s)r)�selfZqueryZ_cmdZ_dbcmd�r�/usr/lib/python3.6/satellite.py�	_psql_cmdszsatellite._psql_cmdcCsB|jd�}|j|dd�}|ddkr>dd�|dj�D�}|SgS)	Nz/copy (select name from smart_proxies) to stdoutT)Z	need_rootZstatusrcSsg|]}d|kr|j��qS)zcould not change directory)�strip)�.0�nrrr�
<listcomp>&sz'satellite.get_nodes.<locals>.<listcomp>�output)r	Zexec_primary_cmd�
splitlines)r�cmd�resZnodesrrr�	get_nodes!s
zsatellite.get_nodescCs|j|jjkrdSdS)NrZcapsule)ZaddressZprimary)rZnoderrr�set_node_label,szsatellite.set_node_labelN)rr)	�__name__�
__module__�__qualname__�__doc__Zcluster_nameZpackagesr	rrrrrrrsrN)ZshlexrZsos.collector.clustersrrrrrr�<module>s