o
    O6ufô  ã                   @   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 pluginÚaap_gateway)ÚsysmgmtÚansible)úautomation-gatewayzautomation-gateway-config)zaap-gateway-manage)r   c                 C   s.   |   g d¢¡ |  g d¢¡ |  g d¢¡ d S )N)z/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/*.cert)z aap-gateway-manage list_servicesz(ls -ll /etc/ansible-automation-platform/z0ls -ll /etc/ansible-automation-platform/gateway/)Úadd_copy_specÚadd_forbidden_pathÚadd_cmd_output)Ú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)Údo_path_regex_sub)r   ÚjregÚreplr   r   r   Úpostproc,   s   ýzAAPGatewayPlugin.postprocN)Ú__name__Ú
__module__Ú__qualname__Ú
short_descÚplugin_nameÚprofilesÚpackagesÚcommandsÚservicesr   r   r   r   r   r   r      s    r   N)Úsos.report.pluginsr   r   r   r   r   r   r   Ú<module>   s   
