Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/maas.cpython-310.pyc
o

i��d��@s*ddlmZmZmZGdd�dee�ZdS)�)�Plugin�UbuntuPlugin�	PluginOptc@sveZdZdZdZdZdZdZedde	dd	�ed
de	dd	�edde	d
d	�gZ
dd�Zdd�Zdd�Z
dd�Zdd�ZdS)�MaaszUbuntu Metal-As-A-Service�maas)�sysmgmt)rzmaas-common)z
maas-dhcpdzmaas-dhcpd6z	maas-httpz
maas-proxyz
maas-rackdzmaas-regiondzmaas-syslogzsnap.maas.supervisor�profile-name�zName of the remote API)�default�val_type�desc�urlzURL of the remote API�credentialszCredentials, or the API keycCs|�d�o|�d�o|�d�S)Nr
rr)�
get_option��self�r�9/usr/lib/python3/dist-packages/sos/report/plugins/maas.py�_has_login_options,s�zMaas._has_login_optionscCs2|�d|�d�|�d�|�d�f�}|ddkS)Nzmaas login %s %s %srr
r�statusr)�exec_cmdr)r�retrrr�_remote_api_login0s��zMaas._remote_api_logincCs"|jj�d�}|r|ddkSdS)Nr�pkg_manager�snapF)�policy�package_manager�pkg_by_name)r�maas_pkgrrr�_is_snap_installed;szMaas._is_snap_installedcCs�|��|_|jr|�ddg�|�d�|�gd��n|�gd��|�ddg�|�d�r5|�d	g�|��rP|��rI|�d
|�d��dS|�	d�dSdS)
Nzsnap info maaszmaas statusz'/var/snap/maas/current/bind/session.key)	z/var/snap/maas/common/logz/var/snap/maas/common/snap_modez/var/snap/maas/current/*.confz/var/snap/maas/current/bindz/var/snap/maas/current/httpz"/var/snap/maas/current/supervisordz/var/snap/maas/current/preseedsz/var/snap/maas/current/proxyz/var/snap/maas/current/rsyslog)z/etc/squid-deb-proxyz	/etc/maasz/var/lib/maas/dhcp*z/var/lib/maas/http/*.confz/var/lib/maas/*.confz/var/lib/maas/rsyslogz/var/log/maas*z/var/log/upstart/maas-*zapt-cache policy maas-*z apt-cache policy python-django-*zmaas-region-controllerzmaas-region dumpdataz"maas %s commissioning-results listrz6Cannot login into MAAS remote API with provided creds.)
r�_is_snap�add_cmd_output�add_forbidden_path�
add_copy_spec�is_installedrrr�
_log_errorrrrr�setupAs4
�

�
�
���z
Maas.setupcCs"|jrd}nd}|�|dd�dS)Nz(/var/snap/maas/current/maas/regiond.confz/etc/maas/regiond.confz(database_pass\s*:\s*)(.*)z
\1********)r �do_file_sub)r�regiond_pathrrr�postprocrs�z
Maas.postprocN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packages�servicesr�str�option_listrrrr&r)rrrrrs*����	1rN)�sos.report.pluginsrrrrrrrr�<module>s


Spamworldpro Mini