�
i��d': � � � d dl mZmZmZmZmZmZ d dlmZ d dl m
Z
d dlmZ G d� de� Z
G d� de
ee� Z G d � d
e
ee� Zy)� )�Plugin�RedHatPlugin� SCLPlugin�DebianPlugin�UbuntuPlugin� PluginOpt)�quote)�match)�
is_executablec �x � e Zd ZdZdZdZdZdZ eddd� � ed
dd� � ed
dd� � gZ dZ
d� Zdd�Zd� Z
y)�Foremanz$Foreman/Satellite systems management�foremani )�sysmgmt)r �months� z#number of months for dynflow output)�default�desc�
proxyfeaturesFz!collect features of smart proxies�puma-gczcollect Puma GC statsz/pumactl %s -S /usr/share/foreman/tmp/puma.statec �
� d}d| _ d| _ t d� j � j � D ]� }|r|d dk( r�|j d� rd}�"|r$t
d |� r|j � d
| _ |r$t
d|� r|j � d
| _ |j d� r��d}�� | j j d
� r| j j d
� s6| j j d� r/| j j d� r| j d
d | _ d| j i| _
| j ddddd�� | j ddg� | j d� d }|j � }| j d� d }|j � }| j ddj! | j" |