OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : ó oBú]c @ s² d d l m Z d d l Z d d l m Z m Z d d l m Z d d l m Z d d l m Z e j e ƒ Z d e j f d „ ƒ YZ e Z e e j f f g Z d „ Z d S( iÿÿÿÿ( t b64decodeN( t Cepkot SERIAL_PORT( t log( t sources( t utilt DataSourceCloudSigmac B s\ e Z d Z d Z d „ Z d „ Z d „ Z d „ Z e e e d „ Z d „ Z d „ Z RS( sÍ 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 t CloudSigmac C s2 t ƒ | _ d | _ t j j | | | | ƒ d S( Nt ( R t cepkot ssh_public_keyR t DataSourcet __init__( t selft sys_cfgt distrot paths( ( sJ /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudSigma.pyR s c C sS t j d ƒ t j d ƒ } | s3 t j d ƒ t St j d | ƒ d | j ƒ k S( s Uses dmi data to detect if this instance of cloud-init is running in the CloudSigma's infrastructure. s0 determining hypervisor product name via dmi datas system-product-names- system-product-name not available in dmi datas detected hypervisor as %st cloudsigma( t LOGt debugR t read_dmi_datat Falset lower( R t sys_product_name( ( sJ /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudSigma.pyt is_running_in_cloudsigma" s c C s d } | j ƒ s t Sy | j j ƒ j } | d } Wn t k rW t j d ƒ t SX| j | j d ƒ g ƒ | _ | t j k r‰ t S| j d d ƒ j d ƒ } | j d d ƒ | _ d | k rÚ t | j ƒ | _ n d | j d i ƒ k r| d d | _ n | | _ | d | _ t S( sj Metadata is the whole server context and /meta/cloud-config is used as userdata. t metas+ CloudSigma: Unable to read from serial ports cloudinit-dsmodet base64_fieldsR t ,s cloudinit-user-datat cloudinitt vendor_dataR N( t NoneR R R t allt resultt ExceptionR R t _determine_dsmodet gett dsmodeR t DSMODE_DISABLEDt splitt userdata_rawR t vendordata_rawt metadataR t True( R R$ t server_contextt server_metaR ( ( sJ /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudSigma.pyt _get_data0 s, c C s d t S( s/ Return the subplatform metadata source details.s cepko (%s)( R ( R ( ( sJ /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudSigma.pyt _get_subplatformS s c C sD t j d | j d ƒ r( | j d d S| j d j d ƒ d Sd S( s† Cleans up and uses the server's name if the latter is set. Otherwise the first part from uuid is being used. s ^[A-Za-z0-9 -_\.]+$t namei= t uuidt -i N( t ret matchR) R&