+
    ii*                         ^ RI t ^ RIt^ RIHt ^ RIHtHtHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt ] P                   ! ]4      tRtR	t ! R
 R]P*                  4      tRR lt]R3R ltRR ltRR ltR# )    N)List)distrossubputil)Apt)PackageManager)HostnameConf)CLOUDINIT_NETPLAN_FILEa8  # This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
z/etc/default/localec            	          a a ] tR t^!t oRtRRR]/tRR]R,          R]/RR]R,          R]R	R
//tRt	Rt
V 3R ltR tRR ltV 3R ltR tR tR tRR ltR tR tRR ltR tV3R lR ltRtVtV ;t# )Distroz/etc/hostnameeniz'/etc/network/interfaces.d/50-cloud-initnetplaneni_path
eni_headernetplan_pathnetplan_headerpostcmdsTz/var/lib/dhcpzdhclient\.\w+\.leasesc                   < \         SV `  WV4       R V n        RV n        RV n        \
        P                  ! V P                  V4      V n        V P                  .V n	        R# )debianzC.UTF-8N)
super__init__osfamilydefault_localesystem_localer   from_config_runneraptpackage_managers)selfnamecfgpaths	__class__s   &&&&:/usr/lib/python3/dist-packages/cloudinit/distros/debian.pyr   Distro.__init__7   sO    E* !'!??4<<57;xxj    c                    V P                   '       g   \        4       V n         V P                   '       d   V P                   # V P                  # )z9Return the default locale if set, else use default locale)r   read_system_localer   r   s   &r$   
get_localeDistro.get_localeB   sD     !!!!3!5D #'"4"4"4D	
:>:M:M	
r&   c                   V'       g   \         pV'       g   \        R4      hV P                  4       p\        P                  P                  V4      pV P                  '       * pV'       d'   \        P                  R\         V P                  4       M%\        P                  RV P                  \         4       VP                  4       VP                  4       8g  ;'       g    V'       * ;'       g    TpV'       * ;'       g    T;'       g    TpV'       d   \        VVVV P                  R7       M"\        P                  RVV P                  V4       V'       d#   \        VVVV P                  R7       RV n        R# R# )z]Apply specified locale to system, regenerate if specified locale
differs from system default.zFailed to provide locale value.zVSystem locale not found in %s. Assuming system locale is %s based on hardcoded defaultzSystem locale set to %s via %s)keynameinstall_functionz9System has '%s=%s' requested '%s', skipping regeneration.N)LOCALE_CONF_FN
ValueErrorr*   ospathexistsr   LOGdebugr   lowerregenerate_localeinstall_packagesupdate_locale_conf)	r   localeout_fnr-   distro_localeconf_fn_existssys_locale_unset
need_regen	need_confs	   &&&&     r$   apply_localeDistro.apply_localeM   sI    #F>?? )/#111IIJ##	 II0"" LLNm1133    !!    	
 '&HH*HH8H	!%!6!6	 IIK""	 !%!6!6	 "&D r&   c                8   < \        4        \        SV `  ! V/ VB # N)_maybe_remove_legacy_eth0r   _write_network_state)r   argskwargsr#   s   &*,r$   rF   Distro._write_network_state   s    !#w+T<V<<r&   c                ^   R p V P                  V4      pT'       g   \        R4      pTP                  T4       \        P                  ! T\        T4      R4       R #   \         dF    \        P                  ! T P                  RR4      pT'       d    L~\
        P                  R4        R # i ; i)Ncreate_hostname_fileTz8create_hostname_file is False; hostname file not created   )_read_hostname_confIOErrorr   get_cfg_option_bool_cfgr4   infor	   set_hostname
write_filestr)r   hostnamefilenameconfrK   s   &&&  r$   _write_hostnameDistro._write_hostname   s    	 ++H5D #D(##d)U3  
	#'#;#;		14$  $N 
	s   A 4B,B,+B,c                T    V P                  V P                  4      pV P                  V3# rD   )_read_hostnamehostname_conf_fn)r   sys_hostnames   & r$   _read_system_hostnameDistro._read_system_hostname   s)    **4+@+@A%%|44r&   c                d    \        \        P                  ! V4      4      pVP                  4        V# rD   )r	   r   load_text_fileparse)r   rW   rX   s   && r$   rN   Distro._read_hostname_conf   s%    D//9:

