HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/openstack_horizon.cpython-38.pyc
U

i��dB
�@sbddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�dee�ZGdd	�d	ee�Zd
S)�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�OpenStackHorizonzOpenStack HorizonZopenstack_horizon)Z	openstackZopenstack_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_genZadd_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�q$dS)Nz/horizonZ
SECRET_KEYZEMAIL_HOST_PASSWORDz(^\s*(%s)\s*=\s*)(.*)�|)z!/etc/openstack-dashboard/.*\.jsonz(/etc/openstack-dashboard/local_settings$z\1*********)r
�joinZdo_path_regex_sub)rr
Zprotect_keysZregexpZregpathr
r
r�postproc/s
�
�zOpenStackHorizon.postprocN)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesr
rrr
r
r
rrsrcs eZdZdZ�fdd�Z�ZS)�
DebianHorizon)�python-django-horizon�openstack-dashboardzopenstack-dashboard-apachecstt|���|�d�dS)Nz/etc/apache2/sites-available/)�superrrr	r��	__class__r
rrEszDebianHorizon.setup�rrrZpackagesr�
__classcell__r
r
rrr=srcs eZdZdZ�fdd�Z�ZS)�
UbuntuHorizon)rzpython3-django-horizonrz openstack-dashboard-ubuntu-themecstt|���|�d�dS)Nz,/etc/apache2/conf.d/openstack-dashboard.conf)rrrr	rrr
rrSszUbuntuHorizon.setuprr
r
rrrJsrcs eZdZdZ�fdd�Z�ZS)�
RedHatHorizon)zopenstack-selinuxcs>tt|���|�d�|�d�r.|�d�n|�dg�dS)Nz*/etc/httpd/conf.d/openstack-dashboard.confrz/var/log/httpd/horizon*z*/var/log/httpd/horizon*.log/var/log/httpd/)rrrr	rrrr
rr\s

�zRedHatHorizon.setuprr
r
rrrXsrN)	Zsos.report.pluginsrrrrrrrrr
r
r
r�<module>s,