| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python2.7/site-packages/cloudinit/sources/ |
Upload File : |
�
oB�]c @ s� d d l m Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m
Z
e j e � Z
d Z d d e e f d d e e f d
d
e e f d d e e f d
d
e e f g Z d e j f d � � YZ d � Z d � Z d � Z d d e d d d � Z d � Z d e f d � � YZ d e f d � � YZ e e j e j f f g Z d � Z e d k r�d � Z! e! � n d S( i����( t print_functionN( t log( t sources( t
url_helper( t utils
2012-03-01s meta-data/instance-ids meta-data/local-hostnames meta-data/public-keyss meta-data/vendor-datas vendor-datas user-datat DataSourceMAASc B sn e Z d Z d Z d
Z d
Z d � Z e d � � Z d � Z
d � Z d � Z d � Z
d � Z d � Z RS( s�
DataSourceMAAS reads instance information from MAAS.
Given a config metadata_url, and oauth tokens, it expects to find
files under the root named:
instance-id
user-data
hostname
vendor-data
t MAASc C sS t j j | | | | � d | _ t j j | j d � | _ t | j
� | _ d S( Nt maas( R t
DataSourcet __init__t Nonet base_urlt ost patht joint seed_dirt get_id_from_ds_cfgt ds_cfgt id_hash( t selft sys_cfgt distrot paths( ( sD /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceMAAS.pyR 0 s c C s% | j s t | j � | _ n | j S( N( t
_oauth_helpert get_oauth_helperR ( R ( ( sD /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceMAAS.pyt oauth_helper6 s c C s# t j j | � } d | | j f S( Ns %s [%s]( R R t __str__R ( R t root( ( sD /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceMAAS.pyR <