HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/lib/python3/dist-packages/cloudinit/config/__pycache__/cc_spacewalk.cpython-38.pyc
U

Ӈg�
�@s�UdZddlZddlmZddlmZddlmZddlm	Z	ddl
mZdd	d
dgedgd
�Ze	e
d<e�e�Zdd
dgZdgZdZdd�Zeddfdd�Zeeeedd�dd�ZdS)z*Spacewalk: Install and configure spacewalk�N)�subp)�Cloud)�Config)�
MetaSchema)�PER_INSTANCEZcc_spacewalkZrhelZfedoraZ	openeuler�	spacewalk)�id�distrosZ	frequencyZactivate_by_schema_keys�metaZredhatz	rhn-setupz'/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERTc
CsTd}ztjddgdd�d}Wn0tjk
rN}z|jdkr>�W5d}~XYnX|S)NFzrhn-profile-syncz	--verbose�ZcaptureT�)rZProcessExecutionErrorZ	exit_code)Zalready_registered�e�r�?/usr/lib/python3/dist-packages/cloudinit/config/cc_spacewalk.py�
is_registereds
rcCs�t�d||�dg}|�dd|g�|�dt|�g�|rN|�dt|�g�|rd|�dt|�g�|rz|�dt|�g�tj|d	d
�dS)Nz;Registering using `rhnreg_ks` profile '%s' into server '%s'Z	rhnreg_ksz--serverUrlzhttps://%s/XMLRPCz
--profilenamez--proxyz--sslCACertz--activationkeyFr)�LOG�info�extend�strr)�serverZprofile_nameZca_cert_path�proxy�activation_key�cmdrrr�do_register(s�r)�name�cfg�cloud�args�returncCszd|krt�d|�dS|d}|�d�}|rj|j�t�t�svt||jj	dd�j
|�d�|�d�d�nt�d	|�dS)
Nrz=Skipping module named %s, no 'spacewalk' key in configurationrT)Zfqdnrr)rrzOSkipping module named %s, 'spacewalk/server' key was not found in configuration)r�debug�getZdistroZinstall_packages�required_packagesrrZ
datasourceZget_hostnameZhostname)rrrrZspacewalk_serverrrr�handle@s*�
��r")�__doc__ZloggingZ	cloudinitrZcloudinit.cloudrZcloudinit.configrZcloudinit.config.schemarZcloudinit.settingsrr
�__annotations__Z	getLogger�__name__rr	r!Zdef_ca_cert_pathrrr�listr"rrrr�<module>s*�

