| Server IP : 77.50.203.18 / Your IP : 192.168.0.10 Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23 System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64 User : warsnews.ru ( 1001) PHP Version : 8.4.23 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/ |
Upload File : |
a
ܓ�i� � @ s. d dl Z d dlmZmZ G dd� dee�ZdS )� N)�Plugin�UbuntuPluginc @ s0 e Zd ZdZdZdZdZdZdd� Zdd � Z d
S )� LandscapezUbuntu Landscape clientZ landscape)Zsysmgmt)�/etc/landscape/client.conf�/etc/landscape/service.conf)zlandscape-clientzlandscape-serverc C s� dd� dD �}t |�s$| j�d� n| �g d�� | �g d�� | �g d�� | �d�sh| �d d
g� n| �ddg� | �g d
�� d S )Nc S s g | ]}|t jv �qS � )�os�environ)�.0�pr r �@/usr/lib/python3.9/site-packages/sos/report/plugins/landscape.py�
<listcomp> � z#Landscape.setup.<locals>.<listcomp>)ZLANDSCAPE_API_KEYZLANDSCAPE_API_SECRETZLANDSCAPE_API_URIz�Not all environment variables set. Source the environment file for the user intended to connect to the Landscape environment so that the landscape-api commands can be used.)zlandscape-api get-distributionszlandscape-api get-apt-sourcesz%landscape-api get-repository-profilesz'landscape-api get activites --limit 100)z&landscape-api --json get-distributionsz$landscape-api --json get-apt-sourcesz,landscape-api --json get-repository-profilesz.landscape-api --json get activites --limit 100)z/etc/default/landscape-clientz/etc/default/landscape-serverr r z/etc/landscape/service.conf.oldz*/var/lib/landscape/landscape-oops/*/OOPS-*Zall_logsz/var/log/landscape/*.logz/var/log/landscape-server/*.logz/var/log/landscapez/var/log/landscape-server)z'gpg --verify /etc/landscape/license.txtz$head -n 5 /etc/landscape/license.txtzlsctl status)�allZsoslogZwarningZadd_cmd_outputZ
add_copy_specZ
get_option)�selfZvars_allr r r �setup s
��zLandscape.setupc C s6 | � ddd� g d�}| �ddd�|�� d�d � d S )
Nr zregistration_password(.*)zregistration_password[********])�passwordZstore_passwordzsecret-tokenzoidc-client-secretzoidc-client-idz/etc/landscape/service.conf*�(�|z) = (.*)z\1 = [********])Zdo_file_subZdo_path_regex_sub�join)r �keysr r r �postprocL s ��zLandscape.postprocN)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofiles�filesZpackagesr r r r r r r
s 6r )r Zsos.report.pluginsr r r r r r r �<module> s