U
    -Ø_g  ã                   @   s&   d dl mZmZ G dd„ deeƒZdS )é    )ÚPluginÚIndependentPluginc                   @   s0   e Zd ZdZdZdZdZg Zdd„ Zdd„ Z	d	S )
ÚOpenStackTripleOz1Installation information from OpenStack InstallerZopenstack_tripleo)Z	openstackZopenstack_controllerZopenstack_compute)zopenstack-selinuxc                 C   s    dddddg| _ |  | j ¡ d S )Nz/var/log/paunch.logz/var/lib/container-puppet/z/var/lib/tripleo-config/z/var/lib/tripleo/z/etc/puppet/hieradata/)Útripleo_log_pathsZadd_copy_spec)Úself© r   úF/usr/lib/python3/dist-packages/sos/report/plugins/openstack_tripleo.pyÚsetup   s    ûzOpenStackTripleO.setupc                 C   s"   d}| j D ]}|  ||d¡ q
d S )NzK(".*(key|password|pass|secret|database_connection))([":\s]+)(.*[^"])([",]+)z\1\3*********\5)r   Zdo_path_regex_sub)r   ZregexpÚpathr   r   r   Úpostproc#   s    
zOpenStackTripleO.postprocN)
Ú__name__Ú
__module__Ú__qualname__Z
short_descZplugin_nameZprofilesZpackagesr   r	   r   r   r   r   r   r      s   r   N)Zsos.report.pluginsr   r   r   r   r   r   r   Ú<module>   s   