%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/cloudinit/distros/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/cloudinit/distros/__pycache__/__init__.cpython-312.pyc

�

\�`ff���$�ddlZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
mZddlm
Z
ddlmZmZmZmZmZmZmZmZmZmZddlmcmcmZddlmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%ddl&m'Z'm(Z(ddl)m*Z*dd	l+m,Z,dd
l-m.Z.ddl/m0Z0ddl1m2Z2m3Z3m4Z4dd
l5m6Z6ddl7m8Z8dZ9dgdgddgddgddgdgdggd�gd�dgddgd�Z:ejve<�Z=ej|d �Z?gd!�Z@ej�ej�zd"zZCeeeDeeeeeDeeeDeeDfeeeDeeDeffZEGd#�d$eF�ZGGd%�d&e j�ej��'�ZJd(eDd)eKfd*�ZLd(eDfd+�ZMde%j�fd,�ZOd-�ZPd.eDd/eeJfd0�ZQ	d3d1�ZRd2�ZSy)4�N)�defaultdict)�suppress)�StringIO)
�Any�Dict�List�Mapping�MutableMapping�Optional�Set�Tuple�Type�Union)	�helpers�importer�net�persistence�ssh_util�subp�
temp_utils�
type_utils�util)�LinuxNetworking�
Networking)�PackageManager)�known_package_managers)�hosts)�+ALLOW_EC2_MIRRORS_ON_NON_AWS_INSTANCE_TYPES)�
activators�dhcp�	renderers)�parse_net_config_data)�Renderer�all�alpine�arch�debian�ubuntu�freebsd�	dragonfly�gentoo�cos�netbsd�openbsd)
�	almalinux�amazon�centos�
cloudlinux�	eurolinux�fedora�mariner�miraclelinux�openmandriva�photon�rhel�rocky�	virtuozzo)�opensusez
opensuse-leapzopensuse-microoszopensuse-tumbleweed�sle_hpcz	sle-micro�sles�suse�	openeuler�OpenCloudOS�	TencentOS)r%r&r'r)r+r-r.�redhatr?r@rAz#^[a-z][a-z]-(?:[a-z]+-)+[0-9][a-z]$)�chronyzsystemd-timesyncd�ntp�ntpdate�-c��eZdZy)�PackageInstallerErrorN)�__name__�
__module__�__qualname__���</usr/lib/python3/dist-packages/cloudinit/distros/__init__.pyrIrI|s��rNrIc
���eZdZUdZdZdZdZdZdZdZ	dZ
d	gZiZe
eeeeffed
<dZeZeeed<d
ddd�Zej2ZdZdZdZeed<dZeeed<dZ eeed<d�Z!de"ddfd�Z#d�Z$de%de&e'ee(e)fe)ffd�Z*de%fd�Z+e,de-j\fd��Z/e,deee0jbfd ��Z2e,de3fd!��Z4d"e3fd#�Z5d$�Z6dkd%�Z7dkd&�Z8dkd'�Z9e:d(��Z;e<jzdld)��Z>d*�Z?d+�Z@dkd,�ZAdld-�ZBd.�ZCdmdeDfd/�ZEe<jzdkd0��ZFe<jzd1��ZGd2�ZHd3�ZIe<jzdkd4��ZJe<jzd5��ZKe<jzd6��ZLd7�ZMd8�ZNe:d9��ZOd:�ZPd;�ZQe,d<��ZRd=�ZSd>�ZTd?�ZUd@�ZVdA�ZWdB�ZXdmdC�ZYdDeZdEeDfdF�Z[dG�Z\dkdH�Z]dndI�Z^dkdJ�Z_dkdK�Z`dL�ZaebdkdM��ZcebddN�dOed	edPefdQ��ZddRedSedTedUefdV�ZedefdW�ZfdodXeZdYedZefd[�Zge:d\ed]ed^ed_ed`edeZfda��Zhe,db��Zieij�dc��Zie:dde"dee"fde��Zke:dde"dee"fdf��Zle:dde"dge"dee"fdh��Zme:dieddfdj��Zny)p�Distrozpython3-pipz/usr/libz
/etc/hostsz/etc/doas.confz"/etc/sudoers.d/90-cloud-init-usersz
/etc/hostnamez/usr/share/zoneinfoz	root:root�service�renderer_configsN�networking_clsz-Hz-Pz-r)�halt�poweroff�reboot�Fz/etc/resolv.conf�osfamily�dhclient_lease_directory�dhclient_lease_file_regexc�
�||_||_||_|j�|_t
j|_tj|_
tj|�|_
g|_d|_d|_y�N)�_paths�_cfg�namerT�
networkingr �ALL_DHCP_CLIENTS�dhcp_client_priority�iproute2�Iproute2�net_opsr�Runners�_runner�package_managers�_dhcp_client�_fallback_interface)�selfr`�cfg�pathss    rO�__init__zDistro.__init__�sj�������	���	�&*�&9�&9�&;���$(�$9�$9��!��(�(������u�-���68��� ���#'�� rN�ci_pkl_version�returnc���d|jvs|jjs|j�|_t|d�sd|_t|d�sd|_yy)z)Perform deserialization fixes for Distro.rarjNrk)�__dict__rarT�hasattrrjrk)rlrps  rO�	_unpicklezDistro._unpickle�sV���t�}�}�,�D�O�O�4L�4L�#�1�1�3�D�O��t�^�,� $�D���t�2�3�'+�D�$�4rNc��t|t�r|St|ttf�rt	|�dk(rt|�Std��)N�z?Invalid 'packages' yaml specification. Check schema definition.)�
isinstance�str�list�tuple�len�
ValueError)rl�entrys  rO�_validate_entryzDistro._validate_entry�sF���e�S�!��L�
���e�}�
-��5�z�Q���U�|�#��
'�
�	
rN�pkglistc��tt�}t�}|D]}t|t�rM|j	�D]9\}}|D]/}|j|�}	|t|j|��1�;�`|j|j|����t|�|fS#t$rtjd|�Y��wxYw)z�Transform the generic package list to package by package manager.

        Additionally, include list of generic packages
        zLCannot install packages under '%s' as it is not a supported package manager!)r�setrx�dict�itemsrr�add�KeyError�LOG�error)rlr��packages_by_manager�generic_packagesr~�package_manager�package_list�
definitions        rO�_extract_package_by_managerz"Distro._extract_package_by_manager�s���*�#�.�� #����	B�E��%��&�5:�[�[�]��1�O�\�&2��
�%)�%9�%9�*�%E�
�	�/� 6�� G��!�c�*�o���!�$�$�T�%9�%9�%�%@�A�!	B�"�'�(�*:�:�:�� (���I�I�!C� /���s�B+�+C
	�C
	c�:�d}|j|�\}}t�}|jD]�}|j|jt��}||z}|j|�|j
�s2tjd|j�|j|��|s��|j|�}	|j|	�|	rtj||	�t|	�|z
}��|j�D]{\}
}|
j|jD�cgc]}|j��c}vr�7|j|
j|j|j �j|����}|rt#||z��ycc}w)NzcFailed to install the following packages: %s. See associated package manager logs for more details.z"Package manager '%s' not available)r�)r�r�ri�get�	__class__�difference_update�	availabler��debugr`�update�install_packages�infor��from_configrhr_rI)
rlr��
error_messager�r��total_failed�manager�manager_packages�to_try�failed�manager_type�packages�ps
             rOr�zDistro.install_packages�s���
