HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/maas.cpython-36.pyc
3

3��d��@s*ddlmZmZmZGdd�dee�ZdS)�)�Plugin�UbuntuPlugin�	PluginOptc@sveZdZdZdZd Zd!Zd"Zed
de	dd�edde	dd�edde	dd�gZ
dd�Zdd�Zdd�Z
dd�Zdd�ZdS)#�MaaszUbuntu Metal-As-A-Service�maas�sysmgmt�maas-common�
maas-dhcpd�maas-dhcpd6�	maas-http�
maas-proxy�
maas-rackd�maas-regiond�maas-syslog�snap.maas.supervisorzprofile-name�zName of the remote API)�defaultZval_typeZdesc�urlzURL of the remote API�credentialszCredentials, or the API keycCs|jd�o|jd�o|jd�S)Nrrzprofile-name)�
get_option)�self�r�/usr/lib/python3.6/maas.py�_has_login_options,szMaas._has_login_optionscCs2|jd|jd�|jd�|jd�f�}|ddkS)Nzmaas login %s %s %szprofile-namerrZstatusr)Zexec_cmdr)r�retrrr�_remote_api_login0szMaas._remote_api_logincCs"|jjjd�}|r|ddkSdS)NrZpkg_managerZsnapF)ZpolicyZpackage_managerZpkg_by_name)rZmaas_pkgrrr�_is_snap_installed;szMaas._is_snap_installedc
Cs�|j�|_|jrF|jddg�|jd�|jdddddd	d
ddg	�n(|jd
dddddddg�|jddg�|jd�r�|jdg�|j�r�|j�r�|jd|jd��n
|j	d�dS)Nzsnap info maaszmaas statusz'/var/snap/maas/current/bind/session.keyz/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/rsyslogz/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 listzprofile-namez6Cannot login into MAAS remote API with provided creds.)
r�_is_snapZadd_cmd_outputZadd_forbidden_pathZ
add_copy_specZis_installedrrrZ
_log_error)rrrr�setupAsJ



z
Maas.setupcCs"|jrd}nd}|j|dd�dS)Nz(/var/snap/maas/current/maas/regiond.confz/etc/maas/regiond.confz(database_pass\s*:\s*)(.*)z
\1********)rZdo_file_sub)rZregiond_pathrrr�postprocrsz
Maas.postprocN)r)rr)r	r
rrr
rrr)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesZservicesr�strZoption_listrrrrrrrrrrs.
1rN)Zsos.report.pluginsrrrrrrrr�<module>s