U
    -_g                     @   s&   d dl mZmZ G dd deeZdS )    )PluginRedHatPluginc                   @   s4   e Zd ZdZdZdZdZdZdZdd Z	d	d
 Z
dS )AAPGatewayPluginzAAP Gateway pluginZaap_gateway)ZsysmgmtZansible)automation-gatewayzautomation-gateway-config)zaap-gateway-manage)r   c                 C   s>   |  ddddg | dddg | d | jd	d
d d S )Nz/var/log/supervisorz /etc/ansible-automation-platformz/etc/supervisord.d/z-/var/log/ansible-automation-platform/gateway/z3/etc/ansible-automation-platform/gateway/SECRET_KEYz./etc/ansible-automation-platform/gateway/*.keyz//etc/ansible-automation-platform/gateway/*.certz aap-gateway-manage list_servicesz!/etc/ansible-automation-platform/T)	recursive)Zadd_copy_specZadd_forbidden_pathZadd_cmd_outputZadd_dir_listing)self r   @/usr/lib/python3/dist-packages/sos/report/plugins/aap_gateway.pysetup   s    
zAAPGatewayPlugin.setupc                 C   s   d}d}|  d|| d S )Nz&(DATABASE_PASSWORD)(\s*)(=|:)(\s*)(.*)z\1\2\3\4********z4/etc/ansible-automation-platform/gateway/settings.py)Zdo_path_regex_sub)r   Zjregreplr   r   r	   postproc*   s    zAAPGatewayPlugin.postprocN)__name__
__module____qualname__Z
short_descZplugin_nameZprofilesZpackagesZcommandsservicesr
   r   r   r   r   r	   r      s   r   N)Zsos.report.pluginsr   r   r   r   r   r   r	   <module>   s   