D�	�
�,�,�W�5�	
���
"%����,�,�	>�G�2�6�6��!�!�3�5� ��&�(8�8�F��*�*�6�2��$�$�&��	�	�>����M��#�#�F�+�����-�-�f�5�F�����'�������/� #�6�{�-=�=��+	>�2':�&?�&?�&A�	�"�L�(�� � �T�5J�5J�$K��Q�V�V�$K�K������(�(��L�L�$�)�)��"�"�8�"�4�
�		��'�
��(D�E�E���%Ls�(Fc��|jr|jS|j}tj|jdg�}|rpg}t
j
d|�|D]O}tjD]$}||jk(s�|j|��9t
jd|��Q|r|}|D]<}	|�|_t
j
d|j�|jcStj��#tjf$r#t
j
d|j�Y��wxYw)aaccess the distro's preferred dhcp client

        if no client has been selected yet select one - uses
        self.dhcp_client_priority, which may be overridden in each distro's
        object to eliminate checking for clients which will not be provided
        by the distro
        )�networkrcz.Using configured dhcp client priority list: %sz4Configured dhcp client %s is not supported, skippingzDHCP client selected: %szDHCP client not found: %s)
rjrcr�get_cfg_by_pathr_r�r�r rb�client_name�append�warning�NoDHCPLeaseMissingDhclientError)rlrc�config_priority�
found_clients�client_configured�client_class�clients       rO�dhcp_clientzDistro.dhcp_clientsN������$�$�$�
 $�8�8���.�.��I�I�:�B�
����M��I�I�@��
�&5�	
�!�$(�$9�$9��L�(�L�,D�,D�D�%�,�,�\�:���
�K�K�N�)��
	
��'4�$�+�	K�F�
K�$*�H��!��	�	�4�f�6H�6H�I��(�(�(�		K��2�2�4�4���8�8�:�
K��	�	�5�v�7I�7I�J�
K�s�>7D
�
4E�Ec��tj|jdd�}	tj|��S#tj
$rYywxYw)z=Return the configured network activator for this environment.)r�rN��priority)rr�r_r�select_activator�NoActivatorException)rlr�s  rO�network_activatorzDistro.network_activatorTsN���'�'��I�I�0�$�
��	��.�.��A�A���.�.�	��	�s�9�A�Ac���tj|jdd�}tj|��\}}t
j
d||�||jj|���}|S)N)r�r!r�z-Selected renderer '%s' from priority list: %s)�config)	rr�r_r!�selectr�r�rSr�)rlr�r`�
render_cls�renderers     rO�network_rendererzDistro.network_renderer_sj���'�'��I�I�/��
��%�+�+�X�>���j��	�	�;�T�8�	
��T�%:�%:�%>�%>�t�%D�E���rNr�c�&�|j|�yr])�render_network_state)rl�
network_stater�s   rO�_write_network_statezDistro._write_network_statels���%�%�m�4rNc���tjj|jt	|��}tjj|�st
d|�d|����|S)NzInvalid timezone z, no file found at )�os�path�join�tz_zone_dirry�isfile�IOError)rl�tz�tz_files   rO�
_find_tz_filezDistro._find_tz_fileosL���'�'�,�,�t�/�/��R��9���w�w�~�~�g�&��>@�'�J��
��rNc�:�|jj||�Sr])r_r�)rl�opt_name�defaults   rO�
get_optionzDistro.get_optionws���y�y�}�}�X�w�/�/rNc�"�||j|<yr])r_)rlr��values   rO�
set_optionzDistro.set_optionzs��#��	�	�(�rNc��|j||�}|j||j�|j|�yr])�_select_hostname�_write_hostname�hostname_conf_fn�_apply_hostname)rl�hostname�fqdn�writeable_hostnames    rO�set_hostnamezDistro.set_hostname}s;��!�2�2�8�T�B�����/��1F�1F�G����/�0rNc��t�S)z?Wrapper to report whether this distro uses systemd or sysvinit.)�uses_systemdrMrNrOr�zDistro.uses_systemd�s���~�rNc��t��r]��NotImplementedError)rl�command�args�pkgss    rO�package_commandzDistro.package_command�s
��
"�#�#rNc��|jD]D}|j�s!tjd|j��4	|j��Fy#t$r+}tjd|j|�Yd}~�wd}~wwxYw)Nz8Skipping update for package manager '%s': not available.z%Failed to update package using %s: %s)rir�r�r�r`�update_package_sources�	Exceptionr�)rlr��es   rOr�zDistro.update_package_sources�s}���,�,�	�G��$�$�&��	�	�N��L�L���
��.�.�0�	���
��	�	�;�W�\�\�1����
�s�A�	B	�!B�B	c�>�tj�d}|dvry|S)N�)�i386�i486�i586�i686r�)r��uname)rlr&s  rO�get_primary_archzDistro.get_primary_arch�s"���x�x�z�!�}���3�3���rNc�b�|jdg�}|s|j�}t||�S)N�package_mirrors)r�r��_get_arch_package_mirror_info)rlr&�mirror_infos   rOr�z$Distro._get_arch_package_mirror_info�s1���o�o�&7��<����(�(�*�D�,�[�$�?�?rNc�>�|j|�}t||��S)N)�data_sourcer�)r��_get_package_mirror_info)rlr&r��	arch_infos    rO�get_package_mirror_infozDistro.get_package_mirror_info�s&���6�6�t�<�	�'�#��
�	
rNc�*�tj�Sr])r�generate_fallback_config�rls rOr�zDistro.generate_fallback_config�s���+�+�-�-rNc��|j}t||��}|j||�|rKtj	d�|j
}|stj
d�y|j|�ytj	d�y)aApply the network config.

        If bring_up is True, attempt to bring up the passed in devices. If
        devices is None, attempt to bring up devices returned by
        _write_network_config.

        Returns True if any devices failed to come up, otherwise False.
        )r�z/Bringing up newly configured network interfacesz>No network activator found, not bringing up network interfacesTz3Not bringing up newly configured network interfacesF)r�r"r�r�r�r�r��bring_up_all_interfaces)rl�	netconfig�bring_upr�r�r�s      rO�apply_network_configzDistro.apply_network_config�s����(�(��-�i�(�K�
