Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ 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 : /usr/lib/python3/dist-packages/cloudinit/distros/__pycache__/ |
Upload File : |
o x[he � @ 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 )N� azurelinuxz/etc/systemd/network/z/etc/locale.confz/etc/systemd/resolved.conf� systemctl�netplan)�resolv_conf_fn�network_conf_dir�True)�netplan_path�netplan_header�postcmds)�networkdr )�super�__init__�osfamilyr �systemd_locale_conf_fn�resolve_conf_fn�init_cmdr �network_conf_fn�NETWORK_FILE_HEADER�renderer_configs)�self�name�cfg�paths�� __class__� �>/usr/lib/python3/dist-packages/cloudinit/distros/azurelinux.pyr s ���zDistro.__init__Nc C s� |d u rg }t �d�rt�d� dg}nt�d� dg}|�d� |r.t|t�r.|�|� n|r:t|t�r:|�|� |�|� t � d|�}|�|� t j |dd� d S ) N�dnfz Using DNF for package managementz!Using TDNF for package management�tdnfz-yz%s-%sF)�capture)r �which�LOG�debug�append� isinstance�str�list�extendr �expand_package_list)r �command�args�pkgs�cmd�pkglistr r r! �package_command1 s zDistro.package_command)NN)�__name__� __module__�__qualname__�usr_lib_execr r3 � __classcell__r r r r! r s r ) �logging� cloudinitr r �cloudinit.distrosr �cloudinit.net.netplanr � getLoggerr4 r&