����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
a
G%@i. � @ s2 d dl mZmZ d dlmZ G dd� dee�ZdS )� )�Plugin�RedHatPlugin)�sos_parse_versionc @ s, e Zd ZdZdZdZdZdd� Zdd� Zd S )
�AAPEDAControllerPluginzAAP EDA Controller pluginZaap_eda)ZsysmgmtZansible)�automation-eda-controllerz automation-eda-controller-serverc C s d}| j j�|� �}|d ur,d�|d �| _| �d�rF| �g d�� n| �g d�� | �g d�� | �dd g� | j d
dgdd
� | jddd� d}| j j�|� �}t
| dd�}t|�td�kr�| �ddg� nH| �d�}|d dk�r|d �
� D ]"}|�� }|�sq�| �|d � q�d S )Nr �.�versionZall_logs)�!/etc/ansible-automation-platform/z)/var/log/ansible-automation-platform/eda/z2/var/log/nginx/automationedacontroller.access.log*z1/var/log/nginx/automationedacontroller.error.log*)r z./var/log/ansible-automation-platform/eda/*.logz1/var/log/nginx/automationedacontroller.access.logz0/var/log/nginx/automationedacontroller.error.log)z//etc/ansible-automation-platform/eda/SECRET_KEYz0/etc/ansible-automation-platform/eda/server.certz//etc/ansible-automation-platform/eda/server.keyzaap-eda-manage --versionzaap-eda-manage showmigrationsr z%/var/log/ansible-automation-platform/T)� recursivezsu - eda -c 'env'Zeda_environment)Zsuggest_filename�eda_pkg_ver�0.0.0�1.0.99z(automation-eda-controller-service statusz5automation-eda-controller-event-stream-service statuszOsystemctl list-units --type=service --no-legend automation-eda*�statusr �output)ZpolicyZpackage_managerZpkg_by_name�joinr Z
get_optionZ
add_copy_specZadd_forbidden_pathZadd_cmd_outputZadd_dir_listing�getattrr Zexec_cmd�
splitlines�splitZadd_service_status)�self�pkg_name�pkgr �resultZsvcZeda_svc� r �>/usr/lib/python3.9/site-packages/sos/report/plugins/aap_eda.py�setup sL
������zAAPEDAControllerPlugin.setupc C sH t | dd�}t|�td�k r*d}d}d}nd}d}d }| �|||� d S )
Nr r r
z0/etc/ansible-automation-platform/eda/environmentz3(EDA_SECRET_KEY|EDA_DB_PASSWORD)(\s*)(=|:)(\s*)(.*)z\1\2\3\4********z2/etc/ansible-automation-platform/eda/settings.yamlz6(\s*)(PASSWORD|MQ_USER_PASSWORD|SECRET_KEY)(:\s*)(.*$)z\1\2\3********)r r Zdo_path_regex_sub)r r Z file_pathZregexZreplacementr r r �postprocW s zAAPEDAControllerPlugin.postprocN) �__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesr r r r r r r s @r N)Zsos.report.pluginsr r Z
sos.utilitiesr r r r r r �<module> s