HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/redis.cpython-310.pyc
o

���b��@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/rediscCs�|�d|jd|jd|jdg�|jdd�D]}|�d�d}|�|gd��q|�d	�|�d
�r=|�dg�dS|�dg�dS)
N�/etc/redis.confz/etc/redis*z/etc/redis/z/etc/security/limits.d/�z
rh-redis*-r)rz/etc/redis.conf.puppetz/etc/redis-sentinel.confz/etc/redis-sentinel.conf.puppetz/var/log/redis/sentinel.log�/var/log/redis/redis.logzredis-cli info�all_logsz/var/log/redis/redis.log*r	)�
add_copy_spec�var_puppet_gen�packages�split�add_copy_spec_scl�add_cmd_output�
get_option)�self�pkg�scl�r�:/usr/lib/python3/dist-packages/sos/report/plugins/redis.py�setups"�
	

�
�zRedis.setupcCs@d|jdddfD]}|�|ddd�|�|ddd�q	dS)	Nz/etc/z/etc/opt/rh/rh-redis32/z/etc/opt/rh/rh-redis5/z
redis.confz(masterauth\s).*z
\1********z(requirepass\s).*zrequirepass = ********)r�do_file_sub)r�pathrrr�postproc7s ����zRedis.postprocN)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr
rrrrrrrrsrN)�sos.report.pluginsrrrrrrr�<module>s