%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/openstack_swift.cpython-312.pyc

�

i��d���d�ddlmZmZmZmZGd�de�ZGd�deee�ZGd�dee�Zy)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc�.�eZdZdZdZdZdZd�Zd�Zd�Z	y)	�OpenStackSwiftzOpenStack Swift�openstack_swift)�	openstack�openstack_controllerz%/var/lib/config-data/puppet-generatedc�,�|jd�r|jdg�n|jdg�|jd|jdz|jdz|jdz|jdzg�|jd	d
d��y)N�all_logsz/var/log/swift/z/var/log/swift/*.logz/etc/swift/z/swift/etc/*z/swift/etc/swift/*z/swift/etc/xinetd.d/*z"/memcached/etc/sysconfig/memcached�
swift_conf�	swift_log)z/etc/swift/swift.confz/var/log/swift/swift.log)�
get_option�
add_copy_spec�var_puppet_gen�
add_file_tags)�selfs �D/usr/lib/python3/dist-packages/sos/report/plugins/openstack_swift.py�setupzOpenStackSwift.setups����?�?�:�&����!� �
�
���&� �
�	
�������.�0����"6�6����"9�9����"F�F�
�	�	
���%1�(3�
�	�c�j�|jd||�|j|jdz||�y)Nz/etc/swift/.*\.conf.*z/swift/etc/swift/.*\.conf.*)�do_path_regex_subr)r�regexp�substs   r�apply_regex_subzOpenStackSwift.apply_regex_sub0s7�����7���G�������"@�@��E�	
rc��gd�}ddg}|jddj|�zd�|jddj|�zd�y)	N)�ldap_dns_password�neutron_admin_password�rabbit_password�
qpid_password�powervm_mgr_passwd�virtual_power_host_pass�xenapi_connection_password�password�
host_password�vnc_password�admin_password�
transport_url�
connection�sql_connectionz(^\s*(%s)\s*=\s*)(.*)�|z\1*********z)(^\s*(%s)\s*=\s*(.*)://(\w*):)(.*)(@(.*))z
\1*********\6)r�join)r�protect_keys�connection_keyss   r�postproczOpenStackSwift.postproc7s_��
��(�)9�:�����$�s�x�x��'=�=��	
�	
���8��H�H�_�%�
&��	
rN)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesrrrr0�rrrrs%��"�J�#�K�4�H�<�N��.
�
rrc��eZdZdZy)�DebianSwift)	�swiftz
swift-accountzswift-containerzswift-objectzswift-proxy�swauthzpython-swiftz
python-swauthz
python3-swiftN�r1r2r3�packagesr7rrr9r9Ks	��
�Hrr9c��eZdZdZy)�RedHatSwift)zopenstack-selinuxNr<r7rrr?r?Zs��%�Hrr?N)�sos.report.pluginsrrrrrr9r?r7rr�<module>rAs9��P�O�7
�V�7
�t�.�,���&�.�,�&r

Zerion Mini Shell 1.0