o 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/rediscCsŠ| d|jd|jd|jdg¡|jdd…D]}| d¡d}| |gd¢¡q| d ¡| d ¡r=| d g¡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"ü  ÿ ÿz Redis.setupcCs.d|jdddfD] }| |ddd¡q dS)Nz/etc/z/etc/opt/rh/rh-redis32/z/etc/opt/rh/rh-redis5/z redis.confz(masterauth|requirepass)\s.*z \1 ********)r Ú do_file_sub)rÚpathrrrÚpostproc7sýýüzRedis.postprocN) Ú__name__Ú __module__Ú __qualname__Ú short_descÚ plugin_nameÚprofilesr r rrrrrrrs rN)Úsos.report.pluginsrrrrrrrÚs