a '¡Dge ã@sTddlZddlmZmZddlmZddlmZe e ¡Z dZ Gdd„dej ƒZ dS)éN)ÚsubpÚutil)Úrhel)ÚCLOUDINIT_NETPLAN_FILEa7# 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} cs*eZdZdZ‡fdd„Zddd„Z‡ZS)ÚDistroz/usr/libcsbtƒ |||¡d|_d|_d|_d|_dg|_dti|_|j|jdœ|jdt dd œd œ|_ dS) NZ azurelinuxz/etc/systemd/network/z/etc/locale.confz/etc/systemd/resolved.confZ systemctlÚnetplan)Zresolv_conf_fnÚnetwork_conf_dirÚTrue)Z netplan_pathZnetplan_headerZpostcmds)Znetworkdr) ÚsuperÚ__init__ZosfamilyrZsystemd_locale_conf_fnZresolve_conf_fnZinit_cmdrZnetwork_conf_fnÚNETWORK_FILE_HEADERZrenderer_configs)ÚselfÚnameZcfgÚpaths©Ú __class__©ú@/usr/lib/python3.9/site-packages/cloudinit/distros/azurelinux.pyr s þýûzDistro.__init__NcCs¦|dur g}t d¡r(t d¡dg}nt d¡dg}| d¡|r\t|tƒr\| |¡n|rtt|tƒrt| |¡| |¡t   d|¡}| |¡tj|dddS) NZdnfz Using DNF for package managementz!Using TDNF for package managementZtdnfz-yz%s-%sF)Zcapture) rÚwhichÚLOGÚdebugÚappendÚ isinstanceÚstrÚlistÚextendrZexpand_package_list)r ZcommandÚargsZpkgsÚcmdZpkglistrrrÚpackage_command1s          zDistro.package_command)NN)Ú__name__Ú __module__Ú __qualname__Z usr_lib_execr rÚ __classcell__rrrrrs r) ZloggingZ cloudinitrrZcloudinit.distrosrZcloudinit.net.netplanrZ getLoggerrrr rrrrrÚs