HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/sos/report/plugins/__pycache__/openstack_swift.cpython-36.pyc
3

-�_g��@sRddlmZmZmZmZGdd�de�ZGdd�deee�ZGdd�dee�ZdS)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s4eZdZdZdZd
ZdZdd�Zdd	�Zd
d�Z	dS)�OpenStackSwiftzOpenStack SwiftZopenstack_swift�	openstack�openstack_controllerz%/var/lib/config-data/puppet-generatedcCsd|jd�r|jdg�n|jdg�|jd|jd|jd|jd|jdg�|jd	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�%/usr/lib/python3.6/openstack_swift.py�setups

zOpenStackSwift.setupcCs&|jd||�|j|jd||�dS)z Apply regex substitution z/etc/swift/.*\.conf.*z/swift/etc/swift/.*\.conf.*N)Zdo_path_regex_subr	)r
ZregexpZsubstrrr�apply_regex_sub0szOpenStackSwift.apply_regex_subcCs`ddddddddd	d
ddg}d
dg}|jddj|��d�d�dj|�}|jd|�d�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*(�|z
)\s*=\s*)(.*)z\1*********z!)\s*=\s*(.*)://(\w*):)(.*)(@(.*))z
\1*********\6)r�join)r
Zprotect_keysZconnection_keysZ
join_con_keysrrr�postproc8s


zOpenStackSwift.postprocN)rr)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesr	r
rrrrrrrsrc	@seZdZdZd
S)�DebianSwift�swift�
swift-account�swift-container�swift-object�swift-proxy�swauth�python-swift�
python-swauth�
python3-swiftN)	rrrrrrrrr)rrr�packagesrrrrrNsrc@seZdZdZdS)�RedHatSwift�openstack-selinuxN)r!)rrrrrrrrr ]sr N)Zsos.report.pluginsrrrrrrr rrrr�<module>s=