o idb@s,ddlmZddlmZGdddeZdS)quote)Clusterc@s0eZdZdZdZdZddZddZdd 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)rzsatellite-installercCsd}d}|t|t|S)Nzsu postgres -c %szpsql foreman -c %sr)selfquery_cmd_dbcmdr B/usr/lib/python3/dist-packages/sos/collector/clusters/satellite.py _psql_cmdszsatellite._psql_cmdcCsB|d}|j|dd}|ddkrdd|dD}|SgS) Nz/copy (select name from smart_proxies) to stdoutT) need_rootstatusrcSsg|] }d|vr|qS)zcould not change directory)strip).0nr r r %s z'satellite.get_nodes..output)r exec_primary_cmd splitlines)rcmdresnodesr r r get_nodes!s   zsatellite.get_nodescCs|j|jjkr dSdS)Nrcapsule)addressprimary)rnoder r r set_node_label,szsatellite.set_node_labelN) __name__ __module__ __qualname____doc__ cluster_namepackagesr rrr r r r rs  rN)pipesrsos.collector.clustersrrr r r r s