r&   c                |    R p V P                  V4      pVP                  pV'       g   V# V#   \         d     Li ; irD   )rN   rV   rO   )r   rW   defaultrV   rX   s   &&&  r$   r\   Distro._read_hostname   sH    	++H5D}}H N	  		s   - ;;c                    R # )z	127.0.1.1 r)   s   &r$   _get_localhost_ipDistro._get_localhost_ip   s    r&   c                R    \         P                  ! WP                  V4      R 7       R# ))tztz_fileN)r   set_etc_timezone_find_tz_file)r   rm   s   &&r$   set_timezoneDistro.set_timezone   s      B0B0B20FGr&   c                h    VR 8w  d   \        RV R24      hV P                  P                  R 4       R# )upgradezUnable to handle z commandN)RuntimeErrorr   run_package_command)r   commandrG   pkgss   &&&&r$   package_commandDistro.package_command   s3     i!27)8DEE$$Y/r&   c                ,    \         P                  ! 4       # rD   )r   get_dpkg_architecturer)   s   &r$   get_primary_archDistro.get_primary_arch   s    ))++r&   c                2   < V ^8  d   QhRS[ RS[ RS[ RS[ /# )   layoutmodelvariantoptions)rU   )format__classdict__s   "r$   __annotate__Distro.__annotate__   s)      8  8  8S  83  8  8r&   c                    R P                  RRRV R2RV R2RV R2RV R2RRR.	4      p\        P                  ! R	VR
RR7       V P                  RR4       R# )
z'# This file was generated by cloud-initrL   z
XKBMODEL=""zXKBLAYOUT="zXKBVARIANT="zXKBOPTIONS="zBACKSPACE="guess"z/etc/default/keyboardrM   w)rW   contentmodeomoderestartzconsole-setupN)joinr   rT   manage_service)r   r   r   r   r   contentss   &&&&& r$   
set_keymapDistro.set_keymap   s     999UG1%fXQ'wiq)wiq)#

 	,		
 	I7r&   )r   r   r   r   r   )NLANGrD   )NN)__name__
__module____qualname____firstlineno__r]   r
   network_conf_fnNETWORK_FILE_HEADERrenderer_configsdhclient_lease_directorydhclient_lease_file_regexr   r*   rA   rF   rY   r_   rN   r\   rj   rq   ry   r}   r   __static_attributes____classdictcell____classcell__)r#   r   s   @@r$   r   r   !   s     &8)O
 	.-
 	OI61

  / 8	A	
9&v=4,5
	H0, 8  8  8r&   r   c                   \         P                  P                  V 4      '       g   R# Rp \        P                  ! V 4      pRR.pVP                  4        Uu. uF+  qDP                  R4      '       d   K  VP                  4       NK-  	  ppWS8X  d!   \        P                  ! V 4       RV ,          pMVRV ,          ,           p \        P                  V4       R# u upi   \         d    TRT ,          ,           p L9i ; i)	a3  Ubuntu cloud images previously included a 'eth0.cfg' that had
hard coded content.  That file would interfere with the rendered
configuration if it was present.

if the file does not exist do nothing.
If the file exists:
  - with known content, remove it and warn
  - with unknown content, leave it and warn
Nz(Dynamic networking config may not apply.z	auto eth0ziface eth0 inet dhcp#zremoved %s with known contentsz* '%s' exists with user configured content.z" %s exists, but could not be read.)r1   r2   r3   r   rb   
splitlines
startswithstripdel_file	Exceptionr4   warning)r2   bmsgr   known_contentsflinesmsgs   &      r$   rE   rE      s     77>>$5DA&&t,%'=>'224
4!LL<MIAGGI4 	 
 "MM$2T9CELLC KK
  A9D@@As/   ,C C4C'C 0C C C;:C;r   c                   RpV '       g   \        RV ,          4      h\        P                  P                  V 4      '       d?   \        P
                  ! V 4      p\        P                  ! V4      pVP                  VR4      pV# )z.Read system default locale setting, if presentrL   zInvalid path: %s)r0   r1   r2   r3   r   rb   load_shell_contentget)sys_pathr-   sys_vallocale_contentsys_defaultss   &&   r$   r(   r(   
  se    G+h677	ww~~h,,X6..~>""7B/Nr&   c                    \         P                  RWV 4       \        P                  ! R4      '       g
   V! R.4       \        P                  ! RRV,           V: RV : 2.RR7       R# )	zUpdate system locale configz%Updating %s with locale setting %s=%szupdate-localelocalesz--locale-file==FcaptureN)r4   r5   r   whichr:   r   r-   r.   s   &&&&r$   r9   r9     s[     II/F ::o&&)%IIx''	

 r&   c                
   V P                  4       R9   d   \        P                  RW 4       R# \        P                  ! R4      '       g
   V! R.4       \        P                  RV 4       \        P                  ! RV .RR7       R# )	z
Run locale-gen for the provided locale and set the default
system variable `keyname` appropriately in the provided `sys_path`.

z$%s=%s does not require rengenerationNz
locale-genr   zGenerating locales for %sFr   )czc.utf-8posix)r6   r4   r5   r   r   r   s   &&&&r$   r7   r7   +  sb     ||~22		8'J ::l##)%II)62II|V$e4r&   )z"/etc/network/interfaces.d/eth0.cfg)r   N)loggingr1   typingr   	cloudinitr   r   r   (cloudinit.distros.package_management.aptr   4cloudinit.distros.package_management.package_managerr   "cloudinit.distros.parsers.hostnamer	   cloudinit.net.netplanr
   	getLoggerr   r4   r   r/   r   rE   r(   r9   r7   ri   r&   r$   <module>r      sp     	  ) ) 8 O ; 8!  'F8W^^ F8R@ !/ &5r&   