| Server IP : 46.101.140.223 / Your IP : 216.73.217.61 Web Server : nginx/1.22.1 System : Linux debian-s-1vcpu-1gb-fra1-01 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : deploy-others ( 1001) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/cloudinit/sources/__pycache__/ |
Upload File : |
�
܍~c � � � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dlm Z d dl
mZmZ ej
e� � Z G d� d ej � � ZeZeej ffgZd
� ZdS )� N)� b64decode)�dmi)�log)�sources)�DataSourceHostname)�SERIAL_PORT�Cepkoc �B � e Zd ZdZdZd� Zd� Zd� Zd� Zdd�Z d � Z
d
� ZdS )
�DataSourceCloudSigmaz�
Uses cepko in order to gather the server context from the VM.
For more information about CloudSigma's Server Context:
http://cloudsigma-docs.readthedocs.org/en/latest/server_context.html
�
CloudSigmac �~ � t � � | _ d| _ t j � | |||� � d S )N� )r �cepko�ssh_public_keyr �
DataSource�__init__)�self�sys_cfg�distro�pathss �H/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceCloudSigma.pyr zDataSourceCloudSigma.__init__ s8 � ��W�W��
� �����#�#�D�'�6�5�A�A�A�A�A� c � � t � d� � t j d� � }|st � d� � dS t � d|� � d|� � � v S )z
Uses dmi data to detect if this instance of cloud-init is running
in the CloudSigma's infrastructure.
z0determining hypervisor product name via dmi datazsystem-product-namez-system-product-name not available in dmi dataFzdetected hypervisor as %s�
cloudsigma)�LOG�debugr �
read_dmi_data�lower)r �sys_product_names r �is_running_in_cloudsigmaz-DataSourceCloudSigma.is_running_in_cloudsigma"