+
    i  c                   sP    ^ RI HtHtHtHt  ! R R]]]4      t ! R R]]4      tR# )i    )PluginRedHatPluginDebianPluginUbuntuPluginc                   s<   a  ] tR t^t o RtRtRtRtR tR t	Rt
V tR# )	ForemanInstallerz Foreman installer and maintainerZforeman_installerc                sr    V P                  . RO4       V P                  R4       V P                  R.4       R# )/etc/foreman-installer/*z4/etc/foreman-installer/scenarios.d/*.migrations/*.rbzforeman-maintain service statusN)r   z/var/log/foreman-installer/*z/var/log/foreman-maintain/*z"/var/lib/foreman-maintain/data.ymlz//var/lib/foreman-maintain/satellite_metrics.ymlz*/etc/foreman-maintain/foreman_maintain.ymlz-/etc/foreman-installer/scenarios.d/*/.applied)Zadd_copy_specZadd_forbidden_pathZadd_cmd_output)selfs   &I/usr/lib/python3.14/site-packages/sos/report/plugins/foreman_installer.pysetupZForemanInstaller.setup   s@     

 
	 	F	
 	-
 	    c                s(   R pRpV P                  WR4       RpV P                  WR4       V P                  VRR4       V P                  RRR4       V P                  R	R
R4       V P                  RV R2RR4       V P                  RV R2RR4       R# )z/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(\", \"|=|\" value: \"|\": \")(.*?)(\", \".*|\"]]|\"|$)zpassword\1********\3z)/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********z7(/etc/foreman-(installer|maintain)/(.*)((conf)(.*)?))|(Z)z5((\:|\s*)(passw|cred|token|secret|key).*(\:\s|=))(.*)z;(/etc/foreman-(installer|maintain)/(.*)((yaml|yml)(.*)?))|(z\1"********"N)Zdo_path_regex_sub)r   Zinstall_logsZlogsregZlogs_debug_regs   &   r   postprocZForemanInstaller.postproc.   s    4) 	|nE" 	|=NON#	% 	7*	 	==	 	a!D		 	a!D		r	    N)Zsysmgmt)zforeman-installerzrubygem-foreman_maintain)__name__
__module____qualname____firstlineno__Z
short_descZplugin_nameZprofilesZpackagesr   r
   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s(     3J%KH@H.$ $r	   r   c                   s2   a a ] tR t^Wt oV 3R ltRtVtV ;t# )RedHatForemanInstallerc                sV   < V P                  R RR.RRR./4       \        SV `	  4        R# )z(/var/log/foreman-installer/satellite.logZforeman_satellite_logZsatellite_installer_logz&/var/log/foreman-installer/capsule.logZcapsule_logZcapsule_installer_logN)Zadd_file_tagsZsuperr   )r   	__class__s   &r   r   ZRedHatForemanInstaller.setupY   s9    6(*CD4 78	
 	 	r	   r   )r   r   r   r   r   r   r   Z__classcell__)r   r   s   @@r   r   r   W   s     	 	r	   r   N)Zsos.report.pluginsr    r   r   r   r   r   r   r	   r   <module>r      s1   . .Cv|\ CP-| r	   