HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3.9/site-packages/sos/report/plugins/__pycache__/foreman_installer.cpython-39.pyc
a

^��cS�@sBddlmZmZmZmZGdd�deee�ZGdd�dee�ZdS)�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�ForemanInstallerz Foreman installer and maintainerZforeman_installer)Zsysmgmt)zforeman-installerzrubygem-foreman_maintaincCs(|�gd��|�d�|�dg�dS)N)z/etc/foreman-installer/*z/var/log/foreman-installer/*z/var/log/foreman-maintain/*z"/var/lib/foreman-maintain/data.ymlz*/etc/foreman-maintain/foreman_maintain.ymlz-/etc/foreman-installer/scenarios.d/*/.appliedz4/etc/foreman-installer/scenarios.d/*.migrations/*.rbzforeman-maintain service status)Z
add_copy_specZadd_forbidden_pathZadd_cmd_output��self�r	�H/usr/lib/python3.9/site-packages/sos/report/plugins/foreman_installer.py�setups
��zForemanInstaller.setupcCszd}d}|�||d�d}|�||d�|�|dd�|�dd	d�|�d
dd�|�d
|dd�|�d|dd�dS)Nz/var/log/foreman-installer/z~((foreman.*)?(\"::(foreman(.*?)|katello).*)?((::(.*)::.*(passw|cred|token|secret|key).*(\")?:)|(storepass )|(password =)))(.*)z\1 ********zZ(\s)+(Found key: (\"(foreman(.*?)|katello)::(.*(token|secret|key|passw).*)\") value:) (.*)z\1 \2 ********z#(\.|_|-)password(=\'|=|\", \")(\w*)z\1password\2********z)/var/log/foreman-installer/foreman-proxy*z(\s*proxy_password\s=) (.*)z//var/log/foreman-maintain/foreman-maintain.log*z.(((passw|cred|token|secret)=)|(password ))(.*)z
\1********z:(/etc/foreman-(installer|maintain)/(.*)((conf)(.*)?))|(%s)z5((\:|\s*)(passw|cred|token|secret|key).*(\:\s|=))(.*)z>(/etc/foreman-(installer|maintain)/(.*)((yaml|yml)(.*)?))|(%s)z\1"********")Zdo_path_regex_sub)rZinstall_logsZlogsregZlogs_debug_regr	r	r
�postproc-sD�������zForemanInstaller.postprocN)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrr	r	r	r
rsrcseZdZ�fdd�Z�ZS)�RedHatForemanInstallercs&|�dgdgd��tt|���dS)NZ,foreman_satellite_logsatellite_installer_logZ capsule_logcapsule_installer_log)z(/var/log/foreman-installer/satellite.logz&/var/log/foreman-installer/capsule.log)Z
add_file_tags�superrrr��	__class__r	r
rXs
�zRedHatForemanInstaller.setup)r
rrr�
__classcell__r	r	rr
rVsrN)Zsos.report.pluginsrrrrrrr	r	r	r
�<module>sG