HEX
Server: LiteSpeed
System: Linux shams.tasjeel.ae 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: infowars (1469)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //usr/lib/python3.9/site-packages/ipalib/__pycache__/facts.cpython-39.opt-1.pyc
a

}�f��@sTdZddlZddlZddlmZddlmZe�e�Z	gd�Z
dd�Zdd
d�ZdS)
z
Facts about the installation
�N�)�
sysrestore)�paths)ZhttpdZkadminZdirsrvzpki-tomcatd�installZkrb5kdcZnamedcCs�t�tj�}|�d�r"|�dd�Sd}t�tj�}tD],}|�|�rVt�	d|�d}q6t�	d|�q6|�
�r|t�	d�d}n
t�	d�|S)	z@
    Use the state to determine if IPA has been configured.
    �installation�completeFz%s is configuredTz%s is not configuredzfilestore has fileszfilestore is tracking no files)r�	StateFilerZ
SYSRESTOREZ	has_state�	get_state�	FileStore�IPA_MODULES�logger�debug�	has_files)Zsstore�	installed�fstore�module�r�0/usr/lib/python3.9/site-packages/ipalib/facts.py�is_ipa_configureds



rFcCsPt�tj�}t�tj�}|�dd�}|dur0|S|��pJ|oJtj�	tj
�}|S)a
    Consider IPA client not installed if nothing is backed up
    and default.conf file does not exist. If on_master is set to True,
    the existence of default.conf file is not taken into consideration,
    since it has been already created by ipa-server-install.
    rrN)rr
rZIPA_CLIENT_SYSRESTORErr	r�os�path�existsZIPA_DEFAULT_CONF)Z	on_masterrZ
statestorerrrr�is_ipa_client_configured3s�r)F)
�__doc__Zloggingr�rZipaplatform.pathsrZ	getLogger�__name__rrrrrrrr�<module>s