��!�!�-��:���I�I�G�H� $� 6� 6��$����)����5�5�m�D��
�I�I�K�L�rNc��t��r]r�)rl�locale�out_fns   rO�apply_localezDistro.apply_locale����!�#�#rNc��t��r]r�)rlr�s  rO�set_timezonezDistro.set_timezone�rrNc��y)Nz	127.0.0.1rMr�s rO�_get_localhost_ipzDistro._get_localhost_ip�s��rNc��t��r]r�r�s rO�
get_localezDistro.get_locale�s��!�#�#rNc��t��r]r�)rl�filenamer�s   rO�_read_hostnamezDistro._read_hostname�rrNc��t��r]r�)rlr�rs   rOr�zDistro._write_hostname�rrNc��t��r]r�r�s rO�_read_system_hostnamezDistro._read_system_hostname�rrNc���tjd|�	tjd|g�y#tj$rt	j
td|�YywxYw)Nz2Non-persistently setting the system hostname to %sr�z;Failed to non-persistently adjust the system hostname to %s)r�r�r�ProcessExecutionErrorr�logexc)rlr�s  rOr�zDistro._apply_hostname�sU��
	�	�	�@�(�	
�	��I�I�z�8�,�-���)�)�	��K�K��M��
�	�s�0�.A!� A!c�l�tj|jd|j�r|r|S|s|S|S)N�prefer_fqdn_over_hostname)r�get_cfg_option_boolr_�prefer_fqdn)rlr�r�s   rOr�zDistro._select_hostname�s;��
�$�$��	�	�6��8H�8H�
���K���K��rNc��g}|D]<}|tvrtdj|���|jt|��>|S)Nz&No distributions found for osfamily {})�
OSFAMILIESr}�format�extend)�family_list�distros�familys   rO�expand_osfamilyzDistro.expand_osfamily	sS����!�	/�F��Z�'� �<�C�C�F�K���
�N�N�:�f�-�.�	/��rNc��|}|j||�}|r1tjj|�r|j	|�}nd}|j�\}}g}|r||k7r|j
|�|r
||k(r||k7r|j
|�|r|r||k7rtjd||�yt|D�	cgc]}	|	s�|	��	c}	�}tjd|t|��|D]}
	|j||
��||vr|j!|�yycc}	w#t$rtjtd||
�Y�[wxYw)Nz6%s differs from %s, assuming user maintained hostname.z/Attempting to update hostname to %s in %s filesz!Failed to write hostname %s to %s)r�r�r��existsrrr�r�r�r�r�r|r�r�rrr�)rlr�r��prev_hostname_fn�applying_hostname�
prev_hostname�sys_fn�sys_hostname�update_files�f�fns           rO�update_hostnamezDistro.update_hostnamesi��$���(�(��4�8��������/?� @� �/�/�0@�A�M� �M�"&�!;�!;�!=������
�
�� 9���� 0�1���M�)�l�h�.F�����'�
�M�l�m�.K��H�H�H� ��
�

�
�|�9�!�q�A�9�:���	�	�=�����	
��	�B�
��$�$�X�r�2�	��\�!�� � �!2�3�"��#:���
�����<�h���
�s�>D"�D"�7D'�'%E�Ec���d}tjj|j�r3t	j
t
j|j��}n+t	j
d�}t
jd��}|j�}|j|�}d}|s|j|||�d}n�d}|D]<}d}	g}
t|�dk\r|d}	t|�dk\r|dd}
|	��0|	|k(s�6||
vs�;d}�>|r|t|�}|j||g�|j|�|D]H}t|�dk(r|j||d��'t|�dk\s�6|j|g|����J|ret!�}|r|j#d	|z�|j#d	|z�t
j$|j|j'�d
��yy)N��added��baseFTrXrrwz%s
i���mode)r�r�r �hosts_fnr�	HostsConfr�load_text_file�make_headerr�	get_entry�	add_entryr|rzr��del_entriesr�write�
write_file�getvalue)
rlr�r��header�eh�local_ip�	prev_info�need_changer~�
entry_fqdn�
entry_aliases�new_entries�contentss
             rO�update_etc_hostszDistro.update_etc_hostsUs�����
�7�7�>�>�$�-�-�(�����!4�!4�T�]�]�!C�D�B�����$�B��%�%�7�3�F��)�)�+���L�L��*�	�����L�L��4��2��K��K�"�

,��!�
� "�
��u�:��?�!&�q��J��u�:��?�$)�!�"�I�M��)�j�D�.@��=�0�&+��

,��"�9�o���"�"�D�(�#3�4����x�(�(�7�E��5�z�Q�����X�u�Q�x�8��U��q��$����X�6��6�	7�
��z�H�����v��0�1��N�N�6�R�=�)��O�O�D�M�M�8�+<�+<�+>�U�K�rNc�Z�|jstt�|_|jS)z7Allow distro to determine the preferred ntp client list)�_preferred_ntp_clientsrz�PREFERRED_NTP_CLIENTSr�s rO�preferred_ntp_clientszDistro.preferred_ntp_clients�s'���*�*�*.�/D�*E�D�'��*�*�*rNc�$�|jd�S)N�default_user)r�r�s rO�get_default_userzDistro.get_default_user�s�����~�.�.rNc�d�tj|�rtjd|�yd|vr|j	d�}nd}d|g}d|g}tj
�r"|j
d�|j
d�ddd	d
ddd
dddd�
}dddd�}dg}|jd�}	|	r�t|	t�r|	jd�}	t|	t�rtjd|�d�dd��|	D�
cgc]}
|
j���}	}
dj|	�|d<|jd�}|r|	j
|�|rG|	rE|	D]@}tj|�r�|j!|�tj#d||��Bd |j%�vrt|d �|d <t'|j)��D]�\}
}|
|vrZ|rXt|t�rH|j+||
|g�|
|vr|j+||
d!g��M|j+||
|g��d|
|vs�i|s�l|j
||
�|j
||
���|jd"�s|jd#�r#|j
d$�|j
d$�n"|j
d%�|j
d%�tj#d&|�	t-j,||�'�ycc}
w#t.$r"}tj0td(|�|�d}~wwxYw))z�
        Add a user to the system using standard GNU tools

        This should be overridden on distros where useradd is not desirable or
        not available.
        z!User %s already exists, skipping.N�
