📂 FileMgr
📍
/
usr
/
lib
/
python3
/
dist-packages
/
sos
/
report
/
plugins
/
__pycache__
✏️ /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/juju.cpython-312.pyc
✕ Tutup
� G%@i� � �H � d dl Z d dlZd dlZd dlmZmZmZ G d� dee� Zy)� N)�Plugin�UbuntuPlugin� PluginOptc � � e Zd ZdZdZdZdZdZ edde d� � ed de d� � ed de d� � edde d� � gZdZd� Z d� Zd� Zy)�Jujua3 The Juju plugin is aimed at collecting Juju-related logs, configurations, and controller/model state(s). Logs and agent configuration information (/var/log/juju and /var/lib/juju) is collected by default since these are useful for troubleshooting. The Juju state collection is disabled by default and can be enabled with the 'juju-state' option. Collecting Juju state is safe in theory, but it does act on the live controller(s)/model(s) and is therefore optional. The default Juju state collection collects all controllers and models that the 'juju-user' (default=ubuntu) has access to. Specific controllers or models can be collected using the 'controllers' and 'models' options. Important: the string list is whitespace delimited, not colon delimited (sos plugin standard). This is due to the underlying Juju CLI accepting specific models in the format 'controller:model' and whitespaces are not allowed in either controller and model names. Example: models="controller_a:model_x controller_b:model_y" zJuju orchestration tool�juju)�virt�sysmgmt)� /var/log/juju� juju-stateFz Include Juju state in the report)�default�val_type�desc� juju-user�ubuntuzJuju client user.�controllers� z[Collect Juju state for specified controllers. Uses a whitespace delimited list.�modelszVCollect Juju state for specified models. Uses a whitespace delimited list.c � � | j d� D ]$ }| j |� | j |� �& dddddddd d d� }| j d� r:|j � D ]'