Server IP : 23.254.227.96 / Your IP : 216.73.216.7 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.6/site-packages/cloudinit/config/__pycache__/ |
Upload File : |
3 ��bM � @ sF d Z ddlmZmZmZ ddlmZ eZdddddd d gZdd� Z d S )a� 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`` - ``pub_key_ed25519`` - ``instance_id`` - ``hostname`` - ``fdqn`` Data is sent as ``x-www-form-urlencoded`` arguments. **Example HTTP POST**:: POST / HTTP/1.1 Content-Length: 1337 User-Agent: Cloud-Init/21.4 Accept-Encoding: gzip, deflate Accept: */* Content-Type: application/x-www-form-urlencoded pub_key_dsa=dsa_contents&pub_key_rsa=rsa_contents&pub_key_ecdsa=ecdsa_contents&pub_key_ed25519=ed25519_contents&instance_id=i-87018aed&hostname=myhost&fqdn=myhost.internal **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 � )� templater� url_helper�util)�PER_INSTANCE�pub_key_dsa�pub_key_rsa� pub_key_ecdsa�pub_key_ed25519�instance_id�hostname�fqdnc C s t |�dkrtj|d �}n d|kr4|jd| � d S |d }d|krT|jd| � d S |d }|jdd�}|jd�}yt|�}W n& tk r� d }tj|d |� Y nX |dkr�t }i } |j � | d<