| 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/config/ |
Upload File : |
�
oB�]c @ sq d Z d d l m Z d d l m Z d d l m Z d d l m Z e Z d d d d d
d g Z d � Z d
S( s�
Phone Home
----------
**Summary:** post data to url
This module can be used to post data to a remote host after boot is complete.
If the post url contains the string ``$INSTANCE_ID`` it will be replaced with
the id of the current instance. Either all data can be posted or a list of
keys to post. Available keys are:
- ``pub_key_dsa``
- ``pub_key_rsa``
- ``pub_key_ecdsa``
- ``instance_id``
- ``hostname``
- ``fdqn``
**Internal name:** ``cc_phone_home``
**Module frequency:** per instance
**Supported distros:** all
**Config keys**::
phone_home:
url: http://example.com/$INSTANCE_ID/
post:
- pub_key_dsa
- instance_id
- fqdn
tries: 10
i����( t templater( t
url_helper( t util( t PER_INSTANCEt pub_key_dsat pub_key_rsat
pub_key_ecdsat instance_idt hostnamet fqdnc C s� t | � d k r( t j | d � } n* d | k rH | j d | � d S| d } d | k rr | j d | � d S| d } | j d d � } | j d � } y t | � } Wn* t k
r� d } t j | d
| � n X| d k r� t } n i } | j
� | d <| j � | d <| j d
t � | d
<i d d 6d d 6d d 6}
xX |
j
� D]J \ } } y t j | � | | <WqSt k
r�t j | d | � qSXqSWi }
xE | D]= } | | k r�| | |
| <q�d |
| <| j d | � q�Wi } xC |
j
� D]5 \ } } | d k r'd | | <qt | � | | <qWi | d d 6} t j | | � } y5 t j | d | d | d d d t j | j � �Wn'