+
    ˜qgj™  ã                   óÞ   a € R t0 t R t^ RIt^ RIt^ RIHt ^ RIHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt ^ RIHt R	R
R].R]R. /t] ^ k ]P&                  ! ]4      t ! R R]4      tR R ltR# )z#Set Hostname: Set hostname and FQDNN)Úutil)Ú
write_json)ÚCloud)ÚConfig)Ú
MetaSchema)ÚALL_DISTROS)ÚPER_INSTANCEÚidÚcc_set_hostnameÚdistrosÚ	frequencyÚactivate_by_schema_keysc                   ó   € ] tR t^tRtRtR# )ÚSetHostnameErrorzÏRaised when the distro runs into an exception when setting hostname.

This may happen if we attempt to set the hostname early in cloud-init's
init-local timeframe as certain services may not be running yet.
© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    ÚB/usr/lib/python3/dist-packages/cloudinit/config/cc_set_hostname.pyr   r      s   † õr   r   c          
      óL   € V ^8„  d   QhR\         R\        R\        R\        RR/# )é   ÚnameÚcfgÚcloudÚargsÚreturnN)Ústrr   r   Úlist)Úformats   "r   Ú__annotate__r#   '   s/   € ÷ 4>ñ 4>”ð 4>œ6ð 4>¬%ð 4>´tð 4>Àñ 4>r   c                 óÐ  € \         P                  ! VR R4      '       d   \        P                  RV 4       R# \         P                  ! VRR4      pVe   VP                  P                  RV4       \         P                  ! VRR4      pVe   VP                  P                  RV4       \         P                  ! W4      w  rgp\        P                  P                  VP                  R4      R4      p	/ p
\        P                  P                  V	4      '       dP   \        P                  ! V	4      P                  ^ 8”  d+   \         P                  ! \         P                  ! V	4      4      p
WjP!                  R4      8g  ;'       g    WzP!                  R	4      8g  pV'       g   \        P                  R
4       R# V'       d   VR8X  d   \        P                  R4       R# \        P                  RWv4        VP                  P#                  Wg4       \+        T	RTR	T/4       R#   \$         d?   pRT: RT: R2p\         P&                  ! \        T4       \)        T: RT: 24      ThRp?ii ; i)Úpreserve_hostnameFzVConfiguration option 'preserve_hostname' is set, not setting the hostname in module %sNÚprefer_fqdn_over_hostnameÚcreate_hostname_fileÚdatazset-hostnameÚhostnameÚfqdnz*No hostname changes. Skipping set_hostnameÚ	localhostz6Hostname is localhost. Let other services handle this.zSetting the hostname to %s (%s)zFailed to set the hostname to z (Ú)z: )r   Úget_cfg_option_boolÚLOGÚdebugÚdistroÚ
set_optionÚget_hostname_fqdnÚosÚpathÚjoinÚ	get_cpathÚexistsÚstatÚst_sizeÚ	load_jsonÚload_text_fileÚgetÚset_hostnameÚ	ExceptionÚlogexcr   r   )r   r   r   r   Úhostname_fqdnr'   r)   r*   Ú
is_defaultÚprev_fnÚprev_hostnameÚhostname_changedÚeÚmsgs   &&&&          r   ÚhandlerG   '   sø  € Ü×Ò Ð%8¸%×@Ò@Ü�	‰	ð5àô	
ñ
 	ô ×,Ò,ØÐ(¨$ó€Mð Ò Ø�‰×ÑÐ ;¸]ÔKô  ×3Ò3ØÐ# TóÐð Ò'Ø�‰×ÑÐ 6Ð8LÔMä#'×#9Ò#9¸#Ó#EÑ €X�Zô �g‰g�l‰l˜5Ÿ?™?¨6Ó2°NÓC€GØ€MÜ	‡w�w‡~�~�g×Ò¤2§7¢7¨7Ó#3×#;Ñ#;¸aÔ#?ÜŸš¤t×':Ò':¸7Ó'CÓDˆØ×#4Ñ#4Øó$ñ ÷ +ð +à	×"Ñ" 6Ó*Ñ	*ð ÷ Ü�	‰	Ð>Ô?Ùß�h +Ô-ä�	‰	ÐJÔKÙÜ‡I�IÐ/°Ô@ð;Ø�‰×!Ñ! (Ô1ô
 ˆw˜ X¨v°tÐ<Ö=øô	 õ ;Û9=»xÐHˆÜ�Š”C˜ÔÜ«3²Ð2Ó3¸Ð:ûð;ús   Ç/H ÈI%È'9I É I%c                ó@   € V ^8„  d   Qh/ ^ \         9   d
   \        ;R&   # )r   Úmeta)Ú__conditional_annotations__r   )r"   s   "r   r#   r#      s   € × )Ñ )÷ò „jñ ò *r   )rJ   r   Úloggingr3   Ú	cloudinitr   Úcloudinit.atomic_helperr   Úcloudinit.cloudr   Úcloudinit.configr   Úcloudinit.config.schemar   Úcloudinit.distrosr   Úcloudinit.settingsr   rI   Ú	getLoggerr   r.   r>   r   rG   r#   )rJ   s   @r   Ú<module>rT      sn   øðö *ã Û 	å Ý .Ý !Ý #Ý .Ý )Ý +ð 	Ð
Ø�ˆ}Ø�Ø˜rð	€ó ð ×Ò˜Ó!€ô�yô ÷4>r   