create_groupsT�useradd�--extrausersz	--commentz--homez--gidz--uidz--groupsz
--passwordz--shellz--expiredatez
--inactivez--selinux-user)
�gecos�homedir�
primary_group�uid�groups�passwd�shell�
expiredate�inactive�selinux_userz--no-user-groupz--systemz
--no-log-init)�
no_user_group�system�no_log_initrUrT�,z	The user z) has a 'groups' config value of type dict�22.3z=Use a comma-delimited string or array instead: group1,group2.��
deprecated�deprecated_version�
extra_messagerRz created group '%s' for user '%s'rS�REDACTED�no_create_homer[z-Mz-mzAdding user %s)�	logstringzFailed to create user %s)r�is_userr�r��pop�system_is_snappyr�r�rxry�splitr��	deprecate�stripr��is_group�create_groupr��keys�sortedr�rrr�r)rlr`�kwargsrM�useradd_cmd�log_useradd_cmd�useradd_opts�
useradd_flags�redact_optsrT�grR�group�key�valr�s                rO�add_userzDistro.add_user�s���<�<����H�H�8�$�?���f�$�"�J�J��7�M� �M� �$�'��$�d�+��� � �"����~�.��"�"�>�2�!��$�� �"��(�$�,�
��/� �*�
�
� �j�����H�%����&�#�&����c�*���&�$�'����!*�4�&�1#� #�'-�#4�	�*0�0�A�a�g�g�i�0�F�0� #�x�x��/�F�8��"�J�J��7�M���
�
�m�,��V��
O���}�}�U�+��%�%�e�,��I�I�@�%��N�
O��F�K�K�M�!���u�
�.�F�5�M��v�|�|�~�.�	;�H�C���l�"�s�z�#�s�/C��"�"�L��$5�s�#;�<��+�%�#�*�*�L��,=�z�+J�K�#�*�*�L��,=�s�+C�D��
�%�#��"�"�=��#5�6��&�&�}�S�'9�:�	;� �:�:�&�'�6�:�:�h�+?����t�$��"�"�4�(����t�$��"�"�4�(�	�	�	�"�D�)�	��I�I�k�_�=��[1��\�	��K�K��7��>��G��	�s�=K?�'L�	L/�
L*�*L/c���|jd�}|jdd�}gd�}|r|jd�|j|�tjd|�	t	j||d��\}}tjd	||�tj|�}|jd
d�}	|	S#t$r"}
tjtd|�|
�d}
~
wwxYw)
zD
        Add a snappy user to the system using snappy tools
        �snapuser�knownF)�snapzcreate-userz--sudoerz--jsonz--knownzAdding snap user %sT)re�capturez snap create-user returned: %s:%s�usernameNzFailed to create snap user %s)	r�r�r�r�rr�	load_jsonr�r)rlr`rpr|r}�create_user_cmd�out�err�jobjr�r�s           rO�
add_snap_userzDistro.add_snap_user�s���
�:�:�j�)���
�
�7�E�*��G����"�"�9�-����x�(�	�	�	�'��.�		�����?�D��J�S�#�
�I�I�8�#�s�C��>�>�#�&�D��x�x�
�D�1�H�
���	�	��K�K��<�d�C��G��	�s�#AB>�>	C)�C$�$C)c�Z�d|vr|j|fi|��S|j|fi|��d|vr|dr|j||d�d|vr|dr|j||dd��|jdd�r|j	|�d|vr|dr|j||d�d|vr>|dr|j
||d�n#|dd	urtjd
|�d�dd
��d|vr�|d}t|t�r|g}n)t|t�rt|j��}|�Lt|tttf�s"t j#dt%|��g}nt|�xsg}t'j(t|�|�d|vr�|jdg�}|st j#d||d�y|d}t&j*}|j-d|�}|j-d|�}t'j(t|�||��y)a�
        Creates or partially updates the ``name`` user in the system.

        This defers the actual user creation to ``self.add_user`` or
        ``self.add_snap_user``, and most of the keys in ``kwargs`` will be
        processed there if and only if the user does not already exist.

        Once the existence of the ``name`` user has been ensured, this method
        then processes these keys (for both just-created and pre-existing
        users):

        * ``plain_text_passwd``
        * ``hashed_passwd``
        * ``lock_passwd``
        * ``doas``
        * ``sudo``
        * ``ssh_authorized_keys``
        * ``ssh_redirect_user``
        r|�plain_text_passwd�
