HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/openstack_swift.cpython-310.pyc
o

i��d��@sRddlmZmZmZmZGdd�de�ZGdd�deee�ZGdd�dee�ZdS)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s4eZdZdZdZdZdZdd�Zdd�Zd	d
�Z	dS)�OpenStackSwiftzOpenStack Swift�openstack_swift)�	openstack�openstack_controllerz%/var/lib/config-data/puppet-generatedcCsd|�d�r|�dg�n|�dg�|�d|jd|jd|jd|jdg�|�d	d
d��dS)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)�self�r�D/usr/lib/python3/dist-packages/sos/report/plugins/openstack_swift.py�setups$
����zOpenStackSwift.setupcCs&|�d||�|�|jd||�dS)Nz/etc/swift/.*\.conf.*z/swift/etc/swift/.*\.conf.*)�do_path_regex_subr)r�regexp�substrrr�apply_regex_sub0s
�zOpenStackSwift.apply_regex_subcCs@gd�}ddg}|�dd�|�d�|�dd�|�d�dS)	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_keysrrr�postproc7s���zOpenStackSwift.postprocN)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesrrrr+rrrrrsrc@�eZdZdZdS)�DebianSwift)	�swiftz
swift-accountzswift-containerzswift-objectzswift-proxy�swauthzpython-swiftz
python-swauthz
python3-swiftN�r,r-r.�packagesrrrrr3K�r3c@r2)�RedHatSwift)zopenstack-selinuxNr6rrrrr9Zr8r9N)�sos.report.pluginsrrrrrr3r9rrrr�<module>s
: