Current File : //usr/lib/python3/dist-packages/cloudinit/distros/__pycache__/azurelinux.cpython-312.pyc |
�
x[he � � � d dl Z d dlmZmZ d dlmZ d dlmZ e j e � Z
dZ G d� dej � Zy)� 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 �* � � e Zd ZdZ� fd�Zdd�Z� xZS )�Distroz/usr/libc � �� t �| � |||� d| _ d| _ d| _ d| _ dg| _ dt i| _ | j
| j d�| j d t dd �d
�| _
y )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__s ��>/usr/lib/python3/dist-packages/cloudinit/distros/azurelinux.pyr zDistro.__init__ s� �� �
����s�E�*�$��
� 7���&8��#�;���$�
��
� )�+A�B��� #'�"6�"6�$(�$9�$9��
!%� 4� 4�Y� ?�"5�"��
!
��� c �� � |�g }t j d� rt j d� dg}nt j d� dg}|j d� |r"t |t � r|j |� n#|r!t |t � r|j |� |j |� t j d|� }|j |� t j |d�� y ) 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�pkglists r"