__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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�5�
��%SrSSKrSSKrSSKJrJr SSKrSSKJrJ	r	 SSK
Jr SSKJ
r
 SSKJr SSKJr \R$"\5rS	rS
S/\S/S
.r\\S'SrSrS\S\
S\S\SS4
SjrSrSrSrSSjr S\!S\S\\4Sjr"g)z>LXD: configure lxd with ``lxd init`` and optionally lxd-bridge�N)�List�Tuple)�subp�util)�Cloud)�Config)�
MetaSchema)�PER_INSTANCE�lxdbr0�cc_lxd�ubuntu�lxd)�id�distros�	frequency�activate_by_schema_keys�metac�\�/n[U[5(d(URS[U5RS35 [U[5(d(URS[U5RS35 [U[
5(d(URS[U5RS35 U(aKU(dU(a=U(aS/O/nXA(aS/O/-
nURSSR
U535 U(a[S	R
U55eg
)z}Validate user-provided lxd network and bridge config option values.

@raises: ValueError describing invalid values provided.
z/lxd.init config must be a dictionary. found a '�'z1lxd.bridge config must be a dictionary. found a 'z.lxd.preseed config must be a string. found a 'zlxd.initz
lxd.bridgezMUnable to configure LXD. lxd.preseed config can not be provided with key(s): z, z. N)�
isinstance�dict�append�type�__name__�str�join�
ValueError)�init_cfg�
bridge_cfg�preseed_str�errors�incompat_cfgs     �9/usr/lib/python3/dist-packages/cloudinit/config/cc_lxd.py�supplemental_schema_validationr$!s��
�F��h��%�%��
�
���h��(�(�)��
,�	
�
�j�$�'�'��
�
���j�!�*�*�+�1�
.�	
�
�k�3�'�'��
�
���k�"�+�+�,�A�
/�	
���J�'/�
�|�R���*���"�<���
�
�
�!�Y�Y�|�4�5�
7�	
������6�*�+�+��c
��Sn/SQnUHPnURU5(dMURSURSS5<S[X5<3/5 MR [R"U5 g![R
a USS:wae[RS	5 [R"/S
Q5 UVs/sHoDRS5(aMUPM Os snfnn[R"U5 gf=f)
z�Set up lxd if init config is given.

:param init_cfg: dict of lxd init configuration options to provide
    to `lxd init --auto`
)�network_address�network_port�storage_backend�storage_create_device�storage_create_loop�storage_pool�trust_password)r�initz--autoz--�_�-�=r)�lvmzqCloud-init doesn't use thinpool by default on Ubuntu due to LP #1982780. This behavior will change in the future.)�lxc�storage�create�defaultr2zlvm.use_thinpool=falsez--storage-backendN)	�get�extend�replacerr�ProcessExecutionError�LOG�info�
startswith)r�	init_keys�cmd�k�x�new_cmds      r#�handle_init_cfgrCDs���"�I�$�C�
���<�<��?�?��J�J�Q�Y�Y�s�C�%8�#�h�k�:J�K�L�M����	�	�#����%�%���%�&�%�/�����
D�	
�	
�	�	�
�		
�"�K�c����6I�)J�1�c��K��K�	
�	�	�'��3�s%�A5�5AD�C(�!C(�'D�D�name�cfg�cloud�args�returnc
��URS5nU(d[RSU5 g[U[5(d"[S[
U5RS35e[R"U5 URS05nURSS5nURS05n[XWU5 [R"S5(d[R"/S	Q5 [XV5n	[!U	5(aUR"R%U	5 [R"/SQ5 U(a[R"/S
QUS9 gU(a[)U5 SnU(Ga�URS[*5n[,R.R1S5(a�[R"U5(a�[3U5n
[RSU5 SR5U
R75VVs/sHup�SU<SU<3PM snn5S-n[R"S/US9 [R<"S5 [RS5 [R"/SQ5 g[?U5unn[AU[CU5[CU5[CU5S9 U(a0[RSSR5U55 [EU5 U(a1[RSSR5U55 [EU5 ggU(a[SU-5eg![Ran[S
U-5UeSnAff=f![Ra n
[R'SX�5 Sn
A
gSn
A
ff=fs snnf![8a" [R:"[SU-5 GN�f=f)Nrz8Skipping module named %s, not present or disabled by cfgz*lxd config must be a dictionary. found a 'rr.�preseed��bridge)�snap�installrz#Failed to install lxd from snap: %sz!failed to install packages %s: %s)r�	waitreadyz
--timeout=300)rr.z	--preseed)�datazdebconf-communicaterDz/etc/default/lxd-bridgezSetting lxd debconf via %s�
zset � zFailed to run '%s' for lxd withz Running dpkg-reconfigure for lxd)zdpkg-reconfigurerz--frontend=noninteractive)�net_name�did_initr5�attachzCreating lxd bridge: %sz!Setting up default lxd bridge: %sz*Unable to configure lxd bridge without %s.)#r7r;�debugrrrrrr�wait_for_snap_seededr$r�whichr:�RuntimeError�get_required_packages�len�distro�install_packages�warningrC�_DEFAULT_NETWORK_NAME�os�path�exists�bridge_to_debconfr�items�	Exception�logexc�del_file�
bridge_to_cmd�maybe_cleanup_default�bool�_lxc)rDrErFrG�lxd_cfgrr r�e�packages�exc�
dconf_commrS�debconfr@�vrP�
cmd_create�
cmd_attachs                   r#�handleruxs+���g�g�e�n�G���	�	�F��	
�	��g�t�$�$����g��'�'�(��
+�
�	
�
	���e�$��{�{�6�2�&�H��+�+�i��,�K����X�r�*�J�"�8��E��:�:�e���	��I�I�0�1�
%�X�;�H�
�8�}�}�	��L�L�)�)�(�3�
	�I�I�3�4���	�	�.�[�A�����!�'�J���>�>�&�*?�@��
�7�7�>�>�3�4�4�����:
�:
�
(�
�3�G�
��	�	�6�
�C��I�I�:A�-�-�/�J�/�$�!�Q��1�-�/�J������	�	�0�1��=�
�M�M�3�4�
�I�I�8�9��I�I�N�O�&3�:�%>�"�J�
�!�!��h���J�'��J�'�	
���	�	�3�S�X�X�j�5I�J��Z� ���	�	�7����*�9M���Z� �	�
��8�:�E�
�	
�
��O�)�)�	��5��9���
��	���)�)�	��K�K�;�X�K���	��8K��
�
�����:�Z�G��
�sT�M�M3�4N0�N*
�(!N0�M0�M+�+M0�3N'�N"�"N'�*N0�0(O�Oc��0nURS5S:XaSUS'SUS'U$URS5S:Xa SUS'SUS	'URS
5US'U$URS5S:XGaGSUS'URS
5(aURS
5US'URS5(a~SUS
'URS5US'URS5US'URS5US'URS5US'URS5US'URSS5US'URS5(aBSUS'URS5US'URS5US'URSS5US'URS 5(aURS 5US!'U$[S"URS5-5e)#N�mode�none�falsezlxd/setup-bridgerKzlxd/bridge-name�existing�truezlxd/use-existing-bridgerD�new�ipv4_addresszlxd/bridge-ipv4zlxd/bridge-ipv4-address�ipv4_netmaskzlxd/bridge-ipv4-netmask�ipv4_dhcp_firstzlxd/bridge-ipv4-dhcp-first�ipv4_dhcp_lastzlxd/bridge-ipv4-dhcp-last�ipv4_dhcp_leaseszlxd/bridge-ipv4-dhcp-leases�ipv4_natzlxd/bridge-ipv4-nat�ipv6_addresszlxd/bridge-ipv6zlxd/bridge-ipv6-address�ipv6_netmaskzlxd/bridge-ipv6-netmask�ipv6_natzlxd/bridge-ipv6-nat�domainzlxd/bridge-domain�invalid bridge mode "%s")r7rY)rrqs  r#rcrc�s���G��~�~�f���'�&-��"�#�%'��!�"�R�N�O
����	�:�	-�&-��"�#�-3��)�*�%/�^�^�F�%;��!�"�H�N�E
����	�5�	(�&,��"�#��>�>�&�!�!�)3����)?�G�%�&��>�>�.�)�)�)/�G�%�&�1;����1O�G�-�.�1;����1O�G�-�.�4>�N�N�!�5�G�0�1�4>�>�>� �4�G�/�0�6@�^�^�"�6�G�1�2�.8�^�^�J��-O�G�)�*��>�>�.�)�)�)/�G�%�&�1;����1O�G�-�.�1;����1O�G�-�.�-7�^�^��G�.�G�)�*��>�>�(�#�#�+5�>�>�(�+C�G�'�(�
�N��5�
���v�8N�N�O�Or%c��URS5S:XagURS[5n/nSSUSS/nURS5S	:XaSU4$URS5S
:wa[SURS5-5eSSU/nURS
5(a�URS5(a�URSURS
5<SURS5<35 URSS5S:XaURS5 URS5(aQURS5(a;URS5<SURS5<3nURSU-5 OURS5 URS5(atURS5(a^URSURS5<SURS5<35 URS5S:XaURS5 OURS5 URS5(a#URS URS5-5 URS!S"5nUS":waURS#U35 X#4$)$Nrwrx)NNrD�networkzattach-profiler6�eth0rzr|r�r5r}r~z
ipv4.address=�/r�r{z
ipv4.nat=truerr�r0zipv4.dhcp.ranges=%szipv4.address=noner�r�z
ipv6.address=r�z
ipv6.nat=truezipv6.address=noner�z
dns.domain=%s�mtu���zbridge.mtu=)r7r_rYr)r�bridge_namersrt�
dhcp_ranger�s      r#rhrhsD���~�~�f���'���.�.��)>�?�K��J��-�{�I�v�N�J��~�~�f���+��Z����~�~�f���&��5�
���v�8N�N�O�O��X�{�3�J��~�~�n�%�%�*�.�.��*H�*H�����~�~�n�-�z�~�~�n�/M�
O�	
�
�>�>�*�f�-��7����o�.��>�>�+�,�,�����2
�2
����0�1����/�0��J�
���3�j�@�A�����-�.��~�~�n�%�%�*�.�.��*H�*H�����~�~�n�-�z�~�~�n�/M�
O�	
�
�>�>�*�%��/����o�.��	���-�.��~�~�h������/�J�N�N�8�,D�D�E��.�.���
#�C�
�b�y����K��u�-�.��!�!r%c���S[RRSS5[RRSS5S.n[R"S/[	U5-S/-US	9 g)
N�C�HOMEz/root�USER�root)�LC_ALLr�r�r3z
--force-local)�
update_env)r`�environr7r�list)r?�envs  r#rkrkJsS����
�
���v�w�/��
�
���v�v�.��C�
	�I�I�u�g��S�	�!�_�$5�5�#�Fr%c�\�U[:wdU(dgSnSnU(aMSn[SSX/5 [RX�XG5 Sn[SSU/5 [RX�U5 U(a)S
n[SSS
XE/5 [RX�XG5 gg![R
a2n	U	RS	:waU	e[RX�XF5 Sn	A	NrSn	A	ff=f![R
a2n	U	RS	:waU	e[RX�XF5 Sn	A	gSn	A	ff=f)z�Newer versions of lxc (3.0.1+) create a lxdbr0 network when
'lxd init --auto' is run.  Older versions did not.

By removing any that lxd-init created, we simply leave the add/attach
code intact.

https://github.com/canonical/lxd/issues/4649Nz"failed. Assuming it did not exist.z
succeeded.z/Detach of lxd network '%s' from profile '%s' %sr�zdetach-profilezDeletion of lxd network '%s' %s�delete�z+Removal of device '%s' from profile '%s' %s�profile�device�remove)r_rkr;rVrr:�	exit_code)
rSrTr5rUr��nic_name�fail_assume_enoent�	succeeded�msgrms
          r#ririSs���(�(���=���I�
�?��
	0��)�-�x�A�B��I�I�c�W�8�4�C��)�X�x�0�1��I�I�c�Y�/�
�;��	B��)�X�x��C�D��I�I�c�W�8�	���)�)�	B��{�{�a�����I�I�c�W�A�A��	B���)�)�	B��{�{�a�����I�I�c�W�A�A��	B�s/�$B�5%C%�C"�0(C�C"�%D+�9(D&�&D+rr c��/n/n0nSU;aURUS5 U(aSU;a[R"U5nURS/5H/nURS5(dMURUS5 M1 SU;a,[R"S5(dURS5 SU;a,[R"S5(dURS	5 S
U;a,[R"S5(dURS5 U$![R[[
4a [RS5 GNf=f)
z&identify required packages for installr)�
storage_poolsz|lxd.preseed string value is not YAML.  Unable to determine required storage driver packages to support storage_pools config.�driver�zfszzfsutils-linuxr2�lvcreate�lvm2�btrfsz
mkfs.btrfszbtrfs-progs)r�yaml�	safe_load�	YAMLError�	TypeErrorrr;r^r7rrX)rr rn�storage_drivers�preseed_cfgr,s      r#rZrZ{s"���H�"$�O��K��H�$����x�(9�:�;���+�5�	��.�.��5�K�$�����<�����H�%�%��"�"�<��#9�:�=�
����
�
�5�(9�(9����(�)�����
�
�:�(>�(>�������/�!�$�*�*�\�*B�*B����
�&��O�����	�:�6�	��K�K�1�
�	�s�D"�"4E�E)r6r�)#�__doc__�loggingr`�typingrrr��	cloudinitrr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar	�cloudinit.settingsr
�	getLoggerrr;r_r�__annotations__r$rCrr�rurcrhrkrirrZ�r%r#�<module>r�s���E��	��� �!�#�.�+�
����!�� ����z�� %�w�	��j�� ,�F1�hb
��b
�6�b
�%�b
�t�b
��b
�J.�b9"�xG�EK�%B�P�D��s��t�C�y�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