HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/redis.cpython-38.pyc
U

i��db�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�	SCLPluginc@s0eZdZdZdZdZdZdZdd�Zdd	�Z	d
S)�Redisz%Redis, in-memory data structure store�redis)�services)rz
rh-redis32z	rh-redis5z+/var/lib/config-data/puppet-generated/redisc
Cs�|�d|jd|jd|jdg�|jdd�D]*}|�d�d}|�|ddd	d
ddg�q2|�d
�|�d�r�|�dg�n|�dg�dS)Nz/etc/redis.confz/etc/redis*z/etc/redis/z/etc/security/limits.d/�z
rh-redis*-rz/etc/redis.conf.puppetz/etc/redis-sentinel.confz/etc/redis-sentinel.conf.puppetz/var/log/redis/sentinel.logz/var/log/redis/redis.logzredis-cli infoZall_logsz/var/log/redis/redis.log*)Z
add_copy_spec�var_puppet_gen�packages�splitZadd_copy_spec_sclZadd_cmd_outputZ
get_option)�self�pkgZscl�r
�:/usr/lib/python3/dist-packages/sos/report/plugins/redis.py�setups0��	

��zRedis.setupcCs.d|jdddfD]}|�|ddd�qdS)Nz/etc/z/etc/opt/rh/rh-redis32/z/etc/opt/rh/rh-redis5/z
redis.confz(masterauth|requirepass)\s.*z\1 ********)rZdo_file_sub)r�pathr
r
r�postproc7s��zRedis.postprocN)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesr	rrrr
r
r
rrsrN)Zsos.report.pluginsrrrr
r
r
r�<module>s