hashed_passwdT)�hashed�lock_passwd�doas�sudoFzThe value of 'false' in user z's 'sudo' configr^zUse 'null' instead.r_�ssh_authorized_keyszZInvalid type '%s' detected for 'ssh_authorized_keys', expected list, string, dict, or set.�ssh_redirect_user�cloud_public_ssh_keysz^Unable to disable SSH logins for %s given ssh_redirect_user: %s. No cloud public-keys present.z$USERz
$DISABLE_USER)�options)r�rz�
set_passwdr�r��write_doas_rules�write_sudo_rulesrrjrxryr�rz�valuesr{r�r�r��typer�setup_user_keys�DISABLE_USER_OPTS�replace)rlr`rprn�
cloud_keys�
redirect_user�disable_options       rO�create_userzDistro.create_usersQ��,���%�4�%�%�d�5�f�5�5�	��
�
�d�%�f�%��&�(�V�4G�-H��O�O�D�&�)<�"=�>��f�$���)@��O�O�D�&��"9�$�O�G��:�:�m�T�*����T�"��V���f�~��%�%�d�F�6�N�;��V���f�~��%�%�d�F�6�N�;����5�(����!>�t�f�E$� $�'-�"7�	�!�F�*��/�0�D��$��$��v���D�$�'��D�K�K�M�*����!�$���c�(:�;��K�K�1��T�
�	��D��t�9�?��D��$�$�S��Y��5��&�(����$;�R�@�J�����L���.�/�	��!'�':� ;�
�!)�!;�!;��!/�!7�!7���!O��!/�!7�!7���!N���(�(��
�O�T�>��rNc�<�dd|gdd|gf}	td�|D��}	tj|�y
#t$r/}td|�d|D�cgc]}|d��	ncc}wc}�d	��|�d
}~wwxYw#t$r"}tjtd|�|�d
}~wwxYw)zL
        Lock the password of a user, i.e., disable password logins
        rUz-l�usermodz--lockc3�RK�|]}tj|d�s�|���!y�w)rN)r�which)�.0�tools  rO�	<genexpr>z%Distro.lock_passwd.<locals>.<genexpr>�s����J��d�j�j��a��6I�t�J�s�'�'zUnable to lock user account 'z '. No tools available.   Tried: r�.Nz&Failed to disable password for user %s)�next�
StopIteration�RuntimeErrorrr�rrr�)rlr`�
lock_tools�cmdr��cs      rOr�zDistro.lock_passwd{s���
 ��t�,�y�(�D�.I�J�
�	��J�
�J�J�C�	��I�I�c�N��
�	��"&�z�(B�!��1��(B��(B�D���
��	���	��K�K��E�t�L��G��	�s7�5�A0�	A-�
A(�A�A(�(A-�0	B�9B�Bc��	tjdd|g�y#t$r"}tjtd|�|�d}~wwxYw)NrUz--expirezFailed to set 'expire' for %s)rr�rrr�)rl�userr�s   rO�
expire_passwdzDistro.expire_passwd�s@��	��I�I�x��T�2�3���	��K�K��<�d�C��G��	�s��	A�A�Ac���|�d|��}dg}|r|jd�	tj||d|z��y#t$r"}tjt
d|�|�d}~wwxYw)N�:�chpasswd�-ezchpasswd for %s)�datarezFailed to set password for %sT)r�rr�rrr�)rlr�rUr��pass_stringr�r�s       rOr�zDistro.set_passwd�so��!%�v�.���l���
�J�J�t��	��I�I��+�1B�T�1I�
���	�	��K�K��<�d�C��G��	�s�;�	A&�A!�!A&�plist_inr�c�~�djd�|D��dz}dg|rdgngz}tj||��y)N�
c3�HK�|]\}}dj||g����y�w)r�N�r�)r�r`�passwords   rOr�z"Distro.chpasswd.<locals>.<genexpr>�s"����K���h����4��*�+�K�s� "r�r�)r�)r�r)rlr�r��payloadr�s     rOr�zDistro.chpasswd�sG���I�I�K�(�K�
��
�	��l��t�f�B�7���	�	�#�G�$rNc�z�d}tjd||�tj||�}|rutjd|j	d��|j	d�|k(rtjd�ytjd|j	d��ytjd	�y)
Nz�^(?:permit|deny)(?:\s+(?:nolog|nopass|persist|keepenv|setenv \{[^}]+\})+)*\s+([a-zA-Z0-9_]+)+(?:\s+as\s+[a-zA-Z0-9_]+)*(?:\s+cmd\s+[^\s]+(?:\s+args\s+[^\s]+(?:\s*[^\s]+)*)*)*\s*$z3Checking if user '%s' is referenced in doas rule %rz!User '%s' referenced in doas rulerXz'Correct user is referenced in doas ruleTz.Incorrect user '%s' is referenced in doas ruleFz/doas rule does not appear to reference any user)r�r��re�searchrw)rlr��rule�rule_pattern�valid_matchs     rO�is_doas_rule_validzDistro.is_doas_rule_valid�s���
�	�	�	�	�A�4��	
��i�i��d�3����I�I�3�[�5F�5F�q�5I�
�� � ��#�t�+��	�	�C�D���	�	�D��%�%�a�(����I�I�G�H�rNc���|s|j}|D]4}|j||�r�d|�d|�d�}tj|�ydd|zg}|D]}|j	d|z��dj|�}|dz
}tjj|�s?tj�|g}	tj|dj|�d�	�y|tj|�vr	tj||�yy#t$r"}	tjtd
|�|	�d}	~	wwxYw#t$r"}	tjtd|�|	�d}	~	wwxYw)NzInvalid doas rule z for user 'z'', not writing any doas rules for user!r+z# cloud-init User rules for %s�%sr�� r/zFailed to write doas file %sz Failed to append to doas file %s)�doas_fnr�r�r�r�r�r�r�r rr4r9r�rr3�append_file)
rlr��rules�	doas_filer��msg�lines�contentrCr�s
          rOr�zDistro.write_doas_rules�s]������I��	�D��*�*�4��6�@D�T�K���	�	�#���	��5��<�=���	&�D��L�L����%�	&��)�)�E�"���4����w�w�~�~�i�(��(�(�*�G�4�H�
����	�4�9�9�X�+>�U�K�
�d�1�1�)�<�<���$�$�Y��8�=��	�
����C�!?��K����
�����K�K��?����G��	�s0�6'D�6D<�	D9�D4�4D9�<	E'�E"�"E'c�b�d}d}tjj|�rtj|�}d}d}|j�D]u}|j
�}tjd|�}|s�,|jd�j
�}|s�Ntjj|�}||k(s�sd}n|s�	|sGddtjd��d	|zdg}	d
j|	�}tj||d�nDdtjd��d	|zdg}	d
j|	�}tj||�tj!d||�tj&|d�y#t"$r"}
tj$td
|�|
�d}
~
wwxYw)Nr+FTz^[#|@]includedir\s+(.*)$rXz?# See sudoers(5) for more information on "#include" directives:r,r-z#includedir %sr�r�zAdded '#includedir %s' to %szFailed to write %si�)r�r�r rr3�
splitlinesrkr�r�rw�abspathr4r�r9r�r�r�r�r�
ensure_dir)rlr��	sudo_base�sudoers_contents�base_exists�
found_include�line�
include_match�included_dirr�r�s           rO�ensure_sudo_dirzDistro.ensure_sudo_dir�s�������
�7�7�>�>�)�$�#�2�2�9�=���K��
�$�/�/�1�	�D��:�:�<�D��I�I�&A�4�H�M� ��(�.�.�q�1�7�7�9�L����7�7�?�?�<�8�L��t�#� $�
��	��
�"�5���(�(�g�6�(�D�1��
�E�(,�y�y��'7�$��O�O�I�/?��G���(�(�g�6�(�D�1��	�E�(,�y�y��'7�$��$�$�Y�0@�A��	�	�8�$�	�J�	
����e�$���
����C�!5�y�A����
�s�B$F�	F.�F)�)F.c��|s|j}dd|zg}t|ttf�r|D]}|j	|�d|����nJt|t
�r|j	|�d|���n#d}t
|tj|�z��dj|�}|dz
}|jtjj|��tjj|�s>tj �|g}	tj"|dj|�d�y|tj*|�vr	tj,||�yy#t$$r"}	tj&t(d|�|	�d}	~	wwxYw#t$$r"}	tj&t(d|�|	�d}	~	wwxYw)	Nr+z# User rules for %s� z1Can not create sudoers rule addition with type %rr�r�zFailed to write sudoers file %sz#Failed to append to sudoers file %s)�
ci_sudoers_fnrxrzr{r�ry�	TypeErrorr�obj_namer�r�r�r��dirnamer rr4r9r�rr�r3r�)
rlr�r��	sudo_filer�r�r�r�rCr�s
          rOr�zDistro.write_sudo_rules(s�����*�*�I�
�!�D�(�
���e�d�E�]�+��
5������d�3�4�
5�
��s�
#��L�L�D�%�0�1�E�C��C�:�#6�#6�u�#=�>�?�?��)�)�E�"���4������R�W�W�_�_�Y�7�8��w�w�~�~�i�(�� � �"���H�
����	�4�9�9�X�+>��F�
�d�1�1�)�<�<���$�$�Y��8�=��	�
����C�!B�I�N����
�����K�K��B�I���G��	�s0�&E%�
F�%	F�.F�F�	F>�F9�9F>c�J�d|g}tj�r|jd�|sg}tj|�rtjd|�n,	t
j|�tjd|�t|�dkDrf|D]`}tj|�stjd||��0t
jdd	d
||g�tjd||��byy#t$rtjtd|�Y��wxYw)N�groupaddrOz(Skipping creation of existing group '%s'zCreated new group %szFailed to create group %srzCUnable to add group member '%s' to group '%s'; user does not exist.r�z-az-GzAdded user '%s' to group '%s')rrhr�rlr�r�rr�r�rr|rf)rlr`�members�
group_add_cmd�members     rOrmzDistro.create_groupQs��#�T�*�
�� � �"�� � ��0���G��=�=����K�K�B�D�I�
D��	�	�-�(����/��6�
�w�<�!��!�
H���|�|�F�+��K�K�1���	���	�	�9�d�D�$��?�@����8�&�$�G�
H���	�
D����C�!<�d�C�
D�s�+C;�;$D"�!D"c���d|j|g}	|dk7rdt|�z}||gz}|r|j	|�|S#t$r}td|�d��|�d}~wwxYw)N�shutdown�nowz+%dz;power_state[delay] must be 'now' or '+m' (minutes). found 'z'.)�shutdown_options_map�intr}r�r�)rlr0�delay�messager�r�r�s       rO�shutdown_commandzDistro.shutdown_commandqs���t�8�8��>�?��	���~���E�
�*���%�� ����K�K�� �����	��"'�*���
��	�s�A�	A�
A�Ac�|�|j}|j�sd|vr|dg}tj|d|��Sy)zX
        Reload systemd startup daemon.
        May raise ProcessExecutionError
        �	systemctlz
daemon-reloadT�r�rcsN)�init_cmdr�r)�clsr�r�r�s    rO�reload_initzDistro.reload_init�sB���<�<��������!8��_�-�C��9�9�S�$�C�8�8�"9rN)r��action�
extra_argsc	��|j}|j�sd|vrdg}d|gd|gd|gd|gd|gd|gd|gd	|gd
�}n|dg|dg|dg|dg|dg|dg|dg|d	gd
�}t|�t||�z}tj|d|��S)
z�
        Perform the requested action on a service. This handles the common
        'systemctl' and 'service' cases and may be overridden in subclasses
        as necessary.
        May raise ProcessExecutionError
        r��stop�start�enable�disable�restartzreload-or-restartzreload-or-try-restart�status)r�r�r�r�r��reloadz
try-reloadr�Tr�)r�r�rzr)r�r�rRr�r�r��cmdsr�s        rO�manage_servicezDistro.manage_service�s����<�<��������!8�#�}�H���)�!�7�+�#�W�-�%�w�/�%�w�/�.��8�6��@�#�W�-�	�D�!�&�)�!�7�+�"�G�,�#�V�,�#�Y�/�"�I�.�&�	�2�"�H�-�	�D��8�n�t�D��L�1�1���y�y��d��4�4rN�layout�model�variantr�c�n�|j�rtjdd||||g�yt��)N�	localectlzset-x11-keymap)r�rr�)rlrrrr�s     rO�
set_keymapzDistro.set_keymap�s<�������I�I��$�����
�	
�&�'�'rNc��tjd��}tj|d�s|Stj
j
|jdd�S)NT)�	needs_exe�noexecz
cloud-init�clouddir)r�get_tmp_ancestorr�
has_mount_optr�r�r��usr_lib_exec)rl�tmp_dirs  rO�get_tmp_exec_pathzDistro.get_tmp_exec_path�sD���-�-��=���!�!�'�8�4��N��w�w�|�|�D�-�-�|�Z�H�HrNr�r��cwdc
�v�|rd|�d�nd}tjdd|d|dzdj|�zgfi|��S)	a`
        Perform a command as the requested user. Behaves like subp()

        Note: We pass `PATH` to the user env by using `env`. This could be
        probably simplified after bionic EOL by using
        `su --whitelist-environment=PATH ...`, more info on:
        https://lore.kernel.org/all/20180815110445.4qefy5zx5gfgbqly@ws.net.home/T/
        zcd z && r+�surGz-czenv PATH=$PATH r�)rr�)rlr�r�rrp�	directorys      rO�do_aszDistro.do_as�sX��(+�c�#��d�O��	��y�y������-�-�����0A�A�
�	
��	
�		
rNr��
lease_file�pid_file�	interface�config_filec	�2�|ddd|d|ddg	|rd||gzS|gzS)Nz-1z-vz-lfz-pfz-sfz	/bin/truez-cfrM)r�rrrrs     rO�build_dhclient_cmdzDistro.build_dhclient_cmd�sS��
���������

�1<�e�[�)�
,�
N�
	N�CL��
N�
	NrNc��|j�Etj�|_|js tj	d|j
�|jS)zADetermine the network interface used during local network config.z0Did not find a fallback interface on distro: %s.)rkr�find_fallback_nicr�r�r`r�s rO�fallback_interfacezDistro.fallback_interface�sN���#�#�+�'*�'<�'<�'>�D�$��+�+����F��I�I���'�'�'rNc��||_yr])rk)rlr�s  rOrzDistro.fallback_interface�s
��#(�� rN�pidc���tj|d�}|�$tt�5t	|�cddd�Sy#1swYnxYwt
j
d||��%)�=Return the parent pid of a process by parsing /proc/$pid/statr�Nz&/proc/%s/stat has an invalid ppid [%s]�rQ�_get_proc_stat_by_indexrr}r�r�r��r�matchs  rO�
get_proc_ppidzDistro.get_proc_ppid��\���.�.�s�A�6�����*�%�
"��5�z�
"�
"��
"�
"���K�K�@�#�u�M��	�>�Ac���tj|d�}|�$tt�5t	|�cddd�Sy#1swYnxYwt
j
d||��%)r �Nz&/proc/%s/stat has an invalid pgid [%s]r!r#s  rO�
get_proc_pgidzDistro.get_proc_pgid	r&r'�fieldc��	tjd|zd��j�}tjd|�}|st
j
d||�yt|j|��S#t$r!}t
j
d||�Yd}~yd}~wt$rt
j
d||�YywxYw)	z�
        parse /proc/$pid/stat for a specific field as numbered in man:proc(5)

        param pid: integer to query /proc/$pid/stat for
        param field: field number within /proc/$pid/stat to return
        z
