__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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�K��F�%SrSSKrSSKrSSKrSSKJrJr SSKJrJ	r	J
r
JrJr SSK
Jr SSKJr SSKJr SSKJr \R*"\5r\rS	rS
r/SQrSS
S/SSSS.S\S/SSSS.S\S/SSSS.SS/SSSS.SS/SSSS.S.rSSS.S	/SS.S.SS S!S".0S#S0S S!S".S$.S#S0S#S0S%.SSSS&.0SS'S00S	SSS(.S)S/SSS*.S+S,S-/S-S.S/.S0.S#S0S S!S".S$.S-00S#S0S	SS.S1S0S2.S#S0S	SS.S1S 0S2.S#S0SS	S&.S S!S".S2.S#S0S#S0S%.S#S0S	SS.S1S 0S2.SS'S00S3.r\\\4\S4'S5Hr \S6\\ 'M
 S7Hr \S8\\ 'M
 S9Hr \S:\\ 'M
 S;\\S/S<.r!\\S='\""/S>Q5r#S?r$S@\4SAjr%SLSBjr&SMSCjr'SDr(SNSEjr)SFr*SG\SH\SI\SJ\+S@S4
SKjr,g)OzNTP: enable and configure ntp�N)�Dict�Mapping)�subp�
temp_utils�	templater�
type_utils�util)�Cloud)�Config)�
MetaSchema)�PER_INSTANCEz
/etc/ntp.conf�)�	almalinux�alpine�aosc�
azurelinux�centos�
cloudlinux�cos�debian�	eurolinux�fedora�freebsd�mariner�miraclelinux�openbsd�	openeuler�OpenCloudOS�openmandriva�opensuse�opensuse-microos�opensuse-tumbleweed�
opensuse-leap�photon�rhel�rocky�sle_hpc�	sle-micro�sles�	TencentOS�ubuntu�	virtuozzo�chronydz/etc/chrony.conf�chronyzchrony.conf.{distro})�	check_exe�confpath�packages�service_name�
template_name�template�ntpd�ntpzntp.conf.{distro}�ntpdatez/etc/ntpd.confzntpd.conf.{distro}z/lib/systemd/systemd-timesyncdz-/etc/systemd/timesyncd.conf.d/cloud-init.conf�systemd-timesyncdztimesyncd.conf)r.r6r7�openntpdr8z/etc/chrony/chrony.conf)r0r2)r0r1r2)r.r6z"/usr/lib/systemd/systemd-timesyncdz/etc/systemd/timesyncd.conf)r/r0r2)r.r8)r6r.)r2r0r0)r0r2r3z/usr/local/etc/chrony.conf)r0r1r2r3z/usr/local/sbin/ntpdz/usr/local/etc/ntp.confr9zntpd.conf.openbsd)r/r0r1r2r3)r6r.r9r/)r.r6r8)rrrrrrrrrrr r$r%r)r+�DISTRO_CLIENT_CONFIG)r!r"r#r )rrr&r%)r'r(r)�cc_ntp)�id�distros�	frequency�activate_by_schema_keys�meta)r/r0r1r2c��[n[R"[5nX;a[R"X!U/SS9nU$)z�Construct a distro-specific ntp client 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)r:�copy�NTP_CLIENT_CONFIGr	�
mergemanydict)�distro�dcfg�cfgs   �9/usr/lib/python3/dist-packages/cloudinit/config/cc_ntp.py�distro_ntp_client_configsrK
s;�� �D�
�)�)�%�
&�C�
�~�� � �#�F�|�!4�d�C���J��returnc�n�[UR5nU(a.US:wa([RSU5 UR	U05$URSS5n0nUS:Xa�URHXnUR	U5n[R"UR	S55(dM@[RSU5 Un O U(d7URSn[RSU5 UR	U05nU$[RSU5 UR	U05nU$)	z�Determine which ntp client is to be used, consulting the distro
   for its preference.

