%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/cloudinit/config/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_salt_minion.cpython-312.pyc

�

���f��
���UdZddlZddlZddlmZmZmZddlmZddl	m
Z
ddlmZddl
mZddlmZd	eged
gd�Zeed<ej&e�ZGd
�d�Zdede
dededdf
d�Zy)z&Salt Minion: Setup and run salt minion�N)�safeyaml�subp�util)�Cloud)�Config)�
MetaSchema)�ALL_DISTROS)�PER_INSTANCE�cc_salt_minion�salt_minion)�id�distros�	frequency�activate_by_schema_keys�metac��eZdZdZd�Zy)�
SaltConstantsz>
    defines default distribution specific salt variables
    c�f�tj�rd|_d|_d|_nd|_d|_d|_tj
|d|j�|_tj
|d|j�|_tj
|d|j�|_y)	Nzpy-saltrz/usr/local/etc/saltzsalt-minionz	/etc/salt�pkg_name�
config_dir�service_name)r�
is_FreeBSDr�srv_name�conf_dir�get_cfg_option_str)�self�cfgs  �A/usr/lib/python3/dist-packages/cloudinit/config/cc_salt_minion.py�__init__zSaltConstants.__init__#s����?�?��%�D�M�)�D�M�1�D�M�*�D�M�)�D�M�'�D�M��/�/��Z����O��
��/�/���t�}�}�
��
��/�/������
��
�N)�__name__�
__module__�__qualname__�__doc__r�r rrrs���
r r�namer�cloud�args�returnc�.�d|vrtjd|�y|d}t|��}|jj	|j
g�t
j|j�d}d|vrdtjj|jd�}|jd�}t
j|tj|��d|vrdtjj|jd�}tj|jd��}	t
j||	�d|v�r/d|v�r*tjj|jd	�}
tjj!|
�s*tjj|jd
�}
|jd|
�}t
j"d�5t
j|�tjj|d
�}tjj|d�}
t
j||d�t
j|
|d�ddd�t%|xr|jd�dk(�}|jj'|rdnd|j(�|jj'|rdnd|j(�|st+j*gd�d��yy#1swY��xYw)Nrz?Skipping module named %s, no 'salt_minion' key in configuration)r�conf�minion�grains�
public_key�private_keyz
pki/minion�pki�pki_dir�?z
minion.pubz
minion.pem�file_client�local�enable�disable�restart�stop)z	salt-callz--localzstate.applyF)�capture)�LOG�debugr�distro�install_packagesrr�
ensure_dirr�os�path�join�get�
write_filer�dumps�isdir�umask�bool�manage_servicerr)r&rr'r(�s_cfg�const�minion_data�
minion_config�
grains_config�grains_data�pki_dir_defaultr1�pub_name�pem_name�
minion_daemons               r�handlerS9sR���C���	�	�M��	
�	��
��E��e�$�E�
�L�L�!�!�5�>�>�"2�3�	�O�O�E�N�N�#��K���������U�^�^�X�>�
��i�i��'�����
�x�~�~�k�'B�C��5�������U�^�^�X�>�
��n�n�U�Y�Y�x�%8�9�����
�{�3��u���%�!7��'�'�,�,�u�~�~�|�D���w�w�}�}�_�-� �g�g�l�l�5�>�>�5�A�O��)�)�I��7��
�Z�Z��
�	<��O�O�G�$��w�w�|�|�G�\�:�H��w�w�|�|�G�\�:�H��O�O�H�e�L�&9�:��O�O�H�e�M�&:�;�	<���A����
�6�'�A���M�
�L�L���!��y�%�.�.��
�L�L���"�	�������	
�	�	�9�5�I�	�%	<�	<�s
�(BL�L)r$�loggingr?�	cloudinitrrr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.distrosr	�cloudinit.settingsr
r�__annotations__�	getLoggerr!r:r�str�listrSr%r r�<module>r_s���
-��	�*�*�!�#�.�)�+���}�� -��	��j���g����!��
�
�6>J��>J�6�>J�%�>J�t�>J��>Jr 

Zerion Mini Shell 1.0