Your IP : 216.73.217.13


Current Path : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/redis.cpython-38.pyc

U

���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/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�|�|ddd�qdS)	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 = ********)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