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_horizon.cpython-36.opt-1.pyc

3

�f	
�@sbddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�dee�ZGdd	�d	ee�Zd
S)�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s,eZdZdZdZdZdZdd�Zdd	�Zd
S)�OpenStackHorizonzOpenStack HorizonZopenstack_horizon�	openstack�openstack_controllerz%/var/lib/config-data/puppet-generatedcCsf|jd�r|jdg�n|jdg�|jd|jd|jd|jd|jd|jd	g�|jd
�dS)N�all_logsz/var/log/horizon/z/var/log/horizon/*.logz/etc/openstack-dashboard/z!/horizon/etc/openstack-dashboard/z/horizon/etc/httpd/conf/z/horizon/etc/httpd/conf.d/z(/horizon/etc/httpd/conf.modules.d/*.confz"/memcached/etc/sysconfig/memcachedz2/etc/openstack-dashboard/local_settings.d/*.py[co])�
get_option�
add_copy_spec�var_puppet_genZadd_forbidden_path)�self�r�'/usr/lib/python3.6/openstack_horizon.py�setups

zOpenStackHorizon.setupcCsR|jd}ddg}ddj|�}x,d	D]$}|j||d�|j|||d�q&WdS)
Nz/horizonZ
SECRET_KEYZEMAIL_HOST_PASSWORDz(^\s*(%s)\s*=\s*)(.*)�|�!/etc/openstack-dashboard/.*\.json�(/etc/openstack-dashboard/local_settings$z\1*********)rr)r�joinZdo_path_regex_sub)r
rZprotect_keysZregexpZregpathrrr�postproc/s

zOpenStackHorizon.postprocN)rr)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesrrrrrrrrsrcs eZdZdZ�fdd�Z�ZS)�
DebianHorizon�python-django-horizon�openstack-dashboard�openstack-dashboard-apachecst�j�|jd�dS)Nz/etc/apache2/sites-available/)�superrr)r
)�	__class__rrrEs
zDebianHorizon.setup)rrr)rrr�packagesr�
__classcell__rr)rrr=srcs eZdZdZ�fdd�Z�ZS)�
UbuntuHorizon�python-django-horizon�python3-django-horizon�openstack-dashboard� openstack-dashboard-ubuntu-themecst�j�|jd�dS)Nz,/etc/apache2/conf.d/openstack-dashboard.conf)rrr)r
)rrrrSs
zUbuntuHorizon.setup)r"r#r$r%)rrrrrr rr)rrr!Js
r!cs eZdZdZ�fdd�Z�ZS)�
RedHatHorizon�openstack-selinuxcs:t�j�|jd�|jd�r*|jd�n|jdg�dS)Nz*/etc/httpd/conf.d/openstack-dashboard.confr	z/var/log/httpd/horizon*z*/var/log/httpd/horizon*.log/var/log/httpd/)rrrr
)r
)rrrr\s


zRedHatHorizon.setup)r')rrrrrr rr)rrr&Xsr&N)	Zsos.report.pluginsrrrrrrr!r&rrrr�<module>s,


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