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/install/__pycache__/service.cpython-39.pyc
a

}�f,�@s�dZddlmZddlmZmZmZddlmZm	Z	dd�Z
dd�Zd	d
�Zdd�Z
d
d�Zdd�Zdd�Zdd�Zdd�ZeGdd�dejejej��ZGdd�de�ZdS)z
Base service installer module
���validate_domain_name)�common�core�typing)�group�knobcCst|dt��dhB|_|S)zj
    Decorator which makes an installer attribute appear only in the prepare
    phase of the install
    �__exclude__�enroll��getattr�setr	��obj�r�:/usr/lib/python3.9/site-packages/ipalib/install/service.py�prepare_onlysrcCst|dt��dhB|_|S)zi
    Decorator which makes an installer attribute appear only in the enroll
    phase of the install
    r	�preparerrrrr�enroll_onlysrcCst|dt��dhB|_|S)zT
    Decorator which makes an installer attribute appear only in master install
    r	�replica_installrrrrr�master_install_only srcCst|dt��dhB|_|S)zU
    Decorator which makes an installer attribute appear only in replica install
    r	�master_installrrrrr�replica_install_only(srcs.dd��t�j�f���fdd�t��D��S)Ncs�fdd�}t|�S)Ncst���dS�N)�AttributeError)�self��namerr�removed2sz&_does.<locals>.remove.<locals>.removed)�property)rrrrr�remove1sz_does.<locals>.removecs.i|]&}�tt�|�dt��vr|�|��qS)r	)rr
)�.0�n��arg�clsr rr�
<dictcomp>:s�z_does.<locals>.<dictcomp>)�type�__name__�dir)r%r$rr#r�_does0s��r*cCs
t|d�S)zl
    Returns installer class stripped of attributes not related to the prepare
    phase of the install
    r�r*�r%rrr�preparesAsr-cCs
t|d�S)zk
    Returns installer class stripped of attributes not related to the enroll
    phase of the install
    r
r+r,rrr�enrollsIsr.cCs
t|d�S)zZ
    Returns installer class stripped of attributes not related to master
    install
    rr+r,rrr�installs_masterQsr/cCs
t|d�S)z[
    Returns installer class stripped of attributes not related to replica
    install
    rr+r,rrr�installs_replicaYsr0c@s�eZdZdZdZeedddd�Zejdd��Zee	j
edd	d
dd�Zeedd
dd�Zejdd��Zeedddd�Z
ee	j
eddddd�Zeedddd�ZdS)�ServiceInstallInterfacez4
    Interface common to all service installers
    ZBasicNzZprimary DNS domain of the IPA deployment (not necessarily related to the current hostname)z--domain)�description�	cli_namescCst|�dSrr�r�valuerrr�domain_nameqsz#ServiceInstallInterface.domain_namezFQDN of IPA serverz--serverZSERVER)r2r3Zcli_metavarzcKerberos realm name of the IPA deployment (typically an upper-cased name of the primary DNS domain)z--realmcCst|dd�dS)NZrealm)Zentityrr4rrr�
realm_name�sz"ServiceInstallInterface.realm_namez�The hostname of this machine (FQDN). If specified, the hostname will be set and the system configuration will be updated to persist over reboot. By default the result of getfqdn() call from Python's socket module is used.z
--hostnamez&load the CA certificate from this filez--ca-cert-file�FILETz4Directory Manager password (for the existing master))�	sensitiver2)r(�
__module__�__qualname__�__doc__r2r�strr6Z	validatorr�ListZserversr7Z	host_nameZ
ca_cert_filesZdm_passwordrrrrr1asL�

��
�	
��r1c@s@eZdZdZeed�Zee�Zee�Zeeddd�Z	ee	�Z	dS)�ServiceAdminInstallInterfacez`
    Interface common to all service installers which require admin user
    authentication
    NT)r9)
r(r:r;r<rr=Z	principalrrZadmin_passwordrrrrr?�s��r?N)r<Zipalib.utilrZipapython.installrrrZipapython.install.corerrrrrrr*r-r.r/r0ZInstallableZInteractiveZ	Compositer1r?rrrr�<module>s$		�<