o
G%@i ã @ sR d dl mZmZmZmZ G dd„ deƒZG dd„ deeƒZG dd„ deeeƒZdS ) é )ÚPluginÚRedHatPluginÚUbuntuPluginÚDebianPluginc @ s@ e Zd ZdZdZdZdZdZdd„ Zdd „ Z d
d„ Z
dd
„ ZdS )ÚAutofszAutofs on-demand automounterÚautofs)ÚstorageÚnfs)z/etc/sysconfig/autofsz/etc/default/autofs)r c C sB | j dg| j¢R Ž }|D ]}| d¡D ]
}|dv r dS qqdS )z; testing if autofs debug has been enabled anywhere
z%^(DEFAULT_LOGGING|DAEMONOPTIONS)=(.*)ú )z--debugÚdebugTF)Ú file_grepÚfilesÚsplit)ÚselfÚoptÚopt1Úopt2© r ú;/usr/lib/python3/dist-packages/sos/report/plugins/autofs.pyÚ
checkdebug s ÿÿÿzAutofs.checkdebugc C s, | j dg| j¢R Ž }|D ]}|d S dS )z% capture daemon debug output
z^(daemon.*)\s+(\/var\/log\/.*)é N)r r
)r ÚdebugoutÚir r r Úgetdaemondebug$ s ÿzAutofs.getdaemondebugc C sJ | d¡ | ddi¡ | d¡ | d¡ | ¡ r#| | ¡ ¡ d S d S )Nú
/etc/auto*z/etc/autofs.confÚautofs_confr úautomount -m)Ú
add_copy_specÚ
add_file_tagsÚadd_service_statusÚadd_cmd_outputr r ©r r r r Úsetup- s
ÿzAutofs.setupc C s. | ddd¡ | ddd¡ | ddd¡ d S )Nr z(password=)[^,\s]*z
\1********z/etc/autofs_ldap_auth.confz&(secret[\s]*[=]+[\s]*)(\'|\").*(\'|\")z\1\2********\3r )Údo_path_regex_subÚdo_file_subÚdo_cmd_output_subr! r r r Úpostproc5 s ýýýzAutofs.postprocN)Ú__name__Ú
__module__Ú__qualname__Ú
short_descÚplugin_nameÚprofilesr
Úpackagesr r r" r&