HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/openstack_horizon.cpython-310.pyc
o

i��dB
�@sbddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�dee�ZGdd	�d	ee�Zd
S)�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�OpenStackHorizonzOpenStack Horizon�openstack_horizon)�	openstack�openstack_controllerz%/var/lib/config-data/puppet-generatedc	Csf|�d�r|�dg�n|�dg�|�d|jd|jd|jd|jd|jd	g�|�d
�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_gen�add_forbidden_path��self�r�F/usr/lib/python3/dist-packages/sos/report/plugins/openstack_horizon.py�setups$
����zOpenStackHorizon.setupcCsN|jd}ddg}dd�|�}dD]}|�||d�|�|||d�qdS)Nz/horizon�
SECRET_KEY�EMAIL_HOST_PASSWORDz(^\s*(%s)\s*=\s*)(.*)�|)z!/etc/openstack-dashboard/.*\.jsonz(/etc/openstack-dashboard/local_settings$z\1*********)r
�join�do_path_regex_sub)rr
�protect_keys�regexp�regpathrrr�postproc/s
�
��zOpenStackHorizon.postprocN)	�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr
rrrrrrrsrc� eZdZdZ�fdd�Z�ZS)�
DebianHorizon)�python-django-horizon�openstack-dashboardzopenstack-dashboard-apachec�tt|���|�d�dS)Nz/etc/apache2/sites-available/)�superr$rrr��	__class__rrrE�zDebianHorizon.setup�rrr�packagesr�
__classcell__rrr)rr$=sr$cr#)�
UbuntuHorizon)r%zpython3-django-horizonr&z openstack-dashboard-ubuntu-themecr')Nz,/etc/apache2/conf.d/openstack-dashboard.conf)r(r/rrrr)rrrSr+zUbuntuHorizon.setupr,rrr)rr/Jsr/cr#)�
RedHatHorizon)zopenstack-selinuxcs@tt|���|�d�|�d�r|�d�dS|�dg�dS)Nz*/etc/httpd/conf.d/openstack-dashboard.confr
z/var/log/httpd/horizon*z*/var/log/httpd/horizon*.log/var/log/httpd/)r(r0rrrrr)rrr\s


�zRedHatHorizon.setupr,rrr)rr0Xsr0N)	�sos.report.pluginsrrrrrr$r/r0rrrr�<module>s

,