Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
o -�_g5 � @ sB d dl mZmZmZmZ G dd� deee�ZG dd� dee�ZdS )� )�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc @ s, e Zd ZdZdZdZdZdd� Zdd� Zd S ) �ForemanInstallerz Foreman installer and maintainer�foreman_installer)�sysmgmt)zforeman-installerzrubygem-foreman_maintainc C s( | � g d�� | �d� | �dg� d S )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)� add_copy_spec�add_forbidden_path�add_cmd_output��self� r �F/usr/lib/python3/dist-packages/sos/report/plugins/foreman_installer.py�setup s � �zForemanInstaller.setupc C s� d}d}| � ||d� d}| � ||d� | � |dd� | � dd d� | � d dd� | � d|� d �dd� | � d|� d �dd� d S )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 \1********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 ))(.*)z7(/etc/foreman-(installer|maintain)/(.*)((conf)(.*)?))|(�)z5((\:|\s*)(passw|cred|token|secret|key).*(\:\s|=))(.*)z;(/etc/foreman-(installer|maintain)/(.*)((yaml|yml)(.*)?))|(z\1"********")�do_path_regex_sub)r �install_logs�logsreg�logs_debug_regr r r �postproc- sD �������zForemanInstaller.postprocN) �__name__� __module__�__qualname__� short_desc�plugin_name�profiles�packagesr r r r r r r s r c s e Zd Z� fdd�Z� ZS )�RedHatForemanInstallerc s&