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 )ÚAAPControllerPluginz AAP Automation Controller pluginZaap_controller)ZsysmgmtZansible)z automation-controller-venv-towerzautomation-controller-serverzautomation-controller-uiúautomation-controller)z
awx-manage)r   c                 C   sr   |   ddddddddg¡ |  d	d
ddg¡ |  dddddddddddddg¡ |  dddg¡ | jddd d S )Nz/etc/tower/z/etc/supervisord.confz/etc/supervisord.d/*z/var/log/towerz//var/log/nginx/automationcontroller.access.log*z./var/log/nginx/automationcontroller.error.log*z/var/log/supervisorz/var/log/unattended-upgradesz/etc/tower/SECRET_KEYz/etc/tower/*.keyz/etc/tower/*.certz/var/log/tower/profilezawx-manage --versionzawx-manage list_instancesz"awx-manage run_dispatcher --statusz)awx-manage run_callback_receiver --statuszawx-manage check_license --dataz#awx-manage run_wsbroadcast --statuszawx-manage run_wsrelay --statuszsupervisorctl statusz$/var/lib/awx/venv/awx/bin/pip freezez'/var/lib/awx/venv/awx/bin/pip freeze -lz(/var/lib/awx/venv/ansible/bin/pip freezez+/var/lib/awx/venv/ansible/bin/pip freeze -lzumask -pz/var/lib/awxz/var/lib/awx/venvz
/etc/towerT)Ztree)Zadd_copy_specZadd_forbidden_pathZadd_cmd_outputZadd_dir_listing)Úself© r   úC/usr/lib/python3/dist-packages/sos/report/plugins/aap_controller.pyÚsetup   sJ    øüóýzAAPControllerPlugin.setupc                 C   s\   d}d}|   d||¡ d}d}|   d||¡ d}d}|   d||¡ d}d}|   d||¡ d S )	Nz1(\s*\'PASSWORD\'\s*:(\s))(?:\"){1,}(.+)(?:\"){1,}z
\1********z/etc/tower/conf.d/postgres.pyz!(EMAIL_HOST_PASSWORD\s*=)\'(.+)\'z/etc/tower/settings.pyz/etc/tower/conf.d/custom.pyz+(BROADCAST_WEBSOCKET_SECRET\s*=\s*)\"(.+)\"z/etc/tower/conf.d/channels.py)Zdo_path_regex_sub)r   ZjregÚreplr   r   r   ÚpostprocE   s    zAAPControllerPlugin.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   