NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/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=

NineSec Team - 2022