@param ntp_client: String name of the ntp client to use.
@param distro: Distro class instance.
@returns: Dict of the selected ntp client or {} if none selected.
�autoz4Selected NTP client "%s" via user-data configuration�
ntp_clientr/z+Selected NTP client "%s", already installedrz<Selected distro preferred NTP client "%s", not yet installedz1Selected NTP client "%s" via distro system config)	rK�name�LOG�debug�get�
get_option�preferred_ntp_clientsr�which)rPrG�
distro_cfg�distro_ntp_client�	clientcfg�clientrIs       rJ�select_ntp_clientr\s#��+�6�;�;�7�J��j�F�*��	�	�B�J�	
��~�~�j�"�-�-��)�)�,��?���I��F�"��2�2�F��.�.��(�C��z�z�#�'�'�+�.�/�/��	�	�A�6�� �	��3���1�1�!�4�F��I�I�N��
�#���v�r�2�I���
	�	�	�?��	
��N�N�#4�b�9�	��rLc�X�[R"U5(agUcS/nU"U5 g)aPInstall ntp client 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 ['ntp'].
@param check_exe: string.  The name of a binary that indicates the package
the specified package is already installed.
Nr6)rrW)�install_funcr1r/s   rJ�install_ntp_clientr_Ms+���z�z�)�������7����rLc��[RRU5(a[R"XS-5 gg)z�Rename any existing ntp client config file

@param confpath: string. Specify a path to an existing ntp client
configuration file.
z.distN)�os�path�existsr	�rename�r0s rJ�rename_ntp_confrf^s-��
�w�w�~�~�h������H��0�1� rLc	��/nUnUS:XaSnOUS:XdUS:XaSn[[5HNnURSR[	U5/U/-S/-Vs/sH
oD(dMUPM sn55 MP U$s snf)z�Generate a list of server names to populate an ntp client configuration
file.

@param distro: string.  Specify the distro name
@returns: list: A list of strings representing ntp servers for this distro.
r)r rr��.zpool.ntp.org)�range�NR_POOL_SERVERS�append�join�str)rG�names�pool_distro�x�ns     rJ�generate_server_namesrshs���
�E��K�
���!��	�8�	�v��4���
�?�
#��
����H�H� ��V�H��}�4��7G�G�M�G�q�1��G�M�
�	
�$��L��	Ns�
A?�(A?c	��U(d/nU(d/nU(d/nU(d/nU(dU(dUS:XagU(d=US:Xa7US:Xa1[U5n[RSSRU55 O>U(d7U(d0[U5n[RSSRU55 U(d[	S5eU(dU(d[	S	5eUUUUS
.n	U(a.[
R"SSS
9n
U
Sn[R"XxS9 [R"XvU	5 U(a[R"U5 gg)a�Render a ntp client configuration for the specified client.

@param distro_name: string.  The distro class name.
@param service_name: string. The name of the NTP client service.
@param servers: A list of strings specifying ntp servers. Defaults to empty
list.
@param pools: A list of strings specifying ntp pools. Defaults to empty
list.
@param allow: A list of strings specifying a network/CIDR. Defaults to
empty list.
@param peers: A list nodes that should peer with each other. Defaults to
empty list.
@param path: A string to specify where to write the rendered template.
@param template_fn: A string to specify the template source file.
@param template: A string specifying the contents of the template. This
content will be written to a temporary file before being used to render
the configuration file.

@raises: ValueError when path is None.
@raises: ValueError when template_fn is None and template is None.
rNrr5z%Adding distro default ntp servers: %s�,z*Adding distro default ntp pool servers: %sz Invalid value for path parameterz$Not template_fn or template provided)�servers�pools�allow�peersztemplate_name-z.tmpl)�prefix�suffix�)�content)rsrRrSrm�
ValueErrorr�mkstempr	�
write_filer�render_to_file�del_file)�distro_namer2rvrwrxryrb�template_fnr4�params�tfiles           rJ�write_ntp_config_templater��s��@�������������5�[�E�%9���{�h�.�<�6�3I�(��4���	�	�9�3�8�8�G�;L�M���%�k�2���	�	�8�#�(�(�5�/�	
���;�<�<��x��?�@�@�����	�F���"�"�*:�7�K���A�h������6�
���[��7���
�
�k�"�rLc��/n[R[UR555nU(a9SR	[U55nUR
SRUS95 OA[URS5URS5/5(dUR
S5 [UR55GHupESU-nUS:XaB[U[U[5/5(d UR
S	RXeS
95 MQMSUS:Xa7[U[5(d UR
SRXeS
95 M�M�US
;a<UcM�[U[5(d UR
SRXeS
95 M�M�[U[5(aM�UR
SRXeS
95 GM
 U(a'[SRSR	U5S95eg)a;Validate user-provided ntp:config option values.

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

@param ntp_config: Dictionary of configuration value under 'ntp'.

@raises: ValueError describing invalid values provided.
z, z(Missing required ntp:config keys: {keys})�keysr4r3zJEither ntp:config:template or ntp:config:template_name values are requiredzntp:config:r0z6Expected a config file path {keypath}. Found ({value}))�keypath�valuer1zHExpected a list of required package names for {keypath}. Found ({value}))r4r3Nz5Expected a string type for {keypath}. Found ({value})z$Invalid ntp configuration:\n{errors}�
)�errors)�REQUIRED_NTP_CONFIG_KEYS�
difference�setr�rm�sortedrl�format�anyrT�items�all�
isinstancern�listr~)�
ntp_configr��missingr��keyr�r�s       rJ�supplemental_schema_validationr��s����F�&�1�1�#�j�o�o�6G�2H�I�G���y�y����)���
�
�6�=�=�4�=�H�	
��	���
�	#�Z�^�^�O�%D�E���	�
�
�
�	
��Z�-�-�/�0�
���#�%���*����z�%��5�6�7�7��
�
�'�'-�v�g�v�'K��8�
�J�
��e�T�*�*��
�
�'�'-�v�g�v�'K��+�
�1�
1��}���e�S�)�)��
�
�'�'-�v�g�v�'K��*�
�E�3�'�'��M�M�G�N�N�#�O��
�/1�:��3�:�:��y�y��(�
;�
�
�	
�rLrQrI�cloud�argsc
���SU;a[RSU5 gUSnUc0n[U[5(d,[	SR[R"U5S95eURSS5n[R"U5(a[RSU5 g[URS	5UR5n[R"XdRS
05/SS9n[U5 [URS5S
9 SnURS5(d`USR!SURR"5nUR%U5nU(dSURS5-n	[	U	5e[RSURS55 [RSURS/55 [RSURS/55 [RSURS/55 [RSURS/55 ['URR"URS5URS/5URS/5URS/5URS/5URS5UURS5S9	 [)URR*USUSS9 [R,"5(aoURS5S :wa:URR/S!S 5 URR/S#S 5 URR/S%US5 URR/S'US5 g![0R2a [R5S"5 N�f=f![0R2a [R5S$5 N�f=f![0R2an
[R7S&U
5 eSn
A
ff=f![0R2an
[R7S(U
5 eSn
A
ff=f))zEnable and configure ntp.r6z8Skipping module named %s, not present or disabled by cfgNzL'ntp' key existed in config, but not a dictionary type, is a {_type} instead)�_type�enabledTz)Skipping module named %s, disabled by cfgrP�configrBr0rer4r3z{distro}z#No template found, not rendering %szservice_name: %sr2zservers: %srvz	pools: %srwz	allow: %srxz	peers: %sry)r2rvrwrxryrbr�r4r1r/)r1r/r5�stopz Failed to stop base ntpd service�disablez#Failed to disable base ntpd service�enablez Failed to enable ntp service: %s�reloadz&Failed to reload/start ntp service: %s)rRrSr��dict�RuntimeErrorr�r�obj_namerTr	�is_falser\rGrFr�rf�replacerQ�get_template_filenamer�r_�install_packages�is_BSD�manage_servicer�ProcessExecutionError�warning�	exception)rQrIr�r��ntp_cfgr��ntp_client_configr�r3�msg�es           rJ�handler�s����C���	�	�F��	
�	��%�j�G������g��&�&��
$�$*�F��1D�1D�W�1M�F�$N�
�	
��k�k�)�T�*�G��}�}�W����	�	�=�t�D��*����L�!�5�<�<����*�*�	�K�K��"�5�6����#�#4�5��.�2�2�:�>�?��K�� � ��,�,�)�/�:�B�B�����)�)�
�
��1�1�-�@���5�#�'�'��8�9�
��s�#�#��I�I� �"3�"7�"7��"G�H��I�I�m�W�[�[��B�7�8��I�I�k�7�;�;�w��3�4��I�I�k�7�;�;�w��3�4��I�I�k�7�;�;�w��3�4��
�����&�*�*�>�:����I�r�*��k�k�'�2�&��k�k�'�2�&��k�k�'�2�&�
�
"�
"�:�
.��"�&�&�z�2�
��
���%�%�"�:�.�#�K�0��
�{�{�}�}�� � ��0�F�:�
@����+�+�F�F�;�
C����+�+�I�v�>�	��L�L�'�'��+�N�;�
��
���#�#��'��7�	
���-�-�
@����>�?�
@���-�-�
C����A�B�
C���)�)�	��M�M�<�a�@���	���%�%���
�
�>��B�
���sT�7N1�O �1P�Q�1)O�O� )P�P�P?�#P:�:P?�Q2�Q-�-Q2)Nr5)N)NNNNNNNN)-�__doc__rD�loggingra�typingrr�	cloudinitrrrrr	�cloudinit.cloudr
�cloudinit.configr�cloudinit.config.schemar�cloudinit.settingsr
�	getLogger�__name__rRr>�NTP_CONFrkr=rEr:rn�__annotations__rGr@�	frozensetr�rKr\r_rfrsr�r�r�r��rLrJ�<module>r�s���$���	� �C�C�!�#�.�+�
����!���	�������F�&��J� �/��
����G��,��
����K�!�,��
��$���-��
�6�C��+�)��
�C)��^2�%�
�
(��"�
�
�	�=�5�
�
�
�I�
�>�5�
�	�
�F�
�
�I�
�	�	�%�1�
��	��1�
��(�"�0�
�5�!�
�%�3�	
�0�1�#��&�0�
��,
�I�
�>�5�
�	�	�B��

�I�
�(�"�
�

�9�
��
�I�
�(�"�
�

�=�
��
�I�
�!'�O�D�=�5�
�	�
�F�
�
�I�
�	
�
�I�
�(�"�
�

�=�
�
�	��1�
��II)��d�3��9�o�I�VK�F�#7�
�#C��� �K�3�F�#7��#?��� �3�'�F�#7��#?��� �'���� %�w�	��j��%�9���
�/�W�/�d�"2��>��
�
�
�	
��
�J#�Z:
�z_��_�6�_�%�_�t�_��_rL

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