403Webshell
Server IP : 23.254.227.96  /  Your IP : 216.73.216.7
Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64
User : viralblo ( 1001)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.6/site-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.6/site-packages/cloudinit/config/__pycache__/cc_spacewalk.cpython-36.pyc
3

��b��@sHdZddlmZddgZdgZdZdd�Zed	d	d	fd
d�Zdd
�Zd	S)a�
Spacewalk
---------
**Summary:** install and configure spacewalk

This module installs spacewalk and applies basic configuration. If the
``spacewalk`` config key is present spacewalk will be installed. The server to
connect to after installation must be provided in the ``server`` in spacewalk
configuration. A proxy to connect through and a activation key may optionally
be specified.

For more information about spacewalk see: https://fedorahosted.org/spacewalk/

**Internal name:** ``cc_spacewalk``

**Module frequency:** per instance

**Supported distros:** redhat, fedora

**Config keys**::

    spacewalk:
       server: <url>
       proxy: <proxy host>
       activation_key: <key>
�)�subpZredhatZfedoraz	rhn-setupz'/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERTcCsTd}ytjddgdd�d}Wn0tjk
rN}z|jdkr>�WYdd}~XnX|S)NFzrhn-profile-syncz	--verbose)�captureT�)rZProcessExecutionErrorZ	exit_code)Zalready_registered�e�r�"/usr/lib/python3.6/cc_spacewalk.py�
is_registered%s
rNcCs�|dk	r|jd||�dg}|jdd|g�|jdt|�g�|rV|jdt|�g�|rl|jdt|�g�|r�|jdt|�g�tj|d	d
�dS)Nz;Registering using `rhnreg_ks` profile '%s' into server '%s'Z	rhnreg_ksz--serverUrlzhttps://%s/XMLRPCz
--profilenamez--proxyz--sslCACertz--activationkeyF)r)�info�extend�strr)�serverZprofile_nameZca_cert_path�proxy�log�activation_key�cmdrrr�do_register3srcCszd|kr|jd|�dS|d}|jd�}|rj|jjt�t�svt||jjdd�|jd�||jd�d�n|jd	|�dS)
NZ	spacewalkz=Skipping module named %s, no 'spacewalk' key in configurationrT)Zfqdnr
r)r
rrzOSkipping module named %s, 'spacewalk/server' key was not found in configuration)	�debug�getZdistroZinstall_packages�required_packagesrrZ
datasourceZget_hostname)�nameZcfgZcloudrZ_argsZspacewalk_serverrrr�handleMs&
r)	�__doc__Z	cloudinitrZdistrosrZdef_ca_cert_pathrrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit