Server IP : 209.38.156.173 / Your IP : 216.73.216.128 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /snap/core20/2599/lib/python3/dist-packages/cloudinit/distros/__pycache__/ |
Upload File : |
U Ӈge � @ sT d dl Z d dlmZmZ d dlmZ d dlmZ e �e �Z dZG dd� dej�ZdS )� 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} c s* e Zd ZdZ� fdd�Zddd�Z� ZS )�Distroz/usr/libc sb t � �|||� d| _d| _d| _d| _dg| _dti| _| j| jd�| jd t dd �d �| _ d S )NZ azurelinuxz/etc/systemd/network/z/etc/locale.confz/etc/systemd/resolved.confZ systemctl�netplan)Zresolv_conf_fn�network_conf_dir�True)Znetplan_pathZnetplan_headerZpostcmds)Znetworkdr )�super�__init__Zosfamilyr Zsystemd_locale_conf_fnZresolve_conf_fnZinit_cmdr Znetwork_conf_fn�NETWORK_FILE_HEADERZrenderer_configs)�self�nameZcfg�paths�� __class__� �>/usr/lib/python3/dist-packages/cloudinit/distros/azurelinux.pyr s ���zDistro.__init__Nc C s� |d krg }t �d�r(t�d� dg}nt�d� dg}|�d� |r\t|t�r\|�|� n|rtt|t�rt|�|� |�|� t � d|�}|�|� t j |dd� d S ) NZdnfz Using DNF for package managementz!Using TDNF for package managementZtdnfz-yz%s-%sF)Zcapture)r Zwhich�LOG�debug�append� isinstance�str�list�extendr Zexpand_package_list)r Zcommand�argsZpkgs�cmdZpkglistr r r �package_command1 s zDistro.package_command)NN)�__name__� __module__�__qualname__Zusr_lib_execr r � __classcell__r r r r r s r ) ZloggingZ cloudinitr r Zcloudinit.distrosr Zcloudinit.net.netplanr Z getLoggerr r r r r r r r �<module> s