Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/openstack_swift.cpython-36.pyc

3

�f��@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CsTddddddddd	d
ddg}d
dg}|jddj|�d�|jddj|�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)r
Zprotect_keysZconnection_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rLsrc@seZdZdZdS)�RedHatSwift�openstack-selinuxN)r!)rrrrrrrrr [sr N)Zsos.report.pluginsrrrrrrr rrrr�<module>s;

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists