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/sources/__pycache__/ |
Upload File : |
o x[h�2 � @ s. d dl Z d dlZd dlZd dlmZ d dlmZ d dlm Z d dl mZmZm Z mZ d dlmZmZmZ d dlmZmZ d dlmZ d d lmZmZmZ e�e�Zd dd�d ddd�ddddddgd�ZG dd� de �Z G dd� dej!�Z"G dd� de"�Z#e#ej$ffe"ej$ej%ffgZ&deej! fdd�Z'dS )� N)� b64decode)�suppress)�Enum)�Any�List�Tuple�Union)�sources� url_helper�util)�find_fallback_nic�get_interfaces_by_mac)�EphemeralIPNetwork)�get_dmi_config�get_local_instance_id�is_on_akamaizhttp://169.254.169.254zhttp://[fd00:a9fe:a9fe::1]��ipv4�ipv6z /v1/tokenz/v1/instancez /v1/user-data)�token�metadata�userdataTzf2:3)� base_urls�paths�allow_local_stage�allow_init_stage� allow_dhcp� allow_ipv4� allow_ipv6�preferred_mac_prefixesc @ s e Zd ZdZdZdZdZdS )�MetadataAvailabilityResultzj Used to indicate how this instance should behave based on the availability of metadata to it r � � N)�__name__� __module__�__qualname__�__doc__� NOT_AVAILABLE� AVAILABLE�DEFER� r* r* �D/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAkamai.pyr - s r c @ s� e Zd ZdZdZdd� Zddededefdd �Zde fd d�Z de fdd �Zde fdd�Zde eeeef ef fdd�Zddedefdd�Zdefdd�Zdefdd�ZdS )�DataSourceAkamai�AkamaiFc C sJ t �d� tj�| |||� t� | _t�t � t� |ddgi �tg�| _d S )NzSetting up Akamai DataSource� datasourcer- ) �LOG�debugr � DataSource�__init__�dictr r � mergemanydictr �get_cfg_by_path�BUILTIN_DS_CONFIG�ds_cfg)�self�sys_cfg�distror r* r* r+ r2 <