/proc/%s/statT)�quietz,^(\d+) (\(.+\)) ([RSDZTtWXxKPI]) (\d+) (\d+)z*/proc/%s/stat has an invalid contents [%s]Nz Failed to load /proc/%s/stat. %sz4Unable to match field %s of process pid=%s (%s) (%s))rr3rkr�r�r�r�r�rwr��
IndexError)rr+r�r$r�s     rOr"zDistro._get_proc_stat_by_indexs���	��.�.��#�%�T���e�g�
��I�I�?���E�����@�#�w����u�{�{�5�)�*�*���	D��K�K�:�C��C�C����	��K�K�F�����
��	�s$�AA4�A4�4	C�=B�%C�C�devicec���d}tjd�rd|g}n3tjd�rdd|g}ntjddd���tj|�y)N�ejectz/lib/udev/cdrom_idz
--eject-media�eject_media_cmdzeject command not foundz.neither eject nor /lib/udev/cdrom_id are found)r��description�reason)rr�r)r/r�s  rO�eject_mediazDistro.eject_media4s_�����:�:�g���F�#�C�
�Z�Z�,�
-�'��&�A�C��,�,�%�5�G��
�
	
�	�	�#�rNr])NN)F)z/etc/sudoers)r+)orJrKrL�pip_package_namerr1r�r�r�r��
default_ownerr�rSr	ryr
r�__annotations__rFrrTrrr�rdrerf�_ci_pkl_versionr�resolve_conf_fnrZrr[ror�rur�PackageListr
rrrr�r��propertyr �
DhcpClientr�r�NetworkActivatorr�r#r�r�r�r�r�r��staticmethodr��abc�abstractmethodr�r�r�r�r�r��boolr�rrrr	rr�rr�r�rr)rDrHrKrzr�r�r�r�r�rzr�r�r�r�r�rmr��classmethodr�r�rrrrr�setterr%r*r"r5rMrNrOrQrQ�s���$���L��H��G�8�M�&��'�K��M��{�H�?A��g�c�>�#�s�(�#;�;�<�A�!��'6�N�D��$�6�%)�d�d�K�����G��O��K�(�O��M�/3��h�s�m�2�04��x��}�3�
(�,��,��,� 	
�;�"�;�	�t�D��(�#�-�.��3�	4�;�83F��3F�j�95�T�_�_�95��95�v��8�D��1L�1L�,M�#N�����
�(�
��
�5�H�5��0�$�1�
����	���$��$�
��@�
�.����8	���$��$�	���$��$��$�	���$��$�	���$��$�	���$��$��"�����?4�B)L�V�+��+�/�r�h�6_�B�&��(%��%�t�%��@"�H/%�b'�RH�@� �9��9��>B�"5��"5�#&�"5�58�"5��"5�H
(��
(�S�
(�3�
(��
(�I�3�I�
�T�
��
�3�
�*�N��N��N��N��	N�
�N�
�
N��N�&�	(��	(����)��)���3��8�C�=������3��8�C�=������S�����#�����@��C��D���rNrQ)�	metaclass�url�transformationsc�Z�	tjj|�}|j}|�y|D]}||�}|��|cS|}|j
�dj
||j
�}tjj|j|���S#t$rYywxYw)a�
    Apply transformations to a URL's hostname, return transformed URL.

    This is a separate function because unwrapping and rewrapping only the
    hostname portion of a URL is complex.

    :param url:
        The URL to operate on.
    :param transformations:
        A list of ``(str) -> Optional[str]`` functions, which will be applied
        in order to the hostname portion of the URL.  If any function
        (regardless of ordering) returns None, ``url`` will be returned without
        any modification.

    :return:
        A string whose value is ``url`` with the hostname ``transformations``
        applied, or ``None`` if ``url`` is unparsable.
    Nz{}:{})�netloc)	�urllib�parse�urlsplitr}r��portr�
urlunsplit�_replace)rFrG�parts�new_hostname�transformation�
new_netlocs      rO�&_apply_hostname_transformations_to_urlrTDs���&����%�%�c�*���>�>�L����)���%�l�3�����J���J��z�z���^�^�J��
�
�;�
��<�<�"�"�5�>�>��>�#D�E�E��'����s�B�	B*�)B*c�F��tdz�d�d��fd�d�g}t||�S)aH
    Given a mirror URL, replace or remove any invalid URI characters.

    This performs the following actions on the URL's hostname:
      * Checks if it is an IP address, returning the URL immediately if it is
      * Converts it to its IDN form (see below for details)
      * Replaces any non-Letters/Digits/Hyphen (LDH) characters in it with
        hyphens
      * Removes any leading/trailing hyphens from each domain name label

    Before we replace any invalid domain name characters, we first need to
    ensure that any valid non-ASCII characters in the hostname will not be
    replaced, by ensuring the hostname is in its Internationalized domain name
    (IDN) representation (see RFC 5890).  This conversion has to be applied to
    the whole hostname (rather than just the substitution variables), because
    the Punycode algorithm used by IDNA transcodes each part of the hostname as
    a whole string (rather than encoding individual characters).  It cannot be
    applied to the whole URL, because (a) the Punycode algorithm expects to
    operate on domain names so doesn't output a valid URL, and (b) non-ASCII
    characters in non-hostname parts of the URL aren't encoded via Punycode.

    To put this in RFC 5890's terminology: before we remove or replace any
    characters from our domain name (which we do to ensure that each label is a
    valid LDH Label), we first ensure each label is in its A-label form.

    (Note that Python's builtin idna encoding is actually IDNA2003, not
    IDNA2008.  This changes the specifics of how some characters are encoded to
    ASCII, but doesn't affect the logic here.)

    :param url:
        The URL to operate on.

    :return:
        A sanitized version of the URL, which will have been IDNA encoded if
        necessary, or ``None`` if the generated string is not a parseable URL.
    r�c�4�tj|�rdS|Sr])r�
is_ip_address�r�s rO�<lambda>z&_sanitize_mirror_url.<locals>.<lambda>�s���!2�!2�8�!<���(�rNc�B�|jd�jd�S)N�idna�ascii)�encode�decoderXs rOrYz&_sanitize_mirror_url.<locals>.<lambda>�s������0�7�7��@�rNc�8��dj�fd�|D��S)Nr+c3�.�K�|]}|�vr|nd���y�w�rGNrM)r�r��acceptable_charss  �rOr�z9_sanitize_mirror_url.<locals>.<lambda>.<locals>.<genexpr>�s#�����!
�45��&�&�A�C�/�!
�s�r�)r�rbs �rOrYz&_sanitize_mirror_url.<locals>.<lambda>�s������!
�9A�!
�
�rNc�P�djd�|jd�D��S)Nr�c3�>K�|]}|jd����y�wra)rk)r��parts  rOr�z9_sanitize_mirror_url.<locals>.<lambda>.<locals>.<genexpr>�s����"
� $�D�J�J�s�O�"
�s�)r�rirXs rOrYz&_sanitize_mirror_url.<locals>.<lambda>�s%�����"
�(0���s�(;�"
�
�rN)�LDH_ASCII_CHARSrT)rFrGrbs  @rO�_sanitize_mirror_urlrgos=���L'��,��	K�	A�	
�	
��O�"2�#��G�GrNc��|si}i}|ro|jrc|j|d<tj|j�r5|jdd}tr	d|z|d<n|jdk(rd|z|d<|r|j
r|j
|d<i}|j
di�j�D]
\}}|||<�|j
d	i�j�D]C\}}g}	|D]'}
	|
