File: //snap/core22/2111/lib/python3/dist-packages/cloudinit/distros/__pycache__/debian.cpython-310.pyc
o
x[hi* � @ s� d dl Z d dlZd dlmZ d dlmZmZmZ d dlm Z d dl
mZ d dlm
Z
d dlmZ e �e�ZdZd ZG d
d� dej�Zdd
d�Zedfdd�Z ddd�Zddd�ZdS )� N)�List)�distros�subp�util)�Apt)�PackageManager)�HostnameConf)�CLOUDINIT_NETPLAN_FILEa8 # 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}
z/etc/default/localec s� e Zd ZdZded�Zed ed�ed edd�d�Zd Zd
Z � fdd�Z
d
d� Zd+dd�Z� fdd�Z
dd� Zdd� Zdd� Zd,dd�Zdd� Zdd � Zd-d!d"�Zd#d$� Zd%ed&ed'ed(efd)d*�Z� ZS ).�Distroz
/etc/hostnamez'/etc/network/interfaces.d/50-cloud-init)�eni�netplanr )�eni_path�
eni_headerr T)�netplan_path�netplan_header�postcmdsz
/var/lib/dhcpzdhclient\.\w+\.leasesc s@ t � �|||� d| _d| _d | _t�| j|�| _| jg| _ d S )N�debianzC.UTF-8)
�super�__init__�osfamily�default_locale�
system_localer �from_config�_runner�apt�package_managers)�self�name�cfg�paths�� __class__� �:/usr/lib/python3/dist-packages/cloudinit/distros/debian.pyr 7 s zDistro.__init__c C s | j st� | _ | j r
| j S | jS )z9Return the default locale if set, else use default locale)r �read_system_localer �r r"