File: //lib/python3.9/site-packages/ipalib/install/__pycache__/service.cpython-39.pyc
a
}�f, � @ s� d Z ddlmZ ddlmZmZmZ ddlmZm Z dd� Z
dd� Zd d
� Zdd� Z
d
d� Zdd� Zdd� Zdd� Zdd� ZeG dd� dejejej��ZG dd� de�ZdS )z
Base service installer module
� ��validate_domain_name)�common�core�typing)�group�knobc C s t | 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_only s r c C s t | dt� �dhB | _| S )zi
Decorator which makes an installer attribute appear only in the enroll
phase of the install
r �preparer r r r r �enroll_only s r c C s t | dt� �dhB | _| S )zT
Decorator which makes an installer attribute appear only in master install
r �replica_installr r r r r �master_install_only s r c C s t | dt� �dhB | _| S )zU
Decorator which makes an installer attribute appear only in replica install
r �master_installr r r r r �replica_install_only( s r c s. dd� �t �j�f� ��fdd�t��D ��S )Nc s � fdd�}t |�S )Nc s t � ��d S �N)�AttributeError)�self��namer r �removed2 s z&_does.<locals>.remove.<locals>.removed)�property)r r r r r �remove1 s z_does.<locals>.removec s. i | ]&}� t t �|�d t� �v r|�|��qS )r )r r
)�.0�n��arg�clsr r r �
<dictcomp>: s �z_does.<locals>.<dictcomp>)�type�__name__�dir)r% r$ r r# r �_does0 s ��r* c C s
t | d�S )zl
Returns installer class stripped of attributes not related to the prepare
phase of the install
r �r* �r% r r r �preparesA s r- c C s
t | d�S )zk
Returns installer class stripped of attributes not related to the enroll
phase of the install
r
r+ r, r r r �enrollsI s r. c C s
t | d�S )zZ
Returns installer class stripped of attributes not related to master
install
r r+ r, r r r �installs_masterQ s r/ c C s
t | d�S )z[
Returns installer class stripped of attributes not related to replica
install
r r+ r, r r r �installs_replicaY s r0 c @ s� e Zd ZdZdZeedddd�Zejdd� �Zee j
e dd d
dd�Zeedd
dd�Zejdd� �Zeedddd�Z
ee j
e ddddd�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_namesc C s t |� d S r r �r �valuer r r �domain_nameq s z#ServiceInstallInterface.domain_namezFQDN of IPA serverz--serverZSERVER)r2 r3 Zcli_metavarzcKerberos realm name of the IPA deployment (typically an upper-cased name of the primary DNS domain)z--realmc C s t |dd� d S )NZrealm)Zentityr r4 r r r �
realm_name� s z"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__r2 r �strr6 Z validatorr �ListZserversr7 Z host_nameZ
ca_cert_filesZdm_passwordr r r r r1 a sL �
��
�
��r1 c @ s@ e Zd ZdZeed�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<