|z}t|�}|��|	j|��)||	�}|s�?|||<�Etjd
|�|S#t$rY�_wxYw)N�availability_zoner���r��
ec2_region�ec2�region�failsafer�zfiltered distro mirror info: %s)
ri�
_EC2_AZ_REr$r�
platform_typermr�r�r�rgr�r�r�)r�r��
mirror_filter�substrk�resultsr`�mirror�
searchlist�mirrors�tmpl�founds            rOr�r��s������E��{�4�4�%0�%B�%B��!�"����K�9�9�:�$�6�6�q��<�J�:�&*�Z�&7��l�#��*�*�e�3�&*�Z�&7��l�#��{�)�)�%�,�,��h���G�#���
�B�7�=�=�?����f����
��(�O�O�H�b�9�?�?�A�"���j����	'�D�
�����*�&�1�F��!����v�&�	'��g�&���!�G�D�M�"� �I�I�/��9��N���
��
�s�2E�	E�
Ec�X�d}|D]"}|jd�}||vr|cSd|vs�!|}�$|S)N�archesr�)r�)r�r&r��itemrzs     rOr�r��sD���G�������(�#���6�>��K�����G���NrNr`rqc��tj|dtgdg�\}}|std|�d|�d���tj|d�}t|d�}|S)Nr+rQz!No distribution found for distro z (searched �)r)r�find_modulerJ�ImportError�
import_module�getattr)r`�locs�looked_locs�modr�s     rO�fetchr��sb�� �,�,�T�B��>�H�:�N��D�+����[�
"�
�	
��
 �
 ��a��
)�C�
�#�x�
 �C��JrNc�t�tj|t|�j�dz�|r�|r�tj
j
|�}|stj
j|�s.|rtj|�t	j||�ytj||�y)Nr�)rr9ry�rstripr�r��islinkr �del_file�symlink�copy)r�r��tz_conf�tz_localr�s     rO�set_etc_timezoner��s���	�O�O�G�S��W�^�^�-��4�5��G�������)���������1���
�
�h�'��J�J�w��)��
�I�I�g�x�(�
rNc��	tjd�}tj|j�S#t
$rYywxYw)Nz/run/systemd/systemF)r��lstat�stat�S_ISDIR�st_moder�)�ress rOr�r�s;����h�h�,�-���|�|�C�K�K�(�(������s�36�	A�A)Nz
/etc/timezonez/etc/localtime)Tr@�loggingr�r�r��string�urllib.parserJ�collectionsr�
contextlibr�ior�typingrrrr	r
rrr
rr�cloudinit.net.netops.iproute2r�netopsrd�	cloudinitrrrrrrrr�cloudinit.distros.networkingrr�4cloudinit.distros.package_management.package_managerr�*cloudinit.distros.package_management.utilsr�cloudinit.distros.parsersr�cloudinit.featuresr�
cloudinit.netrr r!�cloudinit.net.network_stater"�cloudinit.net.rendererr#�ALL_DISTROSr�	getLoggerrJr��compilerorG�
ascii_letters�digitsrfryr;r�rI�CloudInitPickleMixin�ABCMetarQrzrTrg�search_for_mirrorr�r�r�r�r�rMrNrO�<module>r�s�����	�	��
��#������1�0�
�
�
�E�O�M�+�J�5�5�=�+����j�
�H���"��;�'�����j��{��	
���!�;�/�E#�
�J�g����!���R�Z�Z�=�
>�
�J���&�&����6��<�����I���M���c��O���s�D��I�~�	����s�D��I�w�&�	'�(�	*���	�I�	�A�[�
-�
-����A�H&(F��(F�d�(F�V8H�c�8H�x"��1G�1G�0�f	�	��	��V��	�9I��"rN

Zerion Mini Shell 1.0