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/install/__pycache__/service.cpython-36.pyc
3

�d[e,�@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.6/service.py�prepare_onlysrcCst|dt��dhB|_|S)zi
    Decorator which makes an installer attribute appear only in the enroll
    phase of the install
    r�prepare)r
rr)rr
r
r�enroll_onlysrcCst|dt��dhB|_|S)zT
    Decorator which makes an installer attribute appear only in master install
    r�replica_install)r
rr)rr
r
r�master_install_only srcCst|dt��dhB|_|S)zU
    Decorator which makes an installer attribute appear only in replica install
    r�master_install)r
rr)rr
r
r�replica_install_only(srcs.dd��t�j�f���fdd�t��D��S)Ncs�fdd�}t|�S)Ncst���dS)N)�AttributeError)�self)�namer
r�removed2sz&_does.<locals>.remove.<locals>.removed)�property)rrr
)rr�remove1sz_does.<locals>.removecs.i|]&}�tt�|�dt��kr�|�|�qS)r)r
r)�.0�n)�arg�clsrr
r�
<dictcomp>:sz_does.<locals>.<dictcomp>)�type�__name__�dir)rrr
)rrrr�_does0sr$cCs
t|d�S)zl
    Returns installer class stripped of attributes not related to the prepare
    phase of the install
    r)r$)rr
r
r�preparesAsr%cCs
t|d�S)zk
    Returns installer class stripped of attributes not related to the enroll
    phase of the install
    r	)r$)rr
r
r�enrollsIsr&cCs
t|d�S)zZ
    Returns installer class stripped of attributes not related to master
    install
    r)r$)rr
r
r�installs_masterQsr'cCs
t|d�S)z[
    Returns installer class stripped of attributes not related to replica
    install
    r)r$)rr
r
r�installs_replicaYsr(c@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|�dS)N)r)r�valuer
r
r�domain_nameqsz#ServiceInstallInterface.domain_namezFQDN of IPA serverz--serverZSERVER)r*r+Zcli_metavarzcKerberos realm name of the IPA deployment (typically an upper-cased name of the primary DNS domain)z--realmcCst|dd�dS)NZrealm)Zentity)r)rr,r
r
r�
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))�	sensitiver*)r"�
__module__�__qualname__�__doc__r*r�strr-Z	validatorrZListZserversr.Z	host_nameZ
ca_cert_filesZdm_passwordr
r
r
rr)as<

r)c@s@eZdZdZeed�Zee�Zee�Zeeddd�Z	ee	�Z	dS)�ServiceAdminInstallInterfacez`
    Interface common to all service installers which require admin user
    authentication
    NT)r0)
r"r1r2r3rr4Z	principalrrZadmin_passwordr
r
r
rr5�sr5N)r3Zipalib.utilrZipapython.installrrrZipapython.install.corerrrrrrr$r%r&r'r(ZInstallableZInteractiveZ	Compositer)r5r
r
r
r�<module>s"		
: