__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

[email protected]: ~ $
�

x[h�*�
�d�%SrSSKrSSKrSSKrSSKJr SSKJr SSKJ	r	J
r
 SSKrSSKJ
r
JrJrJrJr SSKJr SSKJr SS	KJr SS
KJrJrJr SSKJr SrS
/rSr S\/\S/S.r!\\"S'\RF"\$5r%"SS5r&S\S\'4Sjr(Sr)\SSS4S\4Sjjr*S\'S\S\S\+SS4
S jr,g)!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�puppet�	cc_puppetr)�id�distros�	frequency�activate_by_schema_keys�metac��\rSrSrSrSrg)�PuppetConstants�)c���XlX l[RR	US5Ul[RR	UR
S5UlX0lg)N�certszca.pem)�	conf_path�ssl_dir�os�path�join�ssl_cert_dir�
ssl_cert_path�csr_attributes_path)�self�puppet_conf_file�puppet_ssl_dirr's    �</usr/lib/python3/dist-packages/cloudinit/config/cc_puppet.py�__init__�PuppetConstants.__init__*sH��*��%���G�G�L�L���A����W�W�\�\�$�*;�*;�X�F���#6� �)r r'r%r&r!N)�__name__�
__module__�__qualname__�__firstlineno__r,�__static_attributes__�r.r+rr)s��
7r.r�cloud�actionc��Sn[H$nURRXS35 Un O U(d+[
R
SUSR[55 gg![Ra Mrf=f)z8Attempts to perform action on one of the puppet services�z.servicez0Could not '%s' any of the following services: %s�, N)�PUPPET_PACKAGE_NAMES�distro�manage_servicer�ProcessExecutionError�LOG�warningr$)r5r6�service_managed�puppet_names    r+�_manage_puppet_servicesrB7sz���O�+��	��L�L�'�'��-�x�0H�I�)�O��	,�����>���I�I�*�+�	
����)�)�	��	�s� A$�$A<�;A<c�Z�[R"USSU/5up#UR5$)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_bin�setting�out�_s    r+�get_config_valuerKIs)��
�Y�Y�
�H�g�w�?�
@�F�C��:�:�<�r.Tr;c��/nUbSU/nUbUSU/-
nU(aUS/-
n[R"USS9Rn[R"UR5SS9n[RRUS	5n[R"X�S
S9 [R"U/U-SS
9sSSS5 $!,(df   g=f)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�)�url�retriesT)�dir�	needs_exezpuppet-installi�)�modeF��capture)r
�readurl�contentsr	�tempdir�get_tmp_exec_pathr"r#r$r�
write_filer)	r;rN�version�
collection�cleanup�args�content�tmpd�tmpfs	         r+�install_puppet_aioraRs��� �D����g�������z�"�"�����
���� � �S�!�4�=�=�G�
�	�	��$�$�&�$�
�	
��w�w�|�|�D�"2�3������E�2��y�y�$��$���6�
�
�
�s
�#AB;�;
C	�name�cfgr]�returnc�&
�SU;a[RSU5 gUSn[R"USS5n[R"USS5n[R"USS5n[R"USS5n[R"US	S5n	[R"US
SS9n
[R"US
SS9n[R"US[
S9nUS:XaSn
SnSnOSn
SnSn[R"USU5nU(dU(a[R
S5 GOU(Ga
[RSU(aUOSU5 US:Xa�Uc�[HHn[[5 U(aUU//OU/nURRU5 UnSSS5  O U(d)[R
SSR[55 OaU(aUU//OU/nURRU5 O6US:Xa[URX�Xy5 O[R
SU5 Sn
[R"US[US55n[R"US[US55n[R"US[US55n[UUU5nS U;Gaj[R "UR"5n[$R&"5nUR)5Vs/sHnUR+5PM nnS!RU5nUR-[/U5UR"S"9 US R15GH�unnUS#:Xa�[R2"UR4S$5 [R6"UR4U
S5 [R2"UR85 [R6"UR8U
S5 [R:"UR<U5 [R6"UR<U
S5 O�UR15HtunnUS%:XaUUR?S&[@RB"55nUR?S'URE55nURG5nURIUUU5 Mv [RJ"UR"S(UR"-5 [R:"UR"URM55 GM� SU;a7[R:"URN[PRR"USSS)95 U(a[UUS*5 U
(a�[RS+5 US,/nS-U;a�US-n [WU [X[Z45(aUR]U 5 O[WU [^5(a UR]U Ra55 OJ[R
S.[cU 55 UR][d5 OUR][d5 [fRf"USS/9 U(a
[UUS05 gg!,(df   GM#=fs snf)1Nrz9Skipping module named %s, no 'puppet' configuration found�installTrZr[�install_type�packagesr\�execF)�default�
start_service�aio_install_url�aio�rootz/opt/puppetlabs/bin/puppetr�package_namez@Puppet install set to false but version supplied, doing nothing.z'Attempting to install puppet %s from %s�latestz+No installable puppet package in any of: %sr9z Unknown puppet install type '%s'�	conf_filerDr!�ssldirr'�csr_attributes�conf�
)�source�ca_certi��certnamez%fz%iz%s.old)�default_flow_style�enablezRunning puppet-agent�agent�	exec_argszOUnknown type %s provided for puppet 'exec_args' expected list, tuple, or stringrS�start)4r>�debugr�get_cfg_option_bool�get_cfg_option_str�AIO_INSTALL_URLr?r:rrr;�install_packagesr$rarKr�load_text_filer r�DefaultingConfigParser�
splitlines�lstrip�	read_filer�items�
ensure_dirr!�chownbynamer%rYr&�replace�socket�getfqdn�get_instance_id�lower�set�rename�	stringifyr'�yaml�dumprB�
isinstance�list�tuple�extend�str�split�type�PUPPET_AGENT_DEFAULT_ARGSr)!rbrcr5r]�
puppet_cfgrfrZr[rgr\�run�
start_puppetdrl�puppet_userrG�puppet_packagerorA�
to_installrqr!r'�p_constantsrV�
puppet_config�i�
cleaned_lines�cleaned_contents�cfg_name�o�v�cmd�cmd_argss!                                 r+�handler�vs����s���	�	�G��	
�	��X��J��&�&�z�9�d�C�G��%�%�j�)�T�B�G��(�(��\�4�H�J��*�*��N�J��L��&�&�z�9�d�C�G�
�
"�
"�:�v�u�
E�C��,�,��O�T��M��-�-��%���O�
�u����1�
�'�����
����*�*��N�N��L��w����N�	
�
��	�	�5��G�H��	
��:�%��#�#7�K�!�"7�8� '�*�7�3�4�"-��#�
���5�5�j�A�'2���9�8�$8�$��K�K�E��	�	�"6�7���29�l�G�,�-�|�n�����-�-�j�9�
�U�
"�����o�
�
�
�K�K�:�L�I��C��'�'��K�!1�*�h�!G��I��%�%��I�/�
�H�E��G��1�1�����%5�6���"�)�W�6I�J�K�����&�&�{�'<�'<�=���6�6�8�
�.6�-@�-@�-B�C�-B������-B�
�C��9�9�]�3������%�&�{�/D�/D�	 �	
�(��/�5�5�7�M�H�c��9�$����� 3� 3�U�;�� � ��!4�!4�k�6�J����� 8� 8�9�� � ��!9�!9�;��O����� 9� 9�3�?�� � ��-�-�{�F�� �I�I�K�D�A�q��J���I�I�d�F�N�N�,<�=���I�I�d�E�,A�,A�,C�D���G�G�I��!�%�%�h��1�5�(�
�K�K��%�%�x�;�3H�3H�'I�
�
�O�O�K�1�1�=�3J�3J�3L�M�C8�F�:�%�����+�+��I�I�j�!1�2�u�M�	
�
���x�0���	�	�(�)��7�#���*�$�!�+�.�H��(�T�5�M�2�2��
�
�8�$��H�c�*�*��
�
�8�>�>�+�,����!���N�	��
�
�4�5��J�J�0�1��	�	�#�u�%����w�/��w9�8��fDs�:.Y;�Z�;
Z	)-�__doc__�loggingr"r��
contextlibr�ior�typingrrr��	cloudinitrrr	r
r�cloudinit.cloudr�cloudinit.configr
�cloudinit.config.schemar�cloudinit.distrosrrr�cloudinit.settingsrr�r�r:r�__annotations__�	getLoggerr/r>rr�rBrKrar�r�r4r.r+�<module>r�s���2��	�
�����A�A�!�#�.�H�H�+�_��%�J��1����}�� (�z�	��j������!��7�7�
�5�
�#�
�$�	����!7��!7�Hr0��r0�6�r0�%�r0�t�r0��r0r.

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 208 B 0644
cc_ansible.cpython-313.pyc File 13.56 KB 0644
cc_apk_configure.cpython-313.pyc File 4.24 KB 0644
cc_apt_configure.cpython-313.pyc File 40.51 KB 0644
cc_apt_pipelining.cpython-313.pyc File 2.22 KB 0644
cc_bootcmd.cpython-313.pyc File 2.49 KB 0644
cc_byobu.cpython-313.pyc File 3.22 KB 0644
cc_ca_certs.cpython-313.pyc File 8.43 KB 0644
cc_chef.cpython-313.pyc File 13.83 KB 0644
cc_disable_ec2_metadata.cpython-313.pyc File 1.87 KB 0644
cc_disk_setup.cpython-313.pyc File 32.24 KB 0644
cc_fan.cpython-313.pyc File 2.97 KB 0644
cc_final_message.cpython-313.pyc File 3.59 KB 0644
cc_growpart.cpython-313.pyc File 23.64 KB 0644
cc_grub_dpkg.cpython-313.pyc File 5.97 KB 0644
cc_install_hotplug.cpython-313.pyc File 4.07 KB 0644
cc_keyboard.cpython-313.pyc File 1.86 KB 0644
cc_keys_to_console.cpython-313.pyc File 2.88 KB 0644
cc_landscape.cpython-313.pyc File 3.69 KB 0644
cc_locale.cpython-313.pyc File 1.57 KB 0644
cc_lxd.cpython-313.pyc File 15.8 KB 0644
cc_mcollective.cpython-313.pyc File 3.75 KB 0644
cc_mounts.cpython-313.pyc File 22.29 KB 0644
cc_ntp.cpython-313.pyc File 16.82 KB 0644
cc_package_update_upgrade_install.cpython-313.pyc File 5.19 KB 0644
cc_phone_home.cpython-313.pyc File 3.93 KB 0644
cc_power_state_change.cpython-313.pyc File 8.38 KB 0644
cc_puppet.cpython-313.pyc File 10.86 KB 0644
cc_reset_rmc.cpython-313.pyc File 5.26 KB 0644
cc_resizefs.cpython-313.pyc File 11.22 KB 0644
cc_resolv_conf.cpython-313.pyc File 3.49 KB 0644
cc_rh_subscription.cpython-313.pyc File 18.68 KB 0644
cc_rsyslog.cpython-313.pyc File 13.95 KB 0644
cc_runcmd.cpython-313.pyc File 1.77 KB 0644
cc_salt_minion.cpython-313.pyc File 4.9 KB 0644
cc_scripts_per_boot.cpython-313.pyc File 1.5 KB 0644
cc_scripts_per_instance.cpython-313.pyc File 1.51 KB 0644
cc_scripts_per_once.cpython-313.pyc File 1.49 KB 0644
cc_scripts_user.cpython-313.pyc File 1.47 KB 0644
cc_scripts_vendor.cpython-313.pyc File 1.63 KB 0644
cc_seed_random.cpython-313.pyc File 3.92 KB 0644
cc_set_hostname.cpython-313.pyc File 3.85 KB 0644
cc_set_passwords.cpython-313.pyc File 10.9 KB 0644
cc_snap.cpython-313.pyc File 4.79 KB 0644
cc_spacewalk.cpython-313.pyc File 3.37 KB 0644
cc_ssh.cpython-313.pyc File 11.57 KB 0644
cc_ssh_authkey_fingerprints.cpython-313.pyc File 5.25 KB 0644
cc_ssh_import_id.cpython-313.pyc File 5.2 KB 0644
cc_timezone.cpython-313.pyc File 1.35 KB 0644
cc_ubuntu_autoinstall.cpython-313.pyc File 1.81 KB 0644
cc_ubuntu_drivers.cpython-313.pyc File 5.34 KB 0644
cc_ubuntu_pro.cpython-313.pyc File 15.12 KB 0644
cc_update_etc_hosts.cpython-313.pyc File 2.77 KB 0644
cc_update_hostname.cpython-313.pyc File 2.49 KB 0644
cc_users_groups.cpython-313.pyc File 3.1 KB 0644
cc_wireguard.cpython-313.pyc File 9.03 KB 0644
cc_write_files.cpython-313.pyc File 6.27 KB 0644
cc_write_files_deferred.cpython-313.pyc File 1.82 KB 0644
cc_yum_add_repo.cpython-313.pyc File 5.27 KB 0644
cc_zypper_add_repo.cpython-313.pyc File 6.28 KB 0644
modules.cpython-313.pyc File 13.12 KB 0644
schema.cpython-313.pyc File 54.5 KB 0644
Filemanager