HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //proc/self/root/lib/python3.6/site-packages/ipalib/__pycache__/facts.cpython-36.pyc
3

�d[e��@s^dZddlZddlZddlmZddlmZeje�Z	dddd	d
ddgZ
d
d�Zddd�ZdS)z
Facts about the installation
�N�)�
sysrestore)�pathsZhttpdZkadminZdirsrvzpki-tomcatdZinstallZkrb5kdcZnamedcCs�tjtj�}|jd�r"|jdd�Sd}tjtj�}x4tD],}|j|�rXtj	d|�d}q8tj	d|�q8W|j
�r�tj	d�d}n
tj	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�/usr/lib/python3.6/facts.py�is_ipa_configureds




rFcCsPtjtj�}tjtj�}|jdd�}|dk	r0|S|j�pJ|oJtjj	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_SYSRESTORErrr
�os�path�existsZIPA_DEFAULT_CONF)Z	on_masterrZ
statestorerrrr�is_ipa_client_configured3sr)F)
�__doc__Zloggingr�rZipaplatform.pathsrZ	getLogger�__name__rr
rrrrrr�<module>s