U
    -Ø_g?  ã                   @   s&   d dl mZmZ G dd„ deeƒZdS )é    )ÚPluginÚIndependentPluginc                   @   s,   e Zd ZdZdZdZdZdd„ Zdd„ Zd	S )
ÚOpenStackAnsiblezOpenStack-AnsibleZopenstack_ansible)Z	openstack)ú/etc/openstack_deploy/c                 C   s   |   ddddg¡ dS )z%Gathering the contents of the report.r   z/etc/openstack-releasez/etc/rpc_deploy/z/etc/rpc-releaseN)Zadd_copy_spec)Úself© r   úF/usr/lib/python3/dist-packages/sos/report/plugins/openstack_ansible.pyÚsetup   s    üzOpenStackAnsible.setupc                 C   s(   ddg}d}|D ]}|   ||d¡ qdS )z4Remove sensitive keys and passwords from YAML files.z&/etc/openstack_deploy/user_secrets.ymlz /etc/rpc_deploy/user_secrets.ymlz^\s*#*([\w_]*:\s*).*z\1*********N)Zdo_path_regex_sub)r   Zsecrets_filesZregexpZsecrets_filer   r   r   Úpostproc   s    þýzOpenStackAnsible.postprocN)	Ú__name__Ú
__module__Ú__qualname__Z
short_descZplugin_nameZprofilesÚfilesr	   r
   r   r   r   r   r      s   	r   N)Zsos.report.pluginsr   r   r   r   r   r   r   Ú<module>   s   