HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/openstack_swift.cpython-38.pyc
U

i��d��@sRddlmZmZmZmZGdd�de�ZGdd�deee�ZGdd�dee�ZdS)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s4eZdZdZdZdZdZdd�Zdd�Zd	d
�Z	dS)�OpenStackSwiftzOpenStack SwiftZopenstack_swift)Z	openstackZopenstack_controllerz%/var/lib/config-data/puppet-generatedcCsd|�d�r|�dg�n|�dg�|�d|jd|jd|jd|jdg�|�d	d
d��dS)NZall_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/memcachedZ
swift_confZ	swift_log)z/etc/swift/swift.confz/var/log/swift/swift.log)Z
get_optionZ
add_copy_spec�var_puppet_genZ
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.*)Zdo_path_regex_subr)rZregexpZsubstr	r	r
�apply_regex_sub0s�zOpenStackSwift.apply_regex_subcCsTddddddddd	d
ddg}d
dg}|�dd�|�d�|�dd�|�d�dS)NZldap_dns_passwordZneutron_admin_passwordZrabbit_passwordZ
qpid_passwordZpowervm_mgr_passwdZvirtual_power_host_passZxenapi_connection_passwordZpasswordZ
host_passwordZvnc_passwordZadmin_passwordZ
transport_urlZ
connectionZsql_connectionz(^\s*(%s)\s*=\s*)(.*)�|z\1*********z)(^\s*(%s)\s*=\s*(.*)://(\w*):)(.*)(@(.*))z
\1*********\6)r�join)rZprotect_keysZconnection_keysr	r	r
�postproc7s0����zOpenStackSwift.postprocN)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesrrrrr	r	r	r
rsrc@seZdZdZdS)�DebianSwift)	Zswiftz
swift-accountzswift-containerzswift-objectzswift-proxyZswauthzpython-swiftz
python-swauthz
python3-swiftN�rrrZpackagesr	r	r	r
rKsrc@seZdZdZdS)�RedHatSwift)zopenstack-selinuxNrr	r	r	r
rZsrN)Zsos.report.pluginsrrrrrrrr	r	r	r
�<module>s: