CasperSecurity

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

o

쑛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,�

�"
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY