EVOLUTION-MANAGER
Edit File: autofs.cpython-36.pyc
3 �f � @ sR d dl mZmZmZmZ G dd� de�ZG dd� dee�ZG dd� deee�ZdS ) � )�Plugin�RedHatPlugin�UbuntuPlugin�DebianPluginc @ s@ e Zd ZdZdZdZdZdZdd� Zd d � Z dd� Z d d� ZdS )�AutofszAutofs on-demand automounter�autofs�storage�nfs�/etc/sysconfig/autofs�/etc/default/autofsc C sB | j d| j�� }x,|D ]$}x|jd�D ]}|dkr&dS q&W qW dS ) z; testing if autofs debug has been enabled anywhere �%^(DEFAULT_LOGGING|DAEMONOPTIONS)=(.*)� �--debug�debugTF)r )r r )� file_grep�files�split)�self�optZopt1Zopt2� r �/usr/lib/python3.6/autofs.py� checkdebug s zAutofs.checkdebugc C s( | j d| j�� }x|D ] }|d S W dS )z% capture daemon debug output �^(daemon.*)\s+(\/var\/log\/.*)� N)r )r r )r Zdebugout�ir r r �getdaemondebug$ s zAutofs.getdaemondebugc C sF | j d� | jddi� | jd� | jd� | j� rB| j | j� � d S )Nz /etc/auto*z/etc/autofs.confZautofs_confr zautomount -m)Z add_copy_specZ add_file_tagsZadd_service_status�add_cmd_outputr r )r r r r �setup- s zAutofs.setupc C s. | j ddd� | jddd� | jddd� d S )Nz /etc/auto*z(password=)[^,\s]*z \1********z/etc/autofs_ldap_auth.confz&(secret[\s]*[=]+[\s]*)(\'|\").*(\'|\")z\1\2********\3zautomount -m)Zdo_path_regex_subZdo_file_subZdo_cmd_output_sub)r r r r �postproc5 s zAutofs.postprocN)r r )r r )r )�__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"