관리-도구
편집 파일: autofs.cpython-39.pyc
a -�_g � @ 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)Zstorage�nfs)z/etc/sysconfig/autofsz/etc/default/autofs)r c C sB | j dg| j�R � }|D ]$}|�d�D ]}|dv r& dS q&qdS )z; testing if autofs debug has been enabled anywhere z%^(DEFAULT_LOGGING|DAEMONOPTIONS)=(.*)� )z--debug�debugTF)� file_grep�files�split)�self�optZopt1Zopt2� r �=/usr/lib/python3.9/site-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 Zdebugout�ir r r �getdaemondebug$ s �zAutofs.getdaemondebugc C sF | � d� | �ddi� | �d� | �d� | �� rB| � | �� � d S )N� /etc/auto*z/etc/autofs.confZautofs_confr �automount -m)Z add_copy_specZ add_file_tagsZadd_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 )Zdo_path_regex_subZdo_file_subZdo_cmd_output_subr r r r �postproc5 s ���zAutofs.postprocN)�__name__� __module__�__qualname__Z short_descZplugin_nameZprofilesr Zpackagesr r r r r r r r r s r c s e Zd Z� fdd�Z� ZS )�RedHatAutofsc s"