Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/sos/collector/clusters/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �gp � @ s4 d dl Z d dlmZ d dlmZ G dd� de�ZdS )� N)�quote)�Clusterc @ sr e Zd ZdZdZd#ZdgZdZd$d%d&d'd(d)d*gZdZ dZ eed�dd�Z eed�dd�Zed�dd�Zd d!� Zd"S )+� saltstackzh The saltstack cluster profile is intended to be used on saltstack clusters (Salt Project). Z Saltstack�salt-masterZ saltmasterT�compound� �+Filter node list to those matching compound�glob�/Filter node list to those matching glob pattern�grain�-Filter node list to those with matching grain�minion_id_unresolvableF�\Returns the FQDN grain of each minion in the node list when the minion ID is not a hostname.� nodegroup�,Filter node list to those matching nodegroup�pillar�.Filter node list to those with matching pillar�subnet�#Filter node list to those in subnetz#salt-run --out=pprint manage.status)�output�returnc C s: g }t j|jdd��}x|j� D ]\}}|j|� q W |S )N�'�")�json�loads�replace�items�extend)�selfr ZnodesZsalt_json_output�_�value� r! �/usr/lib/python3.6/saltstack.py�_parse_manage_status( s zsaltstack._parse_manage_status)� manage_statusr c C sv g }xl|j � D ]`\}}|dkr<| jd|� d�� |j|� qx0|D ](}d|� d�}|j| j|�d j� � qBW qW |S )NZdownzNode(s) z are status down.zsalt --out=newline_values_only z grains.get fqdnr )r Zlog_warnr �append�exec_primary_cmd�strip)r r$ Z hostnames�statusZminionsZminion�node_cmdr! r! r"