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 : /usr/lib/python3.6/site-packages/cloudinit/config/__pycache__/ |
Upload File : |
3 ��b� � @ sH d Z ddlmZ ddgZdgZdZdd� Zed d d fd d�Zdd � 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-CERTc C sT d} yt j ddgdd� d} W n0 t jk rN } z|jdkr>� W Y d d }~X nX | S )NFzrhn-profile-syncz --verbose)�captureT� )r ZProcessExecutionErrorZ exit_code)Zalready_registered�e� r �"/usr/lib/python3.6/cc_spacewalk.py� is_registered% s r Nc C s� |d k r|j d|| � dg}|jdd| g� |jdt|�g� |rV|jdt|�g� |rl|jdt|�g� |r�|jdt|�g� tj|d d � d S )Nz;Registering using `rhnreg_ks` profile '%s' into server '%s'Z rhnreg_ksz--serverUrlzhttps://%s/XMLRPCz --profilenamez--proxyz--sslCACertz--activationkeyF)r )�info�extend�strr )�serverZprofile_nameZca_cert_path�proxy�log�activation_key�cmdr r r �do_register3 s r c C sz d|kr|j d| � d S |d }|jd�}|rj|jjt� t� svt||jjdd�|jd�||jd�d� n|j d | � d S ) NZ spacewalkz=Skipping module named %s, no 'spacewalk' key in configurationr T)Zfqdnr r )r r r zOSkipping module named %s, 'spacewalk/server' key was not found in configuration) �debug�getZdistroZinstall_packages�required_packagesr r Z datasourceZget_hostname)�nameZcfgZcloudr Z_argsZspacewalk_serverr r